backlog-mcp: Instructions file for Codex

AGENTS.md

backlog-mcp AGENTS.md is an instructions file for Codex, OpenCode from gkoreli/backlog-mcp. It costs 826 tokens per session, scanned A, original, MIT.

Development instructions for backlog-mcp, including its testing rules and the way its code uses an in-memory filesystem. Unit tests check real production code without reading or writing the computer's files.

In plain words
What is it for?
Use them when adding tests, choosing test locations, running all or package-specific tests, and mocking filesystem operations with memfs.
Why use it?
They keep tests fast, isolated, and repeatable while preventing accidental dependence on a developer's local filesystem or external services.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is gkoreli/backlog-mcp's own configuration. It tells Codex and OpenCode how to work on backlog-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything backlog-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gkoreli/backlog-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gkoreli/backlog-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/gkoreli/backlog-mcp

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for backlog-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gkoreli/backlog-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/gkoreli/backlog-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/gkoreli/backlog-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/gkoreli/backlog-mcp/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.

agentmods 80×15 button for backlog-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gkoreli/backlog-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/gkoreli/backlog-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 826 This file is loaded in full into every session.
When invoked 826 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00826 $0.00826
Opus 5.5 $0.00330 $0.00330
Sonnet 5.5 $0.00165 $0.00165
Haiku 4.5 $0.00083 $0.00083

Measured 1mo ago against content hash 6caa06caf1e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

backlog-mcp 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 1mo 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.

AGENTS.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — backlog-mcp

backlog-mcp is a local-first, markdown-backed engine for agent context and memory. Tasks, decisions, and memories share one store, used through the CLI, MCP, and a live read-only viewer. Humans can read, edit, and diff the markdown without the tool.

Critical constraints

  • Preserve human-visible markdown and one source of truth. No LLM in the server write path. Local mode grows; D1/Workers is descoped, retained with no parity owed. Never compromise local capabilities for D1 parity.
  • For code changes, follow ADR 0134: transport-free business logic in core, thin peer adapters, injected ports, modular typed code. Fix architecture violations; never grow the allowlist.
  • Unit tests only, with mocked external dependencies and memfs. Repository/git probes may read real files via vi.importActual('node:fs'), never write them. Read the testing guide for any test work, including running and debugging.
  • User-facing changes need a CHANGELOG.md entry; every version bump updates the changelog in the same change. See the packages and releases guide.
  • Before calling a tool, expand its full input schema. Discovery summaries are not argument contracts; the shared Markdown body field is content.

Minimal memory loop

  • Wake once at session start: backlog_wakeup / backlog wakeup. Do not repeat during ordinary work. After context loss, recover from the durable work record; wakeup with operation can restore a known live operation.
  • Recall when prior knowledge matters, once per topic: backlog_recall / backlog recall "<topic>". Search the current corpus with backlog_search; expand selected entities with backlog_get (context: true for relation stubs).
  • Inspect age, provenance, and correction lineage. Current user direction, project decisions, and verified contracts outweigh stale memories.
  • Remember durable, non-obvious facts with backlog_remember, one fact per memory. Correct with supersedes or state_key; never duplicate contradictions.

Read the full file on GitHub · 50 lines

Changes

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.

  1. 1mo ago Changed · -321 lines · -3,654 tokens per session 6caa06caf1e0
  2. 1mo ago Changed · +35 lines · +574 tokens per session a9745422d2eb
  3. 1mo ago Changed · +14 lines · +183 tokens per session a60ff468b00b
  4. 2mo ago First seen · 322 lines · 3,723 tokens per session scan A d3c1ec10313c

Subscribe to this mod's changes

backlog-mcp AGENTS.md is an instructions file published in the GitHub repository gkoreli/backlog-mcp (5 stars, last pushed 29d ago), licensed MIT. It adds 826 tokens to every session, about $0.0033 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.

Related

backlog-mcp AGENTS.md compared with instructions from other repositories

backlog-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
backlog-mcp AGENTS.mdgkoreli/backlog-mcpInstructions file529d agoMITA826Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode