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 locate the new retrieval/benchmark code first, then review the exact branch diff and verify any concrete regressions.
- Assistant
The graph CLI isn’t installed in this environment, so I’m falling back to bounded source inspection. Next I’ll read the repository instructions and collect the three requested Git views using argument-vector subprocess calls.
- Assistant
The diff is concentrated in prose retrieval plus a vendored benchmark harness. I’m capturing the full patch now, then I’ll trace changed execution paths and exclude the four already-open findings.
- Assistant
I’m checking whether section identity, result ordering, and benchmark state handling match their downstream contracts. The key risk is where new grouping metadata is derived from region coordinates rather than stable section boundaries.
- Assistant
Two defects are now strongly supported by source-level tracing: section bodies are not assigned to section units, and the Entire benchmark client converts engine failures into valid empty retrievals. I’m doing a final pass over changed call sites and runnable static checks before emitting only the required JSON.
- Assistant
{"summary":"","comments":[{"severity":"medium","confidence":0.96,"body":"Markdown section symbols cover only the heading line, while matches in the section body are emitted as uncovered candidates with an empty SymbolID. Falling back to the file key here therefore collapses normal body-text matches to one unit per document, so the new default section-resolution behavior only works when query terms occur in headings and still discards additional matching sections otherwise.","location":{"granularity":"line","file_path":"internal/sem/search_prose_parent.go","start_line":46}},{"severity":"medium","confidence":0.99,"body":"A failed
entire-graph searchis returned as a successful empty result instead of raising. The harness markssearch_droppedand retries only when the client throws, so binary crashes, timeouts, and index failures are silently scored as retrieval misses withsearch_dropped=false; malformed JSON is suppressed identically below.","location":{"granularity":"line","file_path":"bench/memory/benchmarks/common/entire_client.py","start_line":400}}]}
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.