agentleFS
dcramerdcramer/dex/AGENTS.md

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.

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
  1. Very specific:

    Use pnpm: pnpm install, pnpm build, pnpm test

    line 5
  2. Very specific:

    Use dex skill for task coordination.

    line 35
  3. Very specific:

    Use dex-plan skill for creating tasks from planning docs.

    line 39
  4. Distinctive:

    When adding or modifying CLI commands, update:

    line 52
  5. Very specific:

    Use export type for type-only exports (interfaces, type aliases).

    line 59
  6. Very specific:

    When adding new behavior or modifying existing functionality, review TESTING.md to determine if tests are needed.

    line 72
  7. Distinctive:

    Test error cases users will actually hit

    line 74
  8. Distinctive:

    Add regression tests for bugs

    line 75

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 handlers

Storage

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                              # Cleanup

Documentation

When adding or modifying CLI commands, update:

  • src/cli/help.ts — Built-in help text
  • docs/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)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.