Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
dcramer avatar

Dex

  • 731 installs
  • 375 repo stars
  • Updated March 2, 2026
  • dcramer/dex

dex is an agent task-tracking skill and CLI that gives Claude Code, Cursor, and Codex persistent JSONL tasks with description, context, and result fields across sessions.

About

dex is task tracking for AI agents from dcramer/dex, giving developers persistent memory for complex, multi-session work. Each task stores a one-line description, full context background, and a result summary analogous to issue titles, bodies, and PR descriptions. Tasks persist in git-friendly JSONL—one task per line—for versioning and conflict-free merges. Install globally with `npm install -g @zeeg/dex` or add via `npx skills add dcramer/dex` for Claude Code, OpenCode, Codex, and Cursor. Natural-language and `/dex` slash commands create and advance tasks; the docs recommend pairing completion with code-simplifier and commit steps. The skills.sh listing reports 639 installs. Developers reach for dex when long-running agent workflows need structured handoff between sessions instead of ad-hoc todo lists.

  • Orchestrates multiple specialized agents simultaneously
  • Maintains persistent shared memory across agent instances
  • Supports deterministic execution and reproducible results
  • Exposes a clean CLI for scripting complex agent workflows
  • Enables parallel agent collaboration on single tasks

Dex by the numbers

  • 731 all-time installs (skills.sh)
  • Ranked #1,394 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/dcramer/dex --skill dex

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs731
repo stars375
Last updatedMarch 2, 2026
Repositorydcramer/dex

How do you track multi-session AI agent tasks?

Run multiple Claude Code or Cursor agents in parallel with shared context and deterministic output.

Who is it for?

Developers running long Claude Code or Cursor sessions who need structured, git-friendly task memory across multiple agent runs.

Skip if: One-shot prompts or teams that already manage work entirely in GitHub Issues without agent-local task files.

When should I use this skill?

A multi-step agent project needs persistent task breakdown, progress tracking, or cross-session context handoff.

What you get

Versioned JSONL task files with description, context, result fields, and slash-command workflow state.

  • JSONL task log files
  • slash-command task entries
  • cross-session result summaries

By the numbers

  • skills.sh listing reports 639 installs for dcramer/dex
  • Each dex task stores 3 structured fields: description, context, and result

Files

SKILL.mdMarkdownGitHub ↗

Agent Coordination with dex

Command Invocation

Use dex directly for all commands. If not on PATH, use npx @zeeg/dex instead.

command -v dex &>/dev/null && echo "use: dex" || echo "use: npx @zeeg/dex"

Core Principle: Tickets, Not Todos

Dex tasks are tickets - structured artifacts with comprehensive context:

  • Name: One-line summary (issue title)
  • Description: Full background, requirements, approach (issue body)
  • Result: Implementation details, decisions, outcomes (PR description)

Think: "Would someone understand the what, why, and how from this task alone?"

Dex Tasks are Ephemeral

Never reference dex task IDs in external artifacts (commits, PRs, docs). Task IDs like abc123 become meaningless once tasks are completed. Describe the work itself, not the task that tracked it.

When to Use dex

Use dex when:

  • Breaking down complexity into subtasks
  • Work spans multiple sessions
  • Context needs to persist for handoffs
  • Recording decisions for future reference

Skip dex when:

  • Work is a single atomic action
  • Everything fits in one session with no follow-up
  • Overhead exceeds value

dex vs Built-in Task Tools

Some AI agents (like Claude Code) have built-in task tools. These are session-only and not the same as dex.

dexBuilt-in Task Tools
PersistenceFiles in .dex/Session-only
ContextRich (description + context + result)Basic
Hierarchy3-level (epic → task → subtask)Flat

Use dex for persistent work. Use built-in task tools for ephemeral in-session tracking only.

Basic Workflow

Create a Task

dex create "Short name" --description "Full implementation context"

Description should include: what needs to be done, why, implementation approach, and acceptance criteria. See examples.md for good/bad examples.

