dex
AGENTS.md385 starsChanged 10 months agoMITView on GitHub
Use pnpm: pnpm install, pnpm build, pnpm test AI commits MUST include: Example: Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com> JSONL format: .dex/tasks.jsonl (one task per line, auto-migrates from old formats) Use dex skill for task coordination. See plugins/dex/skills/dex/SKILL.md Use dex-plan skill for creating tasks from planning docs. See plugins/dex/skills/dex-plan/SKILL.md When adding or modifying CLI commands, update: Use export type for type-only exports (interfaces, type aliases). Bun requires explicit type exports: When adding new behavior or modifying existing functionality, review TESTING.md to…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Use pnpm: pnpm install, pnpm build, pnpm test
- Very specific: line 35
Use dex skill for task coordination.
- Very specific: line 39
Use dex-plan skill for creating tasks from planning docs.
- Distinctive: line 52
When adding or modifying CLI commands, update:
- Very specific: line 59
Use export type for type-only exports (interfaces, type aliases).
- Very specific: line 72
When adding new behavior or modifying existing functionality, review TESTING.md to determine if tests are needed.
- Distinctive: line 74
Test error cases users will actually hit
- Distinctive: line 75
Add regression tests for bugs
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Instructions
Package Manager
Use pnpm: pnpm install, pnpm build, pnpm test
Commit Attribution
AI commits MUST include:
Co-Authored-By: <model name> <noreply@anthropic.com>Example: Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Architecture
src/
├── index.ts # Entry: routes to CLI or MCP
├── types.ts # Zod schemas
├── core/ # Storage + TaskService
├── tools/ # MCP tool handlers
├── mcp/server.ts # MCP server
└── cli/commands.ts # CLI handlersStorage
JSONL format: .dex/tasks.jsonl (one task per line, auto-migrates from old formats)
Task Management
Use dex skill for task coordination. See plugins/dex/skills/dex/SKILL.md
Task Planning
Use dex-plan skill for creating tasks from planning docs. See plugins/dex/skills/dex-plan/SKILL.md
Local Development
pnpm install && pnpm build && pnpm link # Setup
pnpm build # Rebuild after changes
pnpm dev # Watch mode
pnpm unlink # CleanupDocumentation
When adding or modifying CLI commands, update:
src/cli/help.ts— Built-in help textdocs/src/pages/cli.astro— CLI reference documentation
TypeScript Exports
Use export type for type-only exports (interfaces, type aliases). Bun requires explicit type exports:
// Good
export type { GitHubRepo } from "./remote.js";
export { getGitHubRepo } from "./remote.js";
// Bad - fails in Bun
export { GitHubRepo, getGitHubRepo } from "./remote.js";Testing
When adding new behavior or modifying existing functionality, review TESTING.md to determine if tests are needed. Key points:
- Test error cases users will actually hit
- Add regression tests for bugs
- Co-locate tests with source (
foo.ts→foo.test.ts)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

