Persistent task lifecycle tracker for AI agent sessions. Stores tasks in .tasks.jsonl at the root of your git repository — making task state version-controllable and syncable across PCs via git.
When using AI agents (Claude, Codex, Gemini, Copilot), tasks from conversations get forgotten across sessions. Agents are forcefully terminated and cannot persist state on exit. task-tracker lets agents record tasks to disk immediately when they arise, and check for stale work at session start.
Tasks are stored per-repository in .tasks.jsonl alongside your code. Commit the file to track task state in version control; add it to .gitignore to keep it local.
- Node.js 18+
- macOS, Linux, Windows
- Requires git (tasks are scoped to the current git repository)
npm install -g @metyatech/task-trackerOr link locally for development:
npm linkTasks are stored in <git-repo-root>/.tasks.jsonl (JSONL format, one JSON object per line). All commands must be run from within a git repository. The file is created automatically on first add.
Each task: { id, description, stage, committedEventId?, createdAt, updatedAt }
committedEventId is a unique ID written when the task transitions to committed. It is used to locate the git commit that introduced the event into .tasks.jsonl, enabling accurate pushed detection even when update --stage committed is called before the actual commit.
To sync tasks across PCs, commit .tasks.jsonl and push/pull like any other file.
task-tracker add "Implement feature X"
task-tracker add "Deploy to staging" --stage in-progress
task-tracker add "Review PR #42" --jsontask-tracker list # active tasks only
task-tracker list --all # include done tasks
task-tracker list --stage in-progress
task-tracker list --jsontask-tracker update <id> --stage committed
task-tracker update <id> --description "Updated description"
task-tracker update <id> --stage released --jsontask-tracker done <id>task-tracker remove <id>task-tracker check
task-tracker check --jsonThe check command:
- Lists all active (non-done) tasks from this repo's
.tasks.jsonl - Runs
git status --porcelainon the repo root - Runs
git log @{u}..HEAD --onelineto show unpushed commits - Outputs a combined report
Persisted stages: pending → in-progress → committed → released → done
The pushed stage is derived and cannot be set manually. When a task is in committed
stage, list and check display its effective stage as pushed automatically once the
.tasks.jsonl commit that first introduced the task's committedEventId is reachable from
the remote upstream branch (git merge-base --is-ancestor). This means derivation is
accurate even when update --stage committed is called before the actual git commit.
To filter by effective pushed stage: task-tracker list --stage pushed
Setting --stage pushed on add or update is an error.
npm run build # Build with tsup
npm run test # Run tests with vitest
npm run lint # ESLint
npm run format # Prettier (write)
npm run format:check # Prettier (check)
npm run verify # format:check + lint + build + testMIT © metyatech