AGENTS.md instructions for /home/user/repo <INSTRUCTIONS> AGENTS.md — operating guide…
- User
AGENTS.md instructions for /home/user/repo
Hand this to any coding agent working in a repo where the
entire graphplugin is installed. It moves initial code-location work from broad grep/read exploration to targeted graph queries; token impact depends on the task and model, and no end-to-end savings claim is current.What this gives you
A precomputed, deterministic code graph is available through the
entire graphcommand — functions, classes, methods, types, routes, and the calls/inheritance/field/service relations between them, parsed with tree-sitter, 100% locally (no network, no model, no keys). Use it to LOCATE and UNDERSTAND code before broad grep / find / cat / whole-file exploration. Every command is no-egress and safe to run inside a sandboxed session. The same commit yields the same graph, but static relations can be heuristic or incomplete; inspect focused source and verify the resulting change.Default flags to remember: pass
--repo .when you're not inside an Entire session; the graph reads your working tree by default (your uncommitted edits are visible), and--headswitches to committed-tree semantics with a cached, reusable index.
The parts of the graph
Reach for the smallest tool that answers your question.
🔍 search — find the code for a task (your first move)
Ranked source regions for a plain-language description, with the source and
file:lineinline. Hybrid ranking over bodies, identifiers (camelCase/snake_case aware), signatures, paths, and graph neighbors. Output is budgeted (16 KiB by default) to drop straight into context.shentire graph search --repo . --query "<the task or bug in one plain sentence>" --format text --top-k 8--format agentfor compact ranked output with latency telemetry;json/ndjsonfor the full schema (completeness, partial failures, diagnostics).--top-k Nresult count;--max-context-bytes Nbyte budget (0= unbounded).- Working tree by default; add
--headfor committed-tree + cache reuse. --profile syntax-only|fast|full(defaultfast);--index-all-filesor--max-indexed-files Nto widen/bound cold-search parsing.
the start of essentially every task. One good query lands you on the fix area.
- User
- User
- User
<environment_context> /home/user/repo bash <current_date>2026-08-15</current_date> Etc/UTC <workspace_roots>/home/user/repo</workspace_roots><permission_profile type="disabled"><file_system type="unrestricted" /></permission_profile> </environment_context>
- User
- Assistant
I’ll start with the required graph search, then inspect the exact branch diff and validate any concrete defects.
- Assistant
The graph CLI isn’t installed in this environment, so I’ll proceed with the required git review and focused source inspection.
- Assistant
Instructions are loaded; the referenced
.entire/graph-agent.mdis absent. Next I’m capturing the exact diff, stat, and commit list againstorigin/main. - Assistant
The change set is large but concentrated in search ranking and benchmark clients. I’m narrowing to executable code first, then checking call paths and contract-sensitive behavior.
- Assistant
Core selection looks deterministic; I found one suspicious metadata path in promoted passages. I’m tracing how
Sectionand passage spans are produced before deciding whether it is reportable. - Assistant
I’ve isolated a mixed-corpus regression candidate in the section-unit keying. I’m running targeted tests and static checks now, then I’ll verify whether any benchmark-client defects are equally concrete.
- Assistant
git diff --checkonly found whitespace in benchmark artifacts, which is out of scope. The behavioral test commands did not run because that check stopped the chain, so I’m running them separately. - Assistant
Go isn’t installed, but Python and shell syntax checks pass. I’m doing one final focused pass over the vendored harness patches for runtime/accounting failures before finalizing.
- Assistant
{"summary":"","comments":[{"severity":"medium","confidence":0.98,"body":"Section keying applies to every candidate with a SymbolID, not just prose paths. In an 80%-prose mixed corpus, code symbols become independent prose parents; after breadth is satisfied, one code file can occupy many slots, bypass
MaxRegionsPerFile, and have code regions emitted as prose passages. Restrict section units to actual prose/section candidates.","location":{"granularity":"line","file_path":"internal/sem/search_prose_parent.go","start_line":46}},{"severity":"medium","confidence":0.97,"body":"Non-retryable failures such as authentication, permission, bad-request, and not-found errors break out of the loop but are still converted to([], True). A misconfigured backend therefore continues the benchmark with empty context instead of surfacing the deterministic failure, potentially corrupting an entire run's scores.","location":{"granularity":"line","file_path":"bench/memory/patches/0003-locomo-run-backends-search-retry-drop-accounting-runmeta.patch","start_line":59}}]}
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.