docflow

Why DocFlow ·
Install ·
Demo ·
Context proof ·
Example repo ·
Security
DocFlow gives AI coding agents durable project memory. It organizes what the product does, how it works, why decisions were made, what is planned, and what shipped—then routes the agent to the smallest relevant document.
Plain Markdown. Small Bash helpers. No database, hosted service, or source-code rewrite.
Status: early MVP. Claude Code plugin setup works today. Codex works through repository guidance and local plugin development; a public Codex directory listing is not published yet.
Why DocFlow
| Without DocFlow | With DocFlow |
|---|
| Every new session rediscovers the documentation layout | The agent starts from one compact path → purpose map |
| Product behavior, implementation, and decisions are mixed together | WHAT, HOW, and WHY have stable homes |
| Existing docs may need a risky manual migration | doctor chooses init, adopt, or repair; adoption preserves existing docs |
| Recent shipped work depends on chat history or memory | An append-only monthly changelog carries outcomes into later sessions |
| Broken links and stale indexes are found by accident | Validation checks links, headings, map freshness, and required structure |
| Large documentation sets may be read broadly | The agent opens one routed document first; measured initial docs context stayed below 1% in two established repositories |
What changes in your repository
your-repo/
├── AGENTS.md # agent start and routing rules
├── GEMINI.md # points Gemini to the same rules
├── .cursorrules # points Cursor to the same rules
├── docflow.json # docs root + validation profile
├── docs/
│ ├── README.md # human documentation hub
│ ├── INDEX.md # compact map agents read first
│ ├── product-spec/ # WHAT the product does
│ ├── specs/ # HOW it is implemented
│ ├── decisions/ # WHY choices were made
│ ├── plans/ # planned and in-progress work
│ ├── reviews/ # audits, quality, and known bugs
│ └── changelog/ # shipped outcomes by month
└── scripts/ # doctor, repair, map, links, validation
DocFlow does not move existing documentation during adoption, edit application source code, call a remote service, or silently fix user-authored content.
Install And Run
Claude Code — plugin setup
Run these inside Claude Code:
/plugin marketplace add https://github.com/MedAdemBHA/docflow
/plugin install docflow
/reload-plugins
Then open the target repository:
/docflow:doctor
Run the one next command it recommends. Type /docflow: to browse commands, or ask naturally: “is DocFlow ready here?”, “where is authentication documented?”, or “add this release to the changelog.”
Codex, Gemini, Cursor, or any agent — repository setup
This is the verified portable path today:
git clone https://github.com/MedAdemBHA/docflow.git
cd docflow
# Read-only diagnosis first
bash scripts/docflow-doctor.sh --target /path/to/your-repo
# Empty/new documentation
bash scripts/scaffold.sh --target /path/to/your-repo --docs-root docs --project "My App"
# OR: preserve and adopt existing documentation
bash scripts/docflow-adopt.sh --target /path/to/your-repo --docs-root docs --project "My App"
Open the target repository in your agent. Codex reads AGENTS.md; Gemini and Cursor are pointed to the same rules. Confirm readiness with:
bash /path/to/docflow/scripts/docflow-check.sh --target /path/to/your-repo
Codex plugin status