Borrowing it
Nothing to install: this file belongs to itlackey/akm. 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/itlackey/akm/main/AGENTS.mdgit clone --depth 1 https://github.com/itlackey/akmWrote 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/itlackey/akm/agents-md)<a href="https://agentmods.dev/instructions/itlackey/akm/agents-md"><img src="https://agentmods.dev/badge/instructions/itlackey/akm/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/itlackey/akm/agents-md"><img src="https://agentmods.dev/badge/instructions/itlackey/akm/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.04606 | $0.04606 |
| Opus 5.5 | $0.01842 | $0.01842 |
| Sonnet 5.5 | $0.00921 | $0.00921 |
| Haiku 4.5 | $0.00461 | $0.00461 |
Grade A, and why
akm 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.
- **Classification rule (ORG-03/04/05/06)**: a file belongs under `tests/integration/` iff it opens a real database (`openIndexDatabase`/`openExistingDatabase`), touches the network, or spawns a real process (`spawn`/`sp How it starts
The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AKM Repo Notes
Workflow
- Runtime and tooling are Bun-first. Use
bun install. - CI runs
bun run check, which isbun run lint && bunx tsc --noEmit && bun run test:unit && bun run test:integration. - Before committing, run
bunx biome check --write src/ tests/. Repo guidance prefers the write-capable Biome pass, not justbun run lint. - Build with
bun run build. It compilessrc/**only intodist/;dist/testsshould never appear. - Prefer focused verification with
bun test tests/<file>.test.ts.bun run check:changedruns a small set of output/contract suites (output-baseline, registry-search, show-argv-entrypoint, output-shapes-unit) plusbun run lintandbunx tsc --noEmit.
Architecture
- This is a CLI-only package. There is no public API, no barrel exports, and no
exportsmap.src/cli.tsis the thin dispatcher; command implementations live undersrc/commands/, mostly in per-family directories (src/commands/read/,src/commands/improve/,src/commands/sources/,src/commands/env/,src/commands/tasks/,src/commands/agent/,src/commands/proposal/,src/commands/health/,src/commands/lint/), with a handful of standalone*-cli.tsfiles (e.g.config-cli.ts,workflow-cli.ts,migrate-cli.ts,registry-cli.ts) still at the top level. - If you touch providers, refs, search/show behavior, config, or output shaping, read
docs/architecture/architecture.mdfirst.tests/contracts/pins active contracts and is meant to catch contract drift. - Supported source providers are locked to
filesystem,git,website, andnpm. Do not addcontext-hub; do not reintroduceopenviking. SourceProvideris exactly{ name, kind, path, sync? }. All providers materialize files to local disk.- Asset refs are
[bundle//]conceptId[#fragment], whereconceptIdis subdir-qualified within its bundle (e.g.skills/code-review,memories/vpn-note,knowledge/api-guide,env/prod). Durable state stores the fully-qualifiedbundle//conceptId; the short bundle-omitted form is input sugar resolved againstdefaultBundle, then the remaining bundles in installation-priority order. Source locators likegithub:owner/repoare forakm bundle add, not for asset addressing. The old[origin//]type:namegrammar is gone (the frozen migrator inscripts/akm-migrate/migrate/is the only place it survives). showis local-index only: resolve through the FTS index, then read from disk. No per-providershowexists.- Registry results are opt-in, stay separate from normal stash hits, and live in
registryHits, neverhits. - All write-target branching by
source.kindbelongs insrc/core/write-source.ts. - Write-target resolution order is
--target->defaultWriteTarget-> working stash (defaultBundle); there is no fallback to the first writable source. writabledefaults totrueonfilesystemandfalseongit/website/npm;writable: trueonwebsiteornpmis rejected at config load.- Treat
enabled: falseas inert across content reads, writes, indexing, and execution. Explicit bundle lifecycle commands may still update a named disabled bundle without activating it. Never infer the default/trusted bundle from array position; carry bundle identity and default status explicitly. scheduler.enabledis this host's list of scheduled refs (bundle//tasks/x) in memory; on disk it is written in the{kind, ref, sourceId}shape 0.9.16 reads (schedulerEnabledOnDisk,src/core/config/config.ts) until no supported release is strict about it. Removing a bundle drops its refs. A config without the list means "keep what is installed": the firsttask sync/setup/enable/disable/addafter an upgrade takes the akm-written native rows as the choice and writes it (enabledRefsFromInstalled,src/tasks/activation-config.ts). An explicit list, empty or not, is never second-guessed. There are no grants, source identities or fire-time checks.extendsmay share portable policy, but host authority stays local: sources/defaults, registries, scheduler/execution/experimental state, credentials, executable argv/workspace, publication policy, and credential-bearing network connections must not be inherited. Bundle-relative chains require physical (realpath) containment.- Executable asset frontmatter may request a tool subset but cannot set child
workspace,environment, or opaqueruntime; tool requests are capped by localexecution.allowedToolsand must be enforceable by the selected lowerer. - Harnesses are thin, replaceable internals (core principle 10,
docs/architecture/akm-core-principles.md) and are registered in one place (core principle 2): each registers once inHARNESS_REGISTRY, and core code imports the registry, not a harness. Don't spread harness-specific code or concepts into akm core. - Unsafe CLI overrides name one risk. Use
--allow-insecure-transportonly for plain HTTP and--allow-dangerous-env-keysonly for reviewed process-hijacking environment keys; do not add a combined bypass.
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 · +102 tokens per session cdf871211023
- 4d ago Changed · +1 lines · +29 tokens per session 262ac1571b87
- 5d ago Changed · -41 tokens per session e8398287e5a6
- 20d ago Changed · -47 tokens per session 089ca8f1ddac
- 23d ago Changed · +53 tokens per session ae3b05ab5802
- 27d ago Changed · +1 lines · +163 tokens per session d3292c0e562a
- 28d ago Changed · +7 lines · +366 tokens per session b6e69a87d044
- 1mo ago Changed · +48 tokens per session 4a2d88090404
- 1mo ago Changed · +30 lines · +1,178 tokens per session 244852d06735
- 1mo ago First seen · 60 lines · 2,755 tokens per session scan A c96ba2da30b9
akm AGENTS.md is an instructions file published in the GitHub repository itlackey/akm (67 stars, last pushed today), licensed MPL-2.0. It adds 4,606 tokens to every session, about $0.0184 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-30.
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).
vscode model-prompts.instructions.md
Model-specific prompt authoring and registry guidelines.