Borrowing it
Nothing to install: this file belongs to dimosgit/grounded-knowledge-engine. 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/dimosgit/grounded-knowledge-engine/main/AGENTS.mdgit clone --depth 1 https://github.com/dimosgit/grounded-knowledge-engineWrote 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/dimosgit/grounded-knowledge-engine/agents-md)<a href="https://agentmods.dev/instructions/dimosgit/grounded-knowledge-engine/agents-md"><img src="https://agentmods.dev/badge/instructions/dimosgit/grounded-knowledge-engine/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/dimosgit/grounded-knowledge-engine/agents-md"><img src="https://agentmods.dev/badge/instructions/dimosgit/grounded-knowledge-engine/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.02989 | $0.02989 |
| Opus 5.5 | $0.01196 | $0.01196 |
| Sonnet 5.5 | $0.00598 | $0.00598 |
| Haiku 4.5 | $0.00299 | $0.00299 |
Grade A, and why
grounded-knowledge-engine 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 26d 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 — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Guide
Canonical guidance for coding agents (Claude Code, Codex, Gemini CLI) working
in this repository. CLAUDE.md and GEMINI.md import this file — edit here,
not there.
GKE is a local-first grounded knowledge engine: Markdown files are the source of truth, the retrieval index (BM25 / SQLite FTS5) is derived and disposable, and the same engine core is exposed through a CLI, a local MCP server, and the optional Operator Cockpit web preview. This repo is public — see Sanitization below before committing anything.
Agent operating contract
This file is the repository's agent contract. Do not create a second contract file with overlapping rules.
- Use the connected GKE MCP server first when a request depends on the user's
documents, a named workspace or client, previous research, project state,
decisions, or handoffs. For ordinary grounded Q&A use
kb.answer_and_capture; for a named project usekb.resume_project; usekb.searchonly for evidence-only retrieval andkb.get_recordonly for an explicitly requested record. - Do not use GKE MCP merely to inspect or debug this repository's source code. The checked-out files and tests are authoritative for implementation work.
- If a task should use GKE but no
kb.*tools are visible, say that the MCP connection is unavailable, runnpm run setup:mcp -- --client <client>when local configuration is in scope, and remind the operator that clients must be restarted to reload their tool catalog. Do not silently pretend an ungrounded answer came from GKE. - MCP tools are model-controlled: registration makes them available but does not force a call. These routing rules are therefore mandatory for applicable tasks.
- A change request authorizes ordinary reversible edits and verification only inside the requested repository scope. Preserve unrelated work and untracked private KB files.
- Publishing, deployment, pushing, release, external communication, production credentials, and destructive or broad data operations require explicit user authority. Preview and confine writes wherever the command supports it.
- Stop and ask when the required target is ambiguous, instructions conflict, private data may be exposed, an unrelated change would be overwritten, or the next step needs authority beyond the request. Report evidence honestly; never claim an unrun or failed gate passed.
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.
- 26d ago Changed · +21 lines · +301 tokens per session 20ea99d87ab7
- 2mo ago Changed · +15 lines · +239 tokens per session 2a04b49b31c4
- 2mo ago First seen · 190 lines · 2,449 tokens per session scan A ffec3f28d1e4
grounded-knowledge-engine AGENTS.md is an instructions file published in the GitHub repository dimosgit/grounded-knowledge-engine (5 stars, last pushed 27d ago), licensed MIT. It adds 2,989 tokens to every session, about $0.0120 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-08-31.
grounded-knowledge-engine AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| grounded-knowledge-engine AGENTS.mddimosgit/grounded-knowledge-engine | Instructions file | 5 | 27d ago | MIT | A | 2,989 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |