Borrowing it
Nothing to install: this file belongs to kunchenguid/compact-adviser. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/kunchenguid/compact-adviser/main/AGENTS.mdgit clone --depth 1 https://github.com/kunchenguid/compact-adviserWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/kunchenguid/compact-adviser/agents-md)<a href="https://agentmods.dev/instructions/kunchenguid/compact-adviser/agents-md"><img src="https://agentmods.dev/badge/instructions/kunchenguid/compact-adviser/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/kunchenguid/compact-adviser/agents-md"><img src="https://agentmods.dev/badge/instructions/kunchenguid/compact-adviser/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01181 | $0.01181 |
| Opus 5.5 | $0.00472 | $0.00472 |
| Sonnet 5.5 | $0.00236 | $0.00236 |
| Haiku 4.5 | $0.00118 | $0.00118 |
Grade A, and why
compact-adviser AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 23 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Project agent memory
This file is the project's committed home for project-intrinsic agent knowledge: build, test, release, architecture, and sharp-edge notes that should travel with the code.
VISION.mdat the repo root is the project's acceptance policy: what this product owns, what it refuses, and the accept/resist tests a change is measured against. Read it before proposing a feature or a policy change.- The judge question set,
score(),floorFor()and theTYPESAFE_BASEresolvertypesafeEndpoint()(https for any host, http only for 127.0.0.1,[::1]or localhost) must stay byte-identical acrosspackages/pi-extension/src/judge.ts,packages/claude-mod/lib/judge.ts,packages/codex-plugin/src/judge.ts, andpackages/grok-plugin/lib/judge.ts; the TypeSafe request/response log line builders in each package'slog.tsmust match, as must thecooldownReasongates in each package'sstate.ts, the redaction helpers incontext.ts/snapshot.ts,disable.ts, and the judge-profile parser inprofile.ts.packages/pi-extension/test/lockstep.test.tsandtest/profile.test.tsenforce all of it across every host package. Tune every copy or none. shellWrittenPaths()— the conservative parser that recognises files written through shell redirection,tee, and in-placesedfor thesavedArtifactslimb — is another byte-identical quad copy:packages/pi-extension/src/context.ts,packages/claude-mod/lib/snapshot.ts,packages/codex-plugin/src/rollout.ts,packages/grok-plugin/lib/snapshot.ts; lockstep.test.ts compares its outputs. Only the host wiring differs: pi watches tool namebash, ClaudeBash, Grokrun_terminal_command, Codexshell/local_shell/unified_execplus theexecprogram wrapper, whose input is aconst r = await tools.exec_command({cmd: "...", ...}); text(r.output);program the recognised-shape parser in rollout.ts reads the shell line out of (all extracted in rollout.ts into the tool use'spaths, with the codex snapshot'sWRITE_TOOLSlisting those names). A Codex host contributes shell-written artifacts only when it emits one of those names, and anexecprogram beyond that one shape still yields nothing.- Claude Code
$.env.gettakes a literal variable name, never a constant, and every name it reads must also be listed inpackages/claude-mod/scripts/validate.mjs(claude plugin validate --strictcompares them). - Claude Code hooks cannot
import "node:fs"and the plugin-test isolate has noprocess;$.fs.writereplaces the whole file, so Claude writes one jsonl per session (~/.claude/compact-adviser-requests-<sessionId>.jsonl). Pi TypeSafe jsonl writes useappendFileSync(O_APPEND) inpackages/pi-extension/src/log.ts. - Every package README is generated from the root
README.md; never hand-edit them. See "Package READMEs" inCONTRIBUTING.mdfor the mechanism (scripts/generate-package-readme.mjs,npm run sync-readmes, and the drift checks in each package'scheck). - CI:
.github/workflows/ci.ymlruns acheck-*and ane2e-*job per host package on push/PR. Pin every host binary in.github/host-versions.env. - Grok host facts, measured against 1.0.34 and asserted by
packages/grok-plugin/scripts/live-e2e.mjs: Grok lists a plugin'shooks/hooks.jsonbut never loads it into a session, socompact-adviser installregisters the same handlers in${GROK_HOME:-~/.grok}/hooks/; the status row is the only hint surface and only the user's ownconfig.tomlcan enable it;signals.jsonfield names are undocumented, so unreadable usage takes the strictest floor. The e2e drives the realgrok agent … stdiooffline through--xai-api-base-urlplusXAI_API_KEY, answering the OpenAI Responses API shape.lastPromptIdskips a later serial Stop of the same turn but is not an atomic claim, so concurrent plugin+user-hook starts can both ask TypeSafe; follow up with a session-state claim only if Grok starts loading plugin hooks (live-e2e would then seehook_countabove 6). packages/grok-pluginships as TypeScript with no build step and no dependencies: Node's own type stripping runs it, so nothing there may use non-erasable syntax (no enums, no constructor parameter properties).- Release: release-please at repo root with extra-files version bumps;
npm publish --access public --provenancefrompackages/pi-extensionvia GitHub OIDC. NoNPM_TOKEN. SeeCONTRIBUTING.md. - Do not hand-edit
CHANGELOG.mdor.release-please-manifest.json.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 15d ago First seen · 23 lines · 1,181 tokens per session scan A ee020b1cbb75
compact-adviser AGENTS.md is an instructions file published in the GitHub repository kunchenguid/compact-adviser (235 stars, last pushed 2d ago), licensed MIT. It adds 1,181 tokens to every session, about $0.0047 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.
compact-adviser AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| compact-adviser AGENTS.mdkunchenguid/compact-adviser | Instructions file | 235 | 2d ago | MIT | A | 1,181 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 9,887 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,230 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 3,303 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 289k | 2d ago | MIT | A | 4,393 | Codex, OpenCode |