agent-knowledge-cards: Instructions file for Codex

AGENTS.md

agent-knowledge-cards AGENTS.md is an instructions file for Codex, OpenCode from manojbajaj95/agent-knowledge-cards. It costs 879 tokens per session, scanned A, original, MIT.

Repository instructions for agent-knowledge-cards, including its memory system, host adapters, command-line tools, MCP server, and evaluation process. An AGENTS.md file gives coding agents rules for working in a project.

In plain words
What is it for?
Guide agents working on the repository, including where to edit code, how memory and adapters are separated, and how to run evaluation checks.
Why use it?
It gives agents clear project-specific rules about structure, writing style, commands, and validation, reducing inconsistent changes.

Instructions file for CodexOpenCode

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

This is manojbajaj95/agent-knowledge-cards's own configuration. It tells Codex and OpenCode how to work on agent-knowledge-cards 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 agent-knowledge-cards configures →

Reuse

Borrowing it

Nothing to install: this file belongs to manojbajaj95/agent-knowledge-cards. 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/manojbajaj95/agent-knowledge-cards/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/manojbajaj95/agent-knowledge-cards

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 agent-knowledge-cards AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/manojbajaj95/agent-knowledge-cards/agents-md"><img src="https://agentmods.dev/badge/instructions/manojbajaj95/agent-knowledge-cards/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 879 This file is loaded in full into every session.
When invoked 879 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.00879 $0.00879
Opus 5.5 $0.00352 $0.00352
Sonnet 5.5 $0.00176 $0.00176
Haiku 4.5 $0.00088 $0.00088

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

Security

Grade A, and why

agent-knowledge-cards 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 2mo 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 · 59 lines

How it starts

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

AGENTS.md

Always talk in ASD-STE100 Simplified Technical English. Also follow Zinsser's four principles of quality writing:

  1. Simplicity
  2. Brevity
  3. Clarity
  4. Humanity

Conventions for agents working in this repo.

Layout

Two boxes: memory (save, store, retrieve) and harness (fetch + reflect). Adapters wrap host envelopes only.

  • src/memory/ — L1 card internals (ingest, retrieve, storage, markdown) + persist ops (ops.ts). Host-agnostic.
  • src/harness/ — session fetch (fetchCards) + reflect follow-up (reflectFollowup, REFLECT.md). Not a host SDK.
  • src/cli/ — thin CLI over memory (status, query, propose, update, delete, mcp) plus install (adapter wiring). init is hidden; propose creates dirs.
  • src/adapters/ — host hook envelopes (Claude Code / Cursor / Codex) and the Pi extension. Do not import src/memory.
  • src/mcp/ — MCP stdio server (@modelcontextprotocol/sdk); tool logic in tools.ts.
  • eval/ — Harbor A/B with/without knowcards (eval:prepare / eval:run / eval:compare). Primary validation for this slice (manual; not CI). Sequential same-repo runs are named only.
  • tests/ — offline checks for retrieve/fetch and the eval pipeline. No separate unit-test suite beyond that.
  • dist/ — build output for npm / npx (do not edit; emit with bun run build).

On-disk cards

Filesystem-first: cards are local markdown only (.agents/knowledge_cards/<notebook-id>/*.md). No DB backend yet. propose creates notebook dirs as needed (init is hidden; not a required step). Process start loads the full library into memory via openLibrary.

Commands

bun install
pre-commit install       # once per clone
bun test                 # eval pipeline offline checks only
bun run typecheck
bun run lint
bun run build
bun run knowcards install cursor|claude-code|codex|pi
bun run knowcards status|query|propose|update|delete|mcp
bun run eval:prepare     # Harbor — manual
bun run eval:run -- --task pytest-dev__pytest-10051 --agent oracle
bun run eval:run -- --task pytest-dev__pytest-10051  # [email protected] + openai/gpt-5.6-luna
bun run eval:run  # four SWE-bench Verified tasks

Read the full file on GitHub · 59 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. 2mo ago Changed · +18 tokens per session 7f5f592ada20
  2. 2mo ago First seen · 59 lines · 861 tokens per session scan A 05239ef128e7

Subscribe to this mod's changes

agent-knowledge-cards AGENTS.md is an instructions file published in the GitHub repository manojbajaj95/agent-knowledge-cards (4 stars, last pushed 2mo ago), licensed MIT. It adds 879 tokens to every session, about $0.0035 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

agent-knowledge-cards AGENTS.md compared with instructions from other repositories

agent-knowledge-cards AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-knowledge-cards AGENTS.mdmanojbajaj95/agent-knowledge-cardsInstructions file42mo agoMITA879Codex, 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