惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
B
Blog
腾讯CDC
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
L
LangChain Blog
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog

Hacker News - Newest: "LLM"

GitHub - lechmazur/position_bias: A benchmark for testing whether LLM judges keep the same preference when two lightly edited versions of the same story are shown in opposite orders. Flex routing (EU and EFTA) Dark Factories: Retooling for LLM Velocity Ask HN: What would be the impact of a LLM output injection attack? GitHub - Oaklight/llm-rosetta: Production-ready LLM API translation layer for Python — bidirectional conversion between OpenAI, Anthropic & Google formats via hub-and-spoke IR. Optional API gateway. Streaming & non-streaming. Zero core deps. Contributions welcome! GitHub - browser-use/browser-harness: Self-healing browser harness that enables LLMs to complete any task. GitHub - moeen-mahmud/remen: Remen turns thoughts into something you can return to Analyzing 156 LLM Launch Posts on Hacker News ChatGPT vs Gemini vs Claude: The Best LLM Subscription You Should Buy GitHub - salaamalykum/quran-semantic-search: High-density RAG Semantic Search Engine & Quran Corpus (GEO/SEO Architecture) GitHub - NVIDIA/TensorRT-LLM: TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way. The State of LLM Bug Bounties in 2026 Operational Readiness Criteria for Tool-Using LLM Agents Meshcore: Architecture for a Decentralized P2P LLM Inference Network How an LLM becomes more coherent as we train it GitHub - seetrex-ai/laimark GitHub - Jossifresben/BibCrit: AI-assited biblical textual criticism GitHub - wastedcode/memex: File system based wiki, maintained by Claude 99helpers.com GitHub - cliver-project/AITrigram GitHub - unbody-io/adapt: A self-evolving memory layer for AI agents. GitHub - hb20007/awesome-gen-ai-fails: A list of incidents where reliance on generative AI and LLMs resulted in harm to companies, individuals, or society GitHub - nevenkordic/localmind: Run any local LLM with persistent memory and context. CLI agent over Ollama with SQLite-backed hybrid recall. No cloud. Ask HN: What are the machine requirements for a LLM like Llama-3.1-8B? Faster LLM Inference via Sequential Monte Carlo grpo explained: group relative policy optimization for llm finetuning - cgft Stop comparing price per million tokens: the hidden LLM API costs · TensorZero Andrej Karpathy's LLM Wiki Is a Bad Idea GitHub - GG-QandV/mnemostroma: Offline RAM-first cognitive leer/coprocessor for AI agents and robotics. Solves "Context Abandonment" with 20-80ms latency using a dual-thread biomimetic memory architecture (ONNX + SQLite WAL). mempalace/agent at agent · skorotkiewicz/mempalace
GitHub - T-Chartrand/tuningfork: Grounding rules for LLM ...
T-Chartrand · 2026-06-15 · via Hacker News - Newest: "LLM"

Grounding rules for LLM agents, derived from human reality-testing.

Humans who must routinely distinguish real perception from convincing internal fabrication have spent decades refining practical checks for it. Those checks turn out to map directly onto the agent hallucination problem — often more cleanly than the framings in the ML literature. tuningfork is that mapping, written down as nine rules and shipped as a small, dependency-free Python reference implementation.

The name comes from one of those human techniques: a physical tuning fork held to the ear interrupts auditory hallucination through an independent channel. It doesn't argue with the false signal — it breaks the state. That is the design principle of this entire library.

The core insight

A check terminates when the verifier sits outside the system being doubted.

A model re-reading its own output shares its own failure modes — it can fluently confirm its own fabrication. A grep, a parser, a checksum, an exit code cannot. One deterministic confirmation from an independent channel is final; a hundred same-model re-checks are not. Everything here follows from that: the environment is the source of truth, and the model's memory is a cache that may be stale.

The nine rules

