agent-context-doctor AGENTS.md

agent-context-doctor AGENTS.md is an instructions file for Codex, OpenCode from lamguo/agent-context-doctor. It costs 367 tokens per session, scanned A, a copy of agent-context-doctor copilot-instructions.md, MIT.

Project-specific instructions for Agent Context Doctor, a Python command-line tool that checks and maintains files giving coding agents repository context.

In plain words
What is it for?
Develop, test, verify, synchronize, package, and diagnose Agent Context Doctor while preserving user-written content and avoiding runtime network calls.
Why use it?
They tell an agent how to set up the project, which commands to run, how the repository is organized, and which safety and coding rules to follow.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/lamguo/agent-context-doctor/agents-md
Clone the repo
git clone --depth 1 https://github.com/lamguo/agent-context-doctor

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-context-doctor AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lamguo/agent-context-doctor/agents-md.svg)](https://agentmods.dev/instructions/lamguo/agent-context-doctor/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/lamguo/agent-context-doctor/agents-md"><img src="https://agentmods.dev/badge/instructions/lamguo/agent-context-doctor/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 367 This file is loaded in full into every session.
When invoked 367 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod 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 $0.00367 $0.00367
Opus 5 $0.00183 $0.00183
Sonnet 5 $0.00073 $0.00073
Haiku 4.5 $0.00037 $0.00037

Measured 4d ago against content hash 0b090331881e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-context-doctor 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 4d 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.

Origin

This is a copy

88% identical to agent-context-doctor copilot-instructions.md — 10 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 70 lines

What it actually says

AGENTS.md

Project Overview

Agent Context Doctor is a Python CLI that audits, generates, syncs, repairs, and packages repository context files for AI coding agents.

Setup Commands

python -m pip install -e .[dev]

Development Commands

pytest
agentctx scan
agentctx verify --min-score 90
agentctx sync --check
agentctx pack --stdout
agentctx badge
agentctx doctor

Project Structure

  • src/agentctx/ - source code for the CLI package.
  • tests/ - pytest test suite.
  • docs/ - additional documentation.
  • .github/workflows/ci.yml - GitHub Actions workflow.

Coding Guidelines

  • Keep the package zero-runtime-dependency unless there is a strong reason to add one.
  • Prefer small, focused functions over large command handlers.
  • Keep CLI output stable and readable.
  • Keep JSON output stable and script-friendly.
  • Keep scan human-oriented and verify CI-oriented.
  • Keep agentctx doctor --fix safe: no deletion and no overwriting user-authored content outside markers.
  • Avoid network calls in runtime code.

Testing Instructions

Run the full test suite before completing changes:

pytest

Also run a CLI smoke test:

agentctx verify --min-score 90
agentctx sync --check

Security Notes

  • Do not collect or upload repository contents.
  • Do not commit secrets, API keys, credentials, or private generated files.
  • Treat all scanned file contents as local-only data.

Handoff Notes

Before ending a long session, update HANDOFF.md or run:

agentctx handoff
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. 4d ago First seen · 70 lines · 367 tokens per session scan A 0b090331881e

Subscribe to this mod's changes

agent-context-doctor AGENTS.md is an instructions file published in the GitHub repository lamguo/agent-context-doctor (1 stars, last pushed 2mo ago), licensed MIT. It adds 367 tokens to every session, about $0.0018 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to agent-context-doctor copilot-instructions.md, differing in 10 lines, and is treated as a copy.

Related

Other instructions, from other repositories

cursor-os AGENTS.md

Instructions for KingEmma7/cursor-os, covering agents.md — cursor-os, what this project is, repository layout, working agreements and verification before done.

KingEmma7/cursor-os · 418 tokens

agent-rulescope AGENTS.md

AGENTS.md instructions for 13624725933/agent-rulescope, a project described as: See exactly which instructions your coding agent inherits. Scan AGENTS.md, CLAUDE.md, Cursor and Copilot rules.

13624725933/agent-rulescope · 83 tokens

agent-rulescope tests.instructions.md

Instructions for 13624725933/agent-rulescope, a project described as: See exactly which instructions your coding agent inherits. Scan AGENTS.md, CLAUDE.md, Cursor and Copilot rules.

13624725933/agent-rulescope · 38 tokens

agent-rulescope copilot-instructions.md

Copilot instructions for 13624725933/agent-rulescope, a project described as: See exactly which instructions your coding agent inherits. Scan AGENTS.md, CLAUDE.md, Cursor and Copilot rules.

13624725933/agent-rulescope · 25 tokens

agents-md-templates AGENTS.md

Instructions for abhishekray07/agents-md-templates, covering agents.md, project, structure, conventions and don't.

abhishekray07/agents-md-templates · 591 tokens

LynxPrompt CLAUDE.md

Claude Code instructions for GeiserX/LynxPrompt, covering claude.md - ai agent instructions for lynxprompt, 🚀 release process (critical - read carefully), understanding the release pipeline, step-by-step release process and 1. switch to develop branch.

GeiserX/LynxPrompt · 6,159 tokens