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 changed feature first, then inspect the exact branch diff.
- Assistant
The graph CLI is unavailable in this environment, so I’ll use bounded Git/source inspection and disclose nothing unless the diff proves a defect.
- Assistant
Instructions are accounted for. Next I’m enumerating the exact diff, commits, and changed files against
origin/main. - Assistant
The core change is confined to search ranking plus benchmark adapters. I’m now tracing the new resolution flag and section-parent selection for contract breaks.
- Assistant
I’ve identified two plausible ranking/budget regressions. I’m checking tests and the benchmark launch path now to confirm they are reachable and non-duplicate.
- Assistant
{"summary":"","comments":[{"severity":"medium","confidence":0.96,"body":"Multi-resolution expansion is given the entire context budget even though type-card and signature-type blocks have already consumed part of it. In a mixed prose/code search with either block enabled, promotions can make
ResultBytes + TypeCardBytes + SignatureTypeBytesexceed the ceiling, causingSearchResponse.Validateand the CLI command to fail.","location":{"granularity":"line","file_path":"internal/sem/search.go","start_line":1358}},{"severity":"medium","confidence":0.93,"body":"A promoted tail passage inherits its high-ranked parent's score despite being appended after every original result. Score-sorting consumers—including this branch's —therefore move promotions ahead of lower-scoring original files, so top-N slicing is no longer strictly additive and can discard distinct-file hits.","location":{"granularity":"line","file_path":"internal/sem/search_multi_resolution.go","start_line":110}},{"severity":"medium","confidence":0.9,"body":"The launcher claims to place persistent benchmark state under , but it exports roots only for Graphify and CMM; consequently uses a temporary directory and deletes or loses its corpus/cache across shutdowns or reboots. This makes the advertised path unable to reuse the Entire arm's state.","location":{"granularity":"line","file_path":"bench/memory/run_locomo.sh","start_line":42}},{"severity":"low","confidence":0.99,"body":"This overrides the harness's multi-cutoff default with only cutoff 200, so the reproduction launcher never generates the configured 50/20/10 measurements. Runs produced by this script therefore cannot support the advertised tight-cutoff comparisons.","location":{"granularity":"line","file_path":"bench/memory/run_locomo.sh","start_line":49}}]}
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.