Skip to content
Display

Display

Star12.2k

AI with Leantime

Give each AI agent its own to-do list

At a glance

TimeAbout 15 min

LevelBeginner

You need

  • An AI assistant or agent connected to Leantime
  • A project with to-dos you can tag

Where you'll work

  1. Leantime, in each to-do's Tags field
  2. Your agent's standing instructions, for its rules

At the end

Tagged to-dos worked through in order, each with the agent's plan and result in its comments, waiting for your review

Markdown

Tag to-dos for an AI agent, and it works through them in Leantime: it finds the to-dos with its tag, chooses the order, comments as it goes, and hands the finished work back to you for review. With one tag per agent, several agents can work in the same projects without taking each other’s work. It works with any assistant connected to Leantime’s MCP server, such as Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code with GitHub Copilot or Windsurf.

For a coding agent that works in a code repository and opens pull requests, see Hand to-dos to a coding agent. It uses the same idea, with the steps for branches and reviews.

Each agent has its own tag. Use one tag per agent, like agent-site for the agent that works on the website, and agent-docs for the one that writes help articles. An agent only picks up to-dos with its tag, so you hand work to an agent by tagging it.

The status shows where each to-do is:

Status Means
New Ready for the agent
In Progress The agent is working on it
Waiting for Approval The agent is done: the result is in a comment, for you to review
Blocked The agent needs something from you: its question is in a comment

On the Kanban board, filtered by the agent’s tag, you see each to-do move across:

A Leantime Kanban board filtered by the agent-site tag after a run: two to-dos Blocked and two Waiting for Approval

The agent chooses the order the way you tell it to. The rules below use the highest priority first, then the earliest due date, and skip anything Blocked or Waiting for Approval.

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: “Write the text for the 404 page”, not “404”.
  • The description says when it’s done, and holds what the agent needs, like notes, links or examples.
  • Add the agent’s tag in the to-do’s Tags field, and set the priority and due date you want it to follow.

A to-do’s fields in Leantime: Status New, Priority High, assigned to Ada, and the agent-docs tag

Rules are what the agent should do every time. Put them where your platform keeps standing instructions (see Step 3). Change the tag, the project and the statuses to yours:

## Leantime to-dos
You are the agent for the tag "agent-site" in the Leantime project
"Website Redesign".
Finding your to-dos:
- Look up the project's statuses first: the to-do list shows them
as numbers.
- Your to-dos are the open ones tagged "agent-site". Leave every
other to-do alone.
- Skip the ones that are "Blocked" or "Waiting for Approval".
- Work in this order: highest priority first, then the earliest due
date, then the oldest.
Working on a to-do:
1. Read its description and all its comments first.
2. Set it to "In Progress", and add a comment with your plan.
3. Do the work. Put the result in a comment: the text, a summary,
or a link.
4. Set it to "Waiting for Approval". Never set "Done".
5. If you can't do it, or something is unclear, add a comment with
your question, set it to "Blocked", and go on to the next one.
Don't change who a to-do is assigned to, its tags or its description.
Start every comment with "Claude:". Write comments in HTML, with
paragraphs and lists.

Why some of these rules matter:

  • “Start every comment with Claude:” The agent signs in as you, so its comments show your name. Use the agent’s name, so the team can tell its comments apart.
  • “Don’t change its tags or its description.” When an agent changes tags, it sends the whole list, and can drop tags someone else added. Comments keep the agent’s work separate from what you wrote.
  • “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.

These platforms change often. The table follows each vendor’s documentation as of 30 November 2026; the Leantime side was tested.

Connect the platform to Leantime first (see Step 3: Connect your AI assistant). Then put the rules where it reads them every time:

Platform Put the rules in Run it on a schedule
Claude Code CLAUDE.md in the repository, or ~/.claude/CLAUDE.md for all your projects Scheduled tasks, with /schedule or at claude.ai/code/routines
Claude (web and Desktop) A project’s instructions, then chat in that project Scheduled tasks, on paid plans
ChatGPT Project settings → Instructions, then chat in that project Not with a custom MCP server yet: start it yourself
Codex AGENTS.md in the repository codex exec from a scheduled job, or Scheduled in the ChatGPT desktop app
Cursor (now Grok Build) .cursor/rules/, or AGENTS.md Automations, which run cloud agents
VS Code with GitHub Copilot .github/copilot-instructions.md, or AGENTS.md Copilot automations in the repository
Windsurf (now Devin Desktop) .devin/rules/, or AGENTS.md Automations in Devin

