A task format for AI agents.
.tasks is an open format for tracking work that outlives a single session. Tasks are markdown in your repository, committed alongside the code they describe, with the resume point the next session reads to continue. No server, no account, no network.
What is .tasks?
It is a directory of markdown files. Each task is a directory holding a task.md: a YAML frontmatter block the tooling owns, and a body you write yourself. Beside it live the files the next session reads — state.md says where the work stands.
A task's path is its id, and a task inside another task is a part of its deliverable: the parent is done only when its parts are. Group the rest by directory however you like.
.tasks/
├── config.yml # version: 2, optional scope and projects
├── index.md # Optional: generated overview
├── auth-rework/ # A task: the directory holds a task.md
│ ├── task.md # The manifest
│ ├── design.md # Decisions, for whoever continues
│ ├── token-schema/ # A child task: part of the deliverable
│ │ ├── task.md
│ │ ├── state.md # The resume point
│ │ └── log.md # History, appended by the CLI
│ └── wire-refresh/
│ └── task.md
└── .archive/ # Archived tasks; their paths stay reserved---status: PAUSEDpriority: highdepends_on: [auth-rework/audit-claims]finishes_after: []assignee: aliceclaimed_by: nullclaimed_session: null---# Design the token schema## Acceptance criteria- [ ] Refresh tokens are single-use
A person with a text editor can do anything the tooling can — and the tooling can repair what they get wrong.
Why .tasks?
An agent working across sessions needs somewhere to put state that survives losing its context. Left alone, it invents something: a TODO.md, a checklist buried in a pull request, a plan rewritten from scratch every session.
None of that survives a second agent working in parallel, none of it says what is actually ready to start, and none of it tells the next session where the work stopped. A shared format gives you:
One source of truth
Task state is committed with the code it describes, so it branches, merges, and reviews like everything else in the repo.
Safe to run in parallel
Every write takes the tree's one lock, and a claim records the session that holds it. Two agents cannot pick up the same task, and a crashed session's claim is taken over, not lost.
Resumable by design
Pausing is refused until the task has a state.md, its resume point. The next session reads it first and starts where the last one stopped.
Order that means something
Tasks declare what they wait on, and a parent waits for its parts, so "what can I start right now" is a real answer instead of a guess.
How does .tasks work?
Every tool that implements the format answers two questions the same way: what can be worked on right now, and what must the next session read to continue? A task is ready when it is free, everything it depends on is done, and nothing above it is still being planned. Every write happens under one lock per tree, so two agents never both win.
Describe the work
Create a task at a path and say what it waits on. A task inside another task is a part of it; the directories on the way are created for you.
Claim it
A claim records who took the task and in which session, and fails if the task is blocked or another live session has it. Claim before working, not after.
Leave a resume point
Before stopping, write
state.md: done, verified, open, next. Pausing without one is refused, so the next session starts where this one stopped.Finish it
A parent is done only when its parts are, and completing a task unblocks whatever was waiting on it, so the next
readyanswer is different.
tasks new auth-rework/wire-refresh "Wire refresh"✓ new auth-rework/wire-refreshtasks dep add wire-refresh token-schema✓ dep add auth-rework/wire-refresh: auth-rework/token-schematasks ready ID SITUATION LABELS TITLE auth-rework/token-schema ready started Design the token schema# wire-refresh is blocked, so it is not listedtasks claim token-schema --session s1✓ claim auth-rework/token-schema: PAUSED → IN_PROGRESStasks pause token-schema --session s1 -m "Lifetime open"✓ pause auth-rework/token-schema: IN_PROGRESS → PAUSED# state.md tells the next session where it stoppedtasks claim --next --session s2✓ claim auth-rework/token-schema: PAUSED → IN_PROGRESStasks done token-schema --session s2 -m "Schema agreed"✓ done auth-rework/token-schema: IN_PROGRESS → DONE# wire-refresh is now ready
Where can you use .tasks?
The format is the interface, so nothing is obliged to shell out to a particular tool. Anything that can read a directory can read a task tree.
The CLI
@speekl/tasks is the reference implementation. It enforces every rule in the specification, and it is the fastest way to try the format.
An agent, directly
Agents already read and write files. An agent can open the directory, parse the frontmatter, and answer what is ready without installing anything.
Something you build
A CI check, an editor plugin, a dashboard, an MCP server. Pick a conformance role and implement against the spec.
An open format
The specification is written independently of any tool and versioned on its own. .tasks v2 is current.
An implementation states which role it fills, so you know what it can be trusted to do. Where the spec and an implementation disagree, that is a bug in one of them.
- Reader
- Parses a tree and answers questions about it. Never writes.
- Writer
- Creates and modifies tasks, preserving every invariant.
- Manager
- Writer, plus claims, sessions, validation, and archival.
- Agent
- Works tasks for an actor: a session token on every command, a resume point before it leaves.
Who builds it

Dan Zabrotski
Dan writes the .tasks specification and maintains the CLI that implements it. Questions, disagreements with the spec, and implementations of your own are all welcome.