Requires Node.js 18+ and pnpm (recommended) or npm.
1. Install
pnpm add -D @arach/dewey
2. Initialize
npx dewey init
Creates a docs/ folder with starter templates and a dewey.config.ts configuration file.
3. Configure
export default {
project: {
name: 'your-project',
tagline: 'What your project does',
type: 'npm-package', // or cli-tool, react-library, etc.
},
agent: {
criticalContext: [
// Rules AI agents MUST know
'NEVER do X when Y',
],
entryPoints: {
'main': 'src/',
},
},
install: {
objective: 'Install and configure your-project.',
steps: [
{ description: 'Install', command: 'pnpm add your-project' },
],
},
}
4. Write docs
Create pages in the docs/ folder:
docs/
overview.md # Project introduction
quickstart.md # Getting started guide
api.md # API reference
overview.agent.md # Agent-optimized version
5. Generate agent files
npx dewey generate
Outputs AGENTS.md, llms.txt, docs.json, install.md, and an agent/ retrieval surface with raw markdown, prompt registries, manifests, and context bundles.
6. Check your score
Agent Readiness Report
Overall Score: 75/100 (Grade: C)
Categories:
✓ Project Context: 20/25
○ Agent-Optimized Files: 20/30
...
7. Optional: create a doc site
npx dewey create my-docs --source ./docs --theme ocean
cd my-docs && pnpm install && pnpm dev
Generates a static docs site from the same markdown when you want a human-facing site alongside the agent artifacts.
Next steps
- Create
.agent.mdversions of your docs for denser, structured content - Add skills to
.claude/skills/for custom agent-guided reviews - Run
npx dewey auditto check documentation completeness - Use
dewey createwhen you want to publish the same docs as a static site