Before you put an agent on a schedule:

  • Most scheduled runs happen in the platform’s cloud, not on your computer. They use the Leantime connection set up there: a connector on claude.ai, the MCP settings at cursor.com/agents, the repository’s Copilot MCP settings, or Customize → MCPs in Devin. A connection you added only on your computer, like with claude mcp add, isn’t there. For these, Leantime has to be reachable from the internet over HTTPS, and for Claude on the standard port 443.
  • A job on your own computer, like codex exec from cron, uses your computer’s MCP settings. Leantime only has to be reachable from that computer.
  • Copilot automations can’t sign in to Leantime: give them a token in the MCP settings (see Step 2: Create a token).
  • Use the “Let it run” request below as the scheduled task’s instructions. Nobody is there to answer “Plan, then wait”.

Choose how much the agent does on its own.

The agent lists what it would do, and does nothing until you agree. Use this when you start, or when the list holds work you want to check first:

Check your Leantime to-dos. List them in the order you'd work on
them, with one line on what you'd do for each, and the ones you'd
skip and why. Then wait for my OK. I may change the order or take
some out.

The answer looks like this:

  1. #2177 Write the text for the 404 page (High, due 3 December): write a short text with links to the home page and the menu.
  2. #2178 Check that every page title is under 60 characters (Medium, due 10 December): list the long titles with a shorter one for each.
  3. #2180 Summarize the notes from the user tests (Low): five points on what people struggled with most.

Skipped: #2179, because it’s Blocked.

Reply with “go ahead”, or with changes like “skip #2178, do the rest”.

The agent works through the list on its own. When a to-do needs you, it asks in a comment, sets it to Blocked and goes on to the next one. Use this for an agent on a schedule, or once you trust how it handles the work:

Work through your Leantime to-dos, one at a time, following your
rules. Stop when none are left, or after five, and tell me what you
did, what's waiting for approval, and what's blocked.

After a run, the project’s to-dos show where each one is. Here, the agent finished two to-dos, asked a question on one, and left the other agent’s to-do alone:

Leantime to-dos after an AI agent’s run: two Waiting for Approval, two Blocked, and one tagged agent-docs still New

Each to-do has the agent’s plan and its result in the comments:

The agent’s two comments on a to-do: its plan, then a five-point summary, ready for review

Open the project’s to-dos and look at Waiting for Approval and Blocked, or ask your assistant “Which agent-site to-dos are waiting for approval or blocked?”.

  • It’s good: set the to-do to Done.
  • It needs changes: add a comment saying what to change, and set it back to New. The next time the agent runs, it reads your comment first.
  • The agent asked a question: answer in a comment, and set it back to New.

The agent’s question on a Blocked to-do: it can’t open the website, and asks for the page titles in a comment

  • Name the project. The assistant’s to-do tools can’t filter by tag yet, so the agent reads the project’s open to-dos and keeps the ones with its tag. Across all your projects, a search returns 20 to-dos unless the agent asks for more.
  • The agent works as you. It sees and changes what your account can, and the to-dos’ history shows your name. To give an agent its own name, connect it with its own Leantime user (see Running an AI agent as a team member). That user counts like any other: toward your Leantime Cloud plan and your plugin licenses.
  • Running several agents at once? Give each one its own name: its own user, or the agent’s name at the start of each comment, as in the rules above. And have each agent clean up only what it created, never “everything since” a point in time: another agent may have added things in between.
  • One tag, one agent. Setting a to-do to In Progress tells other agents it’s taken, but it doesn’t lock it: two agents with the same tag can both start on the same to-do, and the last change wins. Keep each agent’s tag its own.
  • Statuses differ per project. If your project calls it “Review” instead of “Waiting for Approval”, change the rules to match.
  • Start small. Two or three tagged to-dos are easier to review than twenty.

Was this page helpful?