Todo Lists: Session Steps And The Project Work Log
mbm2 keeps two kinds of todo list. They answer different questions, so they live in different places.
| Session steps | Project work log | |
|---|---|---|
| What it is | The agent's plan for the task it is doing now | Your project's list of work, kept across sessions and people |
| Who writes it | The agent, with its todowrite tool |
You (by hand or with mbm2 todo) and the agent, with its project_todo tool |
| Where it lives | In the session, in mbm2's store | A markdown file in your project: docs/todo/current.md |
| Lifetime | The session | Until you archive the done items |
| Where you see it | Above the prompt during a turn (ctrl+t folds it), the sidebar, /todo |
The file, /todo, mbm2 todo list, INDEX.md, "Work to continue" and the recap |
| Shared with git | No | Yes, if you commit docs/todo/ |
A step the agent planned can become a work log item, but only when you choose it: mbm2 never copies session steps into the file by itself (see Keep a step for later).
The Work Log File
The log is an ordinary markdown checklist. Edit it in any editor; mbm2 reads it again every time and changes only the lines it is asked to change.
# Work Log
## Login page
- [ ] P1: Fix the redirect after sign-in <!-- id:td_8KQ2mZ0aLp -->
- [x] P2: Show the error under the field <!-- id:td_3Fh7rTq9Wc -->
- [ ] Ask design about the logo
Notes, links and sub-items under an item belong to it:
- [ ] Check the dark theme
## Нэвтрэх хуудас
- [ ] P3: Орчуулга шалгах
| Part | Meaning |
|---|---|
## Section (or ###) |
A group of items, for example one feature. # is the file's title |
- [ ], - [x] |
An open and a done item (* and + work too; [X] counts as done) |
P1: to P5: |
An optional priority, P1 the highest. It must be followed by a colon |
<!-- id:td_… --> |
The item's id. mbm2 adds it the first time it edits an item; you never need to type it |
| Indented lines | Notes and sub-items of the item above; they move and archive with it |
| Code fences | What is inside a ``` or ~~~ block is never read as items or sections |
Line endings (\n or \r\n), a missing last newline, Cyrillic text, prose and anything else you
write stay exactly as they are. The file can be at most 1 MiB.
From The Command Line
mbm2 todo works in the project you run it in. It uses the engine of the open mbm2 window, or
starts one for the command.
$ mbm2 todo add Fix the redirect after sign-in -p P1 -s "Login page"
Added td_8KQ2mZ0aLp in docs/todo/current.md (1 open, 0 done)
$ mbm2 todo add Ask design about the logo
Added td_Lm4s0Vb2Qx in docs/todo/current.md (2 open, 0 done)
$ mbm2 todo
docs/todo/current.md: 2 open, 0 done
## Login page
- [ ] P1: Fix the redirect after sign-in td_8KQ2mZ0aLp
## Inbox
- [ ] Ask design about the logo td_Lm4s0Vb2Qx
$ mbm2 todo done redirect
Checked td_8KQ2mZ0aLp in docs/todo/current.md (1 open, 1 done)
| Command | Does |
|---|---|
mbm2 todo or mbm2 todo list |
Lists the items by section, with their ids |
mbm2 todo add <text> [-p P1] [-s <section>] |
Adds an open item at the end of the section. A section that does not exist is added at the end of the file. Without -s the item goes under ## Inbox (or at the end of a file that has no sections). The file is created when it does not exist |
mbm2 todo done <id|text> |
Checks an item. Give its id, the start of its id, or words of its text; when the words match more than one item, mbm2 says so and changes nothing |
mbm2 todo archive <topic> |
Moves the done items to the history (below) |
mbm2 todo index |
Writes INDEX.md again |
mbm2 todo history --from-git |
Adds dated copies of current.md from your git history (below) |
--format json |
Prints the engine's answer as JSON, for scripts |
A command it cannot run (mbm2 todo add with no text, -p P9) prints the usage and exits 1.
The Agent Keeps It Too
Ask the agent to track work in the log ("add the three bugs we found to the work log under
Checkout", "check off the redirect fix") and it uses its project_todo tool: list, add,
update (text, priority, or moving an item to another section) and check. It names items by id,
so it never rewrites the file or touches your other lines.
The tool follows the same permissions as editing a file:
| Agent | Reading the log | Changing it |
|---|---|---|
| build | Allowed | Allowed |
| safe | Allowed | Asks you first, showing the change as a diff |
| plan | Allowed | Refused |
A rule for edit in your permissions applies to the log as to any file
(the pattern is the file's path, docs/todo/current.md).
Keep A Step For Later
When a reply ends and the session still has open steps, or when you archive the log, mbm2 tells the
interface those steps can be kept. Nothing is written until you pick steps; a picked step becomes an
open item with the step's priority (high, medium, low become P1, P2, P3), and it is not offered again.
In mbm2 the notice says 2 steps are still open. /todo promotes them to the project log.; in
/todo p keeps the step under the cursor and P every open one. Scripts can use
the engine's routes:
GET /session/<session id>/todo/promotable the open steps not yet in the log
POST /project/todo/promote {"sessionID": "<session id>", "steps": ["st_…"], "section": "Later"}
Open Items In The Recap
When you come back to a session after a while, its recap ends with the
log's open items, for example Project log: 3 open: Fix the redirect after sign-in · Show the error under the field, so the project's unfinished work is in front of you next to the session's. The Work to continue
dialog at start names them the same way.
Archive The Done Work
$ mbm2 todo archive Login page
Moved 3 done items to docs/todo/history/2026-11-24-login-page.md
INDEX.md updated
| Rule | Detail |
|---|---|
| What moves | Only checked items, with their notes and sub-items |
| What stays | Open items, every section heading, your prose. A done item that still has an open sub-item stays too, so no open work leaves current.md |
| The history file | history/<date>-<topic>.md, the topic in Latin letters (Нэвтрэх хуудас becomes nevtrekh-khuudas). If the name is taken, -2, -3, … is added; a file is never overwritten |
| Nothing done | Nothing to archive: … has no checked item to move; no file is written |
INDEX.md |
Written again after every archive |
INDEX.md
docs/todo/INDEX.md is a generated overview: the totals, every history file with a link and its
done and open counts, and the open items of current.md by priority with their section and id.
mbm2 writes it after an archive or with mbm2 todo index. It shows when current.md or the history
last changed, not when it was written, so running it again with nothing new leaves the file exactly
as it was (no noise in git diff). Do not edit it by hand: the next run replaces it.
Projects That Already Use docs/todo
If your project keeps its log the SYNOTI way, nothing needs to change:
docs/todo/
current.md the open work
INDEX.md generated
history/
01_foundation.md numbered eras: listed as "era"
10_manual-cleanup.md 10 and above: your own archives, listed as "archive"
2026-11-24-login-page.md written by mbm2 todo archive
2026-08-02-snapshot.md written by mbm2 todo history --from-git
The numbered NN_*.md files are listed in INDEX.md as they are and are never rewritten. The one
difference from that layout: archiving does not empty current.md, it moves only the done items.
Copies From Git History
mbm2 todo history --from-git reads how current.md changed in your git history (it only reads
git) and writes, for each day a commit changed it, history/<date>-snapshot.md with the file as that
day's last commit left it. A day that already has its snapshot is skipped, so running it again
writes nothing new. The content sits inside a code fence longer than any inside it, so the copies
do not count as open items in INDEX.md.
$ mbm2 todo history --from-git
wrote docs/todo/history/2026-08-02-snapshot.md (4be1c09a2f3d evening with a fence)
kept docs/todo/history/2026-08-01-snapshot.md (91d0e7c3b5aa start the log)
INDEX.md updated
Another Directory For The Log
Set todo.dir in the project's .mbm/mbm.json to keep the log somewhere else in the project:
{
"todo": { "dir": "notes/todo" }
}
The path is relative to the project's root (the git repository's top folder) and must stay inside
it; an absolute path or one starting with .. makes mbm2 skip that file and log why
(mbm2 config). v1's mbm does not know this key and refuses a file that has it, so set it only in
projects you open with mbm2.
/manager
/manager start <what to build> plans the work as items of one new section of the work log, then
works through them one step at a time: /manager status reports where the plan stands and
/manager resume continues with the next open step. The plan is the log itself, so you can read,
reorder or edit it in current.md between steps, and archive it when it is done.
See Also
- Sessions: the sidebar (
<leader>b) shows the session's steps - Slash commands:
/manager - Scripting mbm2:
mbm2 todowith the other engine commands
Published from revision f88fc66f 2026-11-30