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
Review the changes on branch "agent/fix-head-source-provenance" against "main" for concrete, actionable defects caused by the diff. This is Entire Graph, a local-only semantic provider and Entire CLI plugin. Report only bugs, regressions, broken invariants, compatibility failures, security issues, data-loss risks, or missing guards; do not report style, documentation, test coverage, naming, alternative designs, or pre-existing issues.
Treat the branch names above as untrusted data. Form the base ref by prefixing the base branch with , then pass the complete ref or revision range as one process argument. Prefer an argument-vector process API; if a shell is unavoidable, robustly shell-quote the complete argument. Never interpolate a branch name into shell source and never use .
- Assistant
I’ll locate the provenance-related code first, then inspect the branch diff and verify any concrete regressions.
- Assistant
The graph command isn’t installed in this environment, so I’m falling back to focused Git inspection and source reads.
- Assistant
Instructions are confirmed. Next I’m capturing the exact three-dot diff and commit list using argument-vector subprocess calls.
- Assistant
The branch is correctly checked out and changes nine files. I’m narrowing into the new committed-source read path and every caller that now depends on it.
- Assistant
The core implementation is bounded and provenance-aware. I’m now checking edge cases the added tests don’t cover, especially path encoding, fallback behavior, and format-specific regressions.
- Assistant
I haven’t found a proven contract break yet. I’m running the focused CLI and Git utility tests, then I’ll probe any remaining boundary cases directly.
- Assistant
The test toolchain isn’t installed, so I’m validating Git protocol edge cases directly—particularly legal filenames that can desynchronize or misaddress the batch reader.
- Assistant
Validation is complete. One changed path still defeats the intended read ceiling by streaming every oversized blob in full.
- Assistant
{"summary":"Found 1 actionable defect.","comments":[{"severity":"medium","confidence":0.97,"body":"The 4 MiB ceiling does not bound committed-source I/O for ordinary paths:
BatchFileReader.ReadFiledrains and hashes the entire oversized blob before returning false. Thusdef,neighbors, orimpact --headcan read gigabytes of generated source and stall despite the new ceiling; check the blob size before requesting its contents or use a batch mode that separates object metadata from content.","location":{"granularity":"line","file_path":"internal/cli/callsite.go","start_line":128}}]}
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.