Backlog.md: Terminal Kanban Board for Managing Tasks with AI Agents — Alex Gavrilescu, Funstage
Alex Gavrilescu introduces Backlog.md, a Git-based project management tool designed to structure AI-driven development. By breaking down features into Markdown tasks and using a multi-step review process, it helps prevent AI agents from running out of context or deviating from requirements, enabling a more predictable and efficient workflow.
A common frustration when working with AI agents is that they can work for extended periods, only to go in the wrong direction or run out of their context window mid-task. Backlog.md is a tool and workflow designed to solve this by breaking down large features into smaller, well-defined Markdown tasks managed directly within a Git repository. It provides a structured project management framework for both AI agents and human developers.
Core Features of Backlog.md
Backlog.md is an open-source, cross-platform CLI tool with a Terminal User Interface (TUI) that functions as a complete Kanban board in the terminal. It requires no external databases or accounts, as all tasks are stored as Markdown files in the project’s Git repository, ensuring they are versioned and synced for the entire team.
A task in Backlog.md is a Markdown file structured with:
- Front Matter: Contains metadata like
task ID,title, andlabels. - Description: A detailed explanation of the feature’s purpose.
- Acceptance Criteria: A clear, testable list of requirements that define when the task is complete.
- Implementation Plan: A step-by-step plan, often generated by the AI agent, detailing the files to be modified and the approach to be taken.
The AI-Driven Development Workflow
The workflow is designed around a series of review checkpoints to ensure the AI agent stays on track.
- Task Creation: A human provides a high-level requirement. The AI agent then uses this to create a formal task in Backlog.md.
- Review Point #1 (Intent): The human developer reviews the agent-generated task, focusing on the Description and Acceptance Criteria. This crucial first step verifies that the agent has correctly understood the core intent of the feature before any implementation begins.
- Implementation Plan Generation: The agent is instructed to create an implementation plan. To do this, it analyzes the existing codebase, documentation, and the task’s requirements to determine the best approach.
- Review Point #2 (Direction): A senior developer reviews the Implementation Plan. This is the most important review step, as it validates the technical direction and ensures the agent’s proposed changes are sound before writing code.
- Code Execution: Once the plan is approved, the AI agent proceeds to write the code to meet all acceptance criteria.
- Review Point #3 (Code): The final generated code is reviewed by the human developer.
How AI Agents Interact with Backlog.md
AI agents interact with Backlog.md through a native, preferred method using the Multi-Agent Communication Protocol (MCP), or via standard CLI commands for legacy agents. Backlog.md runs an MCP server that exposes tools and resources for agents.
- Resources: These are guides that instruct the agent on the workflow, such as the
Workflow Overview,Task Creation Guide,Task Execution Guide, andTask Completion Guide. This onboards the agent to the project’s process. - MCP Tools: These are commands the agent can execute natively, such as searching for existing tasks, viewing task details, creating new tasks, and updating them.
Benefits of “Context Engineering”
This approach of using small, atomic tasks can be described as a form of context engineering. It provides several key advantages:
- Scoped Context: By defining how much an agent should implement in a single task, it prevents the agent from exceeding its context window.
- Prevents Scope Creep: Agents implement only what is specified in the acceptance criteria, avoiding unwanted extra features.
- Well-Defined Scope: Acceptance criteria clearly define what should and should not be part of the feature.
- Easy Rollbacks: If an agent fails on a small, atomic task, it’s simple to discard the changes, adjust the specs, and restart without losing significant work.
- Parallel Development: The use of Git allows developers to work on multiple tasks in parallel using
git worktrees, provided there are no dependencies.
Interestingly, 99% of Backlog.md’s own code was written by AI agents, demonstrating the power and effectiveness of this workflow.