Run a task-manager sub-agent with atomic commits
A poster built a Claude Code sub-agent that fetches the next task, marks it complete, and enforces atomic commits with a mandatory commit id. ·
Done withClaude Code
- What they did
- In the thread, one commenter says they built a Python script to maintain a YAML todo file with task descriptions, then added a task-manager sub-agent with two actions: get_next_task and mark_task_completed. They required a commit ID when marking tasks complete so Claude Code would make atomic commits, while the person still had to watch for cases where it ignored the setup and used TodoWrite instead.
- How it went
- The reported result was better task-by-task control and enforced atomic commits, but the setup was not fully reliable because Claude Code sometimes tried to bypass the sub-agent workflow.
- Worth knowing
- The main catch is reliability: even with the sub-agent and mandatory commit ID, the poster says Claude Code still sometimes bypassed it and used TodoWrite.
Try it yourself with Claude Code
Create a Claude Code sub-agent called task-manager for [project]. It should fetch the next open task from [task file or tracker], hand it to me to work on, mark it complete when done, and require an atomic commit with a commit ID before closing any task. Finish by running it on one sample task and showing me the result.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
2 more accounts of this
Source: Reddit · Mar 1, 2025
Related use cases
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Give a teacher a Claude Code workspace for lessons and reports
Built a Claude Code workspace for a teacher that remembers curriculum, grading style and class size to produce lesson plans, report comments, parent emails and rubrics.
Fix Snyk vulnerabilities and open PRs automatically
A developer built a Claude Code/Cursor workflow that reads vulnerability tickets, updates dependencies and lockfiles, opens PRs and monitors CI, with merging kept manual.
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Turn daily X bookmarks into working tech prototypes
A bot scans a Cursor employee's X bookmarks daily, picks a new technology, drafts a prompt, and on approval starts a Cursor Cloud agent to build a prototype in about 15 minutes.
Hand migrations and bug-fix tickets to a coding agent
Reviewers gave Devin migration, data engineering, bug fix and refactoring tickets on a Next.js monorepo and Python pipeline over three weeks; it did best on migrations and framework upgrades.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.