Rule Phase One-liner
G0 Asymmetric Trust governs all Content can convict, but never acquit — trust flows from source-tracing only
G1 Verify-Before-Assert foresee A claim that could be tool-checked must be, before it's stated
G2 Closed-Loop Execution recognize Report observed results, never issued commands. Read-only observations are terminal
G3 Disagreement Triangulation recognize Tool beats memory; one independent check on surprises; one deterministic confirmation is final
G4 Negative-Space Probing foresee Probe for existence before relying on remembered entities; keep a catalog of known fabrication signatures
G5 Reproducibility Snapshot snap out After a correction, rebuild state from tool output only — nothing from the broken narrative carries over
G6 Cost-Tiered Budget continuous Tier verification by blast radius, decided before generation; suspiciously perfect claims get their tier raised
G7 Passive Independent Validators continuous Cheap deterministic monitors run on everything and never ask the generator's permission
G8 Source Re-attribution after the verdict A verified-false output is evidence about the generator — mine it; belief and action are decoupled

Full text with rationale: docs/framework.md · The story behind it: docs/essay.md

Quick start

from tuningfork import (GroundedAgent, ValidatorBank,
                        CitationValidator, PathValidator, JsonBlockValidator)

bank = ValidatorBank([
    CitationValidator(valid_source_ids=["1", "2", "3"]),
    PathValidator(evidence_paths=tool_returned_paths),
    JsonBlockValidator(),
])

agent = GroundedAgent(generate=my_llm_callable, bank=bank)
result = agent.run("Summarize sources [1]-[3] and list the config files involved.")

print(result.tier.rationale)      # how the claim was priced before generation
print(result.report.summary())    # what the independent channels observed
print(result.trustworthy)         # validators' verdict, not the model's

The harness permits exactly one regeneration pass on validator failure — fed the validator evidence, not an apology prompt. A second failure is reported as unresolved, because retrying the same channel is re-checking the check.

The child agent

v0.3.0 adds a small runnable agent with the overlay on: an ordinary tool loop (Anthropic Messages API via stdlib urllib — no SDK) where every assistant utterance is validated against evidence built from the tools' ACTUAL returns, nonexistent tool calls are refused instead of improvised, one evidence-fed correction turn is permitted, and rejections persist to a ledger file across sessions — the catalog of known fabrications accumulates instead of resetting.

No API key or paid account required — the transport is pluggable, and an OpenAI-compatible adapter covers Ollama (local, free), Groq, OpenRouter, LM Studio, and vLLM:

from tuningfork import ChildAgent, OpenAICompatibleLLM, builtin_fs_tools

llm = OpenAICompatibleLLM(model="qwen2.5:7b")   # Ollama on localhost
agent = ChildAgent(llm, builtin_fs_tools("."))
result = agent.run("Which files in ./docs mention 'echo'? Cite paths.")
print(result.trustworthy, result.answer)

MCP servers wire in as first-class tools via a minimal stdlib client (newline-delimited JSON-RPC over stdio):

from tuningfork import MCPServer, mcp_tools

srv = MCPServer(["python3", "my_server.py"], name="files")
srv.start()
agent = ChildAgent(AnthropicLLM(), mcp_tools(srv))

See examples/agent_demo.py for the runnable version.

What this is not

  • Not a wrapper that makes a model "more honest." The model is unchanged.
  • Not an eval suite. It's a runtime harness.
  • Not novel components — verify-then-assert, closed-loop execution, and output guardrails all exist in prior work (Chain-of-Verification, SelfCheckGPT, ReAct/Reflexion, guardrails frameworks). What's new here is the unifying frame and the termination principle, which most frameworks lack: they either never verify or can't stop.

Status

v0.2.0 — reference implementation, full test suite passing, stdlib only. Includes EchoValidator (repetition as a structural leading indicator) and RejectionLedger (the G4 catalog accumulates from mined rejections). Roadmap: coverage validator (evidence the response ignored), async validator bank, adapters for popular agent frameworks.

License

MIT