DocsGPT: Instructions file for Codex

AGENTS.md

DocsGPT AGENTS.md is an instructions file for Codex, OpenCode from arc53/DocsGPT. It costs 3,964 tokens per session, scanned A, original, MIT.

Project instructions for developing DocsGPT, covering its entry points, architecture, and local setup checks. They recommend red-green TDD, a cycle of writing a failing test, making it pass, and then improving the code.

In plain words
What is it for?
They help contributors read the right project guidance, reuse existing Python, PostgreSQL, and Redis setups, and decide when MongoDB is actually needed.
Why use it?
They help prevent unnecessary environment changes and make development follow the project's existing prerequisites and workflow.

Instructions file for CodexOpenCode

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

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

About the project

DocsGPT is an open-source private AI platform for building agents, assistants, and enterprise search over documents, web content, and audio. It is for users who need document analysis, cited answers, model flexibility, and API-connected tools while retaining control over deployment and data.

arc53/DocsGPT · 18,358 stars · on GitHub · app.docsgpt.cloud

Reuse

Borrowing it

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

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 DocsGPT AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/arc53/docsgpt/agents-md"><img src="https://agentmods.dev/badge/instructions/arc53/docsgpt/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,964 This file is loaded in full into every session.
When invoked 3,964 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.03964 $0.03964
Opus 5.5 $0.01586 $0.01586
Sonnet 5.5 $0.00793 $0.00793
Haiku 4.5 $0.00396 $0.00396

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

Security

Grade A, and why

DocsGPT 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 7d 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 · 298 lines

How it starts

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

AGENTS.md

  • Read CONTRIBUTING.md before making non-trivial changes.
  • For day-to-day development and feature work, follow the development-environment workflow rather than defaulting to setup.sh / setup.ps1.
  • Avoid using the setup scripts during normal feature work unless the user explicitly asks for them. Users configure .env usually.
  • Try to follow red/green TDD

Check existing dev prerequisites first

For feature work, do not assume the environment needs to be recreated.

  • Check whether the user already has a Python virtual environment such as venv/ or .venv/.
  • Check whether Postgres is already running and reachable via POSTGRES_URI (the canonical user-data store).
  • Check whether Redis is already running.
  • Reuse what is already working. Do not stop or recreate Postgres, Redis, or the Python environment unless the task is environment setup or troubleshooting.

MongoDB is not required for the default install. It is only needed if the user opts into the Mongo vector-store backend (VECTOR_STORE=mongodb) or is running the one-shot scripts/db/backfill.py to migrate existing user data from the legacy Mongo-based install. pymongo is not a dependency or an extra: install it separately with uv pip install 'pymongo>=4.6' (a later uv sync removes it again). The vector store needs Atlas $vectorSearch, not a plain mongo container.

Normal local development commands

Use these commands once the dev prerequisites above are satisfied.

Backend

uv sync                    # deps from uv.lock + the dev group (test tools, ruff) + docsgpt itself, editable
source .venv/bin/activate  # macOS/Linux
# pip instead: pip install -r docsgpt/requirements.txt -r tests/requirements.txt && pip install -e .
# Optional extras (not installed by default); name every extra you want, `uv sync` removes the others:
# uv sync --extra docling   # docling parser engine (OCR backend, structured output)
# uv sync --extra milvus    # VECTOR_STORE=milvus
# pip: pip install -r docsgpt/requirements-docling.txt (or requirements-milvus.txt); each file = core + the extra.
# `uv pip install -r docsgpt/requirements-docling.txt` needs UV_INDEX_STRATEGY=unsafe-best-match
# (the file adds the PyTorch CPU index; prefer `uv sync --extra docling`).

Read the full file on GitHub · 298 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. 7d ago Changed · +5 lines · +138 tokens per session 8565f3eddaa8
  2. 15d ago Changed · +7 lines · +125 tokens per session 3e072282aad8
  3. 17d ago Changed · +4 lines · +96 tokens per session 26f44e9c6105
  4. 20d ago Changed · +1 tokens per session 4000620960be
  5. 1mo ago Changed · +5 tokens per session 38bd016dab9e
  6. 1mo ago Changed · +3 lines · +39 tokens per session 5a84f424854e
  7. 1mo ago Changed · +35 lines · +718 tokens per session a37ad8226590
  8. 1mo ago Changed · +4 lines · +100 tokens per session afd0e60b0f59
  9. 1mo ago Changed · +36 tokens per session 744c1a439652
  10. 1mo ago First seen · 240 lines · 2,706 tokens per session scan A 6003908afa63

Subscribe to this mod's changes

DocsGPT AGENTS.md is an instructions file published in the GitHub repository arc53/DocsGPT (18,358 stars, last pushed yesterday), licensed MIT. It adds 3,964 tokens to every session, about $0.0159 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-30.

Related

DocsGPT AGENTS.md compared with instructions from other repositories

DocsGPT AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
DocsGPT AGENTS.mdarc53/DocsGPTInstructions file18kyesterdayMITA3,964Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode