AI with Leantime
Hand to-dos to a coding agent
- Plugin: MCP Server
- Cloud and self-hosted
- Checked with Leantime 3.17
At a glance
You need
- Claude Code, or another coding agent that supports MCP, connected to Leantime
- A Leantime project with to-dos, and the repository the work is in
At the end
To-dos worked on by the agent, with its plan, result and pull request link in the comments, waiting for your review
A coding agent like Claude Code can work through to-dos in Leantime. You tag the to-dos you want it to do with agent. The agent finds them, comments with its plan, does the work, comments with the result and a link to the pull request, and moves the to-do to Waiting for Approval for you to review. The to-do stays assigned to the person who’s responsible for it, and the tags show where each one is.
Running several agents, or one that isn’t a coding agent, like Claude or ChatGPT in the chat or on a schedule? See Give each AI agent its own to-do list.
How the hand-off works
Section titled “How the hand-off works”Tags work like labels in an inbox: anyone on the project can add one, everyone sees them, and they don’t change who the to-do belongs to.
| Tag | Means | Who sets it |
|---|---|---|
agent |
Ready for the agent | You, or anyone on the team |
agent-done |
The agent finished; waiting for review | The agent |
agent-question |
The agent needs an answer before it can go on | The agent |
Tell the team about the tags the way you’d tell them about any other way of working: in your next meeting, or in the project’s description.
Step 1: Write to-dos the agent can do
Section titled “Step 1: Write to-dos the agent can do”The agent only knows what’s in the to-do. Write it the way you would for a new colleague:
- The title says what to do: “Add alt text to the product images”, not “Images”.
- The description says when it’s done: “Done when every product image has alt text and the accessibility check passes.”
- Add the
agenttag in the to-do’s Tags field.
Start with small, clear to-dos. You can always tag more once you’ve seen how the agent handles them.
Step 2: Give the agent its rules
Section titled “Step 2: Give the agent its rules”Put the rules where the agent reads them every time. For Claude Code, that’s the CLAUDE.md file in your repository. Adjust the project name and statuses to yours:
## Leantime to-dos
You pick up work from the Leantime project "Website Redesign".
1. Find the open to-dos whose tags include exactly "agent" (not "agent-done" or "agent-question"). Check each to-do's tags before you start. Work on one at a time, oldest first.2. Read the to-do's description and all its comments before you start.3. Set it to "In Progress", and add a comment with your plan.4. Do the work on a new branch, and open a pull request.5. Add a comment with what you changed, how you checked it, and the pull request link.6. Set the to-do to "Waiting for Approval". Replace the "agent" tag with "agent-done", and keep the to-do's other tags.7. If something is unclear, add a comment with your question, replace "agent" with "agent-question", and go on to the next to-do.
Never set a to-do to "Done", and don't change who it's assigned to.Start every comment with "Claude:". Write comments in HTML, withparagraphs and lists.Why some of these rules matter:
- “Exactly agent.” Leantime’s search also matches parts of words, so a search for
agentfinds to-dos taggedagent-doneoragent-questiontoo, and any to-do that mentions an agent. Checking the tags keeps the agent from picking up finished or blocked work again. - “Start every comment with Claude:” The agent signs in as you, so its comments show your name. The prefix tells the team which comments the agent wrote.
- “Keep the to-do’s other tags.” When the agent changes tags, it sends the whole list. Without this rule, it can drop tags like
accessibilitythat someone else added. - “Write comments in HTML.” Line breaks in plain text can run together into one paragraph in Leantime.
- “Never set Done.” Done is your call, after you’ve reviewed the work.
Step 3: Start the agent
Section titled “Step 3: Start the agent”Open Claude Code in the repository and ask:
Work through the Leantime to-dos tagged agent.The agent lists the to-dos it found and starts on the first one. Leantime doesn’t start the agent by itself: it works when you, or your automation, start it.
What you see in Leantime
Section titled “What you see in Leantime”When the agent is done with a to-do, it’s in Waiting for Approval, still assigned to the same person, tagged agent-done:

Its comments have the agent’s plan, and its result with the pull request link, each starting with “Claude:”:

Step 4: Review the work
Section titled “Step 4: Review the work”Open the project’s to-dos and look at Waiting for Approval, or ask your assistant “Which to-dos are tagged agent-done?”. For each one, read the agent’s comment and review the pull request.
- It’s good: merge the pull request, set the to-do to Done, and remove the
agent-donetag. - It needs changes: add a comment saying what to change, and replace
agent-donewithagentagain. The next time you start the agent, it reads your comment before it goes on. - It asked a question (
agent-question): answer in a comment, and replaceagent-questionwithagent.
Good to know
Section titled “Good to know”- The agent works as you. It sees and changes what your account can, and the to-do’s history shows your name. To give the agent its own account and name instead, see Running an AI agent as a team member.
- Statuses differ per project. If your project calls it “Review” instead of “Waiting for Approval”, change the rules to match.
- Other coding agents like Cursor, VS Code with GitHub Copilot or Codex connect with a token (see Step 3: Connect your AI assistant). Put the same rules in their instructions file.
- Start small. One or two tagged to-dos at a time are easier to review than ten.
Related
Section titled “Related”Was this page helpful?
Thanks, glad it helped.
Thanks for telling us. What was missing?