List and View Tasks

dex list                  # Pending tasks
dex list --ready          # Unblocked tasks
dex show <id>             # Full details

Complete a Task

dex complete <id> --result "What was accomplished" --commit <sha>

GitHub/Shortcut-linked tasks require either --commit <sha> or --no-commit:

  • Use --commit <sha> when you have code changes (issue closes when merged)
  • Use --no-commit for non-code tasks like planning or design (issue stays open)

Always verify before completing. Results must include evidence: test counts, build status, manual testing outcomes. See verification.md for the full checklist.

Edit and Delete

dex edit <id> --description "Updated description"
dex delete <id>

For full CLI reference including blockers, see cli-reference.md.

Understanding Task Fields

Tasks have two text fields:

  • Name: Brief one-line summary (shown in dex list)
  • Description: Full details - requirements, approach, acceptance criteria (shown with --full)

When you run dex show <id>, the description may be truncated. The CLI will hint at --full if there's more content.

Gathering Context

When picking up a task, gather all relevant context:

dex show <id> --full              # Full task details
dex show <parent-id> --full       # Parent context (if applicable)
dex show <blocker-id> --full      # What blockers accomplished

Before starting, verify you can answer:

  • What needs to be done specifically?
  • Why is this needed?
  • How should it be implemented?
  • When is it done (acceptance criteria)?

If any answer is unclear:

1. Check parent task or completed blockers for more details 2. Suggest entering plan mode to flesh out requirements before starting

Proceed without full context when:

  • Task is trivial/atomic (e.g., "Add .gitignore entry")
  • Conversation already provides the missing context
  • Description itself is sufficiently detailed

Task Hierarchies

Three levels: Epic (large initiative) → Task (significant work) → Subtask (atomic step).

Choosing the right level:

  • Small feature (1-2 files) → Single task
  • Medium feature (3-7 steps) → Task with subtasks
  • Large initiative (5+ tasks) → Epic with tasks
# Create subtask under parent
dex create --parent <id> "Subtask name" --description "..."

For detailed hierarchy guidance, see hierarchies.md.

Recording Results

Complete tasks immediately after implementing AND verifying:

  • Capture decisions while fresh
  • Note deviations from plan
  • Document verification performed
  • Create follow-up tasks for tech debt

Your result must include explicit verification evidence. Don't just describe what you did—prove it works. See verification.md.

Commit Messages with GitHub Issues

When a task is linked to a GitHub issue (shown in dex show output), include issue references in commit messages:

  • Root tasks (the task itself has GitHub metadata): Use Fixes #N
  • This closes the issue when merged
  • Subtasks (parent/ancestor has GitHub metadata): Use Refs #N
  • This links to the issue without closing it

Check dex show <id> for GitHub issue info before committing. The "(via parent)" indicator means use Refs, direct metadata means use Fixes.

Best Practices

1. Right-size tasks: Completable in one focused session 2. Clear completion criteria: Description should define "done" 3. Don't over-decompose: 3-7 children per parent 4. Action-oriented descriptions: Start with verbs ("Add", "Fix", "Update") 5. Verify before completing: Tests passing, manual testing done

Additional Resources

  • cli-reference.md - Full CLI documentation
  • examples.md - Good/bad context and result examples
  • verification.md - Verification checklist and process
  • hierarchies.md - Epic/task/subtask organization

Related skills

How it compares

Pick dex when agents need persistent, git-versioned task files; use IDE issue trackers when work stays entirely in GitHub or Linear.

FAQ

What does each dex task store?

dex tasks capture three fields: a one-line description summary, a context section with background and requirements, and a result section documenting implementation decisions and outcomes. The JSONL format writes one task per line for git-friendly versioning.

How do you install dex for AI agents?

dex installs globally with `npm install -g @zeeg/dex` or via `npx skills add dcramer/dex` for Claude Code, OpenCode, Codex, and Cursor. The skills.sh catalog lists 639 installs for the dcramer/dex package.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.