Borrowing it
Nothing to install: this file belongs to B-A-M-N/Kontrol. 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/B-A-M-N/Kontrol/main/AGENTS.mdgit clone --depth 1 https://github.com/B-A-M-N/KontrolWrote 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/b-a-m-n/kontrol/agents-md)<a href="https://agentmods.dev/instructions/b-a-m-n/kontrol/agents-md"><img src="https://agentmods.dev/badge/instructions/b-a-m-n/kontrol/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/b-a-m-n/kontrol/agents-md"><img src="https://agentmods.dev/badge/instructions/b-a-m-n/kontrol/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.13363 | $0.13363 |
| Opus 5.5 | $0.05345 | $0.05345 |
| Sonnet 5.5 | $0.02673 | $0.02673 |
| Haiku 4.5 | $0.01336 | $0.01336 |
Grade A, and why
Kontrol AGENTS.md scanned grade A with 1 finding 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 3d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
is not a spawn unless it reaches the `node:child_process` API. How it starts
The opening of the file, as written. The whole thing — 877 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Kontrol
This project exposes local development workspaces over MCP so ChatGPT, Claude, or another MCP-capable host can operate on this machine's approved development directories. It supports two complementary workflows:
- Direct MCP workspace operations, where the host calls tools that read files, edit files, search code, and run shell commands against an opened workspace.
- Delegated ACP worker runs, where Kontrol dispatches a bounded task to a registered local coding agent and routes completion through a human-reviewed Ralph/Nelson loop.
Pi's SDK is currently used as the backend adapter for mature local coding primitives such as read, edit, write, grep, find, ls, and bash. Kontrol wraps those primitives behind a remote Streamable HTTP MCP interface, suitable for use through a Cloudflare Tunnel.
Workspace records identify the shared project/root and checkpoint state; conversation-sensitive instruction discovery, skill activation, active work-session attribution, and UI selection belong to the owning MCP session context. A shared workspace ID must not cross that boundary.
The model-facing workflow is workspace based. MCP clients should call
open_workspace once per local project directory or worktree, then reuse the
returned workspaceId for subsequent tool calls in that same folder. Do not
call open_workspace again for the same folder unless the workspaceId is
rejected as unknown, the client switches folders/worktrees or checkout/worktree
mode, or the user explicitly asks to reopen. AGENTS.md files are returned
automatically by open_workspace and by later tool calls when the requested path
enters a directory with instructions that have not been loaded for that
workspace.
ACP review workflow:
- Reviewer tools and worker tools are separate. Workers must never approve their own work or operate on a work session they are not bound to.
- Reviewer and delegation routing: the active WebUI model is the primary
reviewer, orchestrator, and inspector. Review, audit, diagnosis, architecture,
and code-edit work starts directly in the opened workspace. ACP workers are
optional bounded assistance only; call
discover_agentsbefore delegation, dispatch only a currently dispatchable healthyrole: agentpeer, and when optional assistance is unavailable return to direct workspace work without trying an alternate ACP path. When the caller platform is identifiable, prefer its healthy registered native harness (for example ChatGPT/OpenAI to Codex); otherwise use any healthy registered ACP peer.agentNameis an explicit override. The platform hint affects routing only, never authority. A normal review must not enter supervised work. Ordinary non-Git directories are valid checkout workspaces; Git is required only for managed worktrees. - Review checkpoints are backend-neutral: Git workspaces use immutable Git
snapshots, while ordinary directories use content-addressed filesystem
snapshots without initializing or mutating Git. Submissions, approval, and
verification bind to
snapshotKindplussnapshotRef; any patch is only a bounded presentation of that exact snapshot. Structured read-onlyread,grep,glob, andlsremain public even in codex tool mode. submit_to_coding_agentand supervised mission tools create durable work sessions. A worker submits changes withsubmit_for_review, then blocks onawait_review_feedback.- A reviewer provides approval, rejection, or structured change requests through the WebUI/MCP tools. Change requests create durable continuations; approval is bound to the exact submission hash, review epoch, and workspace snapshot.
begin_supervised_work,inspect_supervised_work,continue_supervised_work, andapprove_supervised_workare the mission control plane for acceptance-criterion-driven work.- Cancellation is durable and must stop the logical work session, supersede
pending continuations, and request cancellation from the remote worker. The
record remains in
cancellinguntil worker shutdown or a confirmed missing remote run, then becomes terminal; workspace leases stay fenced meanwhile.
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.
- 3d ago Changed · +451 lines · +7,603 tokens per session f3fc69cfb0b2
- 24d ago Changed · +30 lines · +422 tokens per session aa12fa449913
- 28d ago Changed · +35 lines · +517 tokens per session 9a054c1cba6e
- 29d ago Changed · +74 lines · +1,100 tokens per session c199da8afa35
- 1mo ago Changed · +36 lines · +474 tokens per session e81ed887e4d1
- 1mo ago Changed · +177 lines · +2,477 tokens per session 3e4ab7935295
- 2mo ago First seen · 74 lines · 770 tokens per session scan A 2f3abd70f803
Kontrol AGENTS.md is an instructions file published in the GitHub repository B-A-M-N/Kontrol (0 stars, last pushed yesterday), licensed MIT. It adds 13,363 tokens to every session, about $0.0535 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.