2026-10-11 17:10 UTC

Independent use will determine whether Graft’s hook-based automatic context injection gives coding agents more reliable repository context than opt-in MCP or CLI tool calls.

state: expiredheat: lowuncertainty: highconvergesscott: mediumagent-harnesses coding-agents context-managementNanoNets

What is this?

Graft is presented as an open-source coding-agent context system that uses hooks to retrieve and inject relevant repository files before the model reasons, rather than relying on the agent to invoke optional MCP or CLI tools. The supplied snippets support the broader distinction between automatic pre-injection and tool-call-driven retrieval, including claims that pre-injection can avoid missed calls and reduce discovery overhead. However, they do not directly establish Graft’s implementation, NanoNets’ role, or comparative performance; independent evidence is still needed to determine whether its approach improves context reliability without adding irrelevant context or bloat.

Why it matters to Scott

Graft’s harness-controlled, pre-reasoning context injection converges with Scott’s retrieval-as-stance and adaptive source-context compilation work, while creating a concrete test of his central attention-budget trade-off: whether automatic retrieval improves tool-use reliability without admitting low-signal context. Independent traces and comparative evaluations could refine what he builds, but the supplied evidence does not yet establish Graft’s implementation or performance.
ip:framework.context-engineeringip:concept.retrieval-as-stancedev:concept.adaptive-source-context-compilationip:framework.reflexive-agent-designradar:jetbrains-context-repository-intelligenceradar:mcp-server-agent-usabilityradar:concept.context-managementradar:concept.agent-harnesses
queries asked of Scott's wikis
  • automatic context injection vs agent-initiated retrieval
  • coding-agent hooks and harness-controlled context
  • repository context selection and relevance evals
  • MCP tool-use reliability in coding agents
  • context preloading vs progressive disclosure
  • coding-agent repository maps and dependency graphs

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

no chain yet — the hourly chain pass fills this in

Evidence (8) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟠 redditI solved the issue of Claude not using custom MCP/CLI tools, and open-sourced my approach.
ClaudeAI
shhdwi22
🟧 echo.github ⭐Graft injects repository context automatically through hooks to avoid depending on coding agents to invoke optional context-retrieval tools.NanoNets——
🟠 redditUsing Claude Code's SessionStart and Stop hooks to force context in, instead of hoping the model asks for it
LocalLLaMA
shhdwi01
🟠 redditGraft just crossed 1,600 GitHub stars. Open-source context layer for coding agents, works with Codex too.
OpenAI
shhdwi08
🟠 redditStopped hoping Claude Code would call my MCP tool, forced the context in with SessionStart instead
ClaudeAI
shhdwi018
🟧 hnShow HN: Claude Code kept ignoring our MCP tools, so we used hooks insteadShhdwi20
🟧 hnShow HN: Graft – Claude Code hooks that cut grep tokens by 42%shrishdwi3840
🟧 hnI built an efficient graph-search plugin for Claude Code skillsdanson120

Interpretation history

Decision trace