man oscar The manual Automation

The kanban board

The board you share with Oscar: boards, cards, comments, links, the board worker.

MANUAL / AUTOMATION 19 / 29

A board you and Oscar share for work that spans conversations: things to do, who does them, where they stand, and what was said about them. It lives in Oscar's database (oscar.db), so every conversation, chat and terminal sees the same board.

Boards, columns and cards

  • Boards: main exists from the start; make more for separate areas (home, release-1). Each board has its own columns; the default ones are todo, ready, doing, blocked, review, done. The last column counts as finished.
  • Cards have a number (#12), a title, a description, a column, an assignee — user (you), agent (Oscar) or helper (one of Oscar's helpers) — and a priority from -100 to 100 (higher first).
  • Comments are notes on a card. Moves and assignments are added as events, so a card's comments are also its history. Who wrote a comment is recorded by Oscar itself (agent, helper, or user from the command line), never taken from what the model says.
  • Links tie a card to a session (a conversation), a scheduled job, a url, another card, or make it depends_on another card: a card waits until the cards it depends on are finished. Loops are refused.

A board holds up to 500 open cards; archive finished ones.

Working with Oscar

Ask in any chat: "put these on the board", "what's on my plate?", "take the release-notes card". The kanban tool (no approval needed: it only changes the board) has these actions:

Action Does
boards the boards with card counts per column
create_board a new board (board, optional columns)
list cards, filtered by board, status, assignee
show one card with its description, links and comments
create / update add a card / change title, description, assignee, priority, column
move to another column
comment add a comment
link / unlink session, job, card, depends_on or url
start assign to Oscar, move to doing, link this conversation
block move to blocked, saying what it waits for
finish move to done (or to review with review: true), with a summary
next the highest-priority card assigned to Oscar in the ready column whose dependencies are finished
archive hide a finished card

Cards made in a chat remember that chat.

In a chat

!kanban (/kanban on Telegram) works on the board directly, without a model turn, and acts at once — also while Oscar is busy with something else in that chat:

Command Does
!kanban the default board by column; !kanban <board> another board
!kanban #12 or !kanban show #12 one card with its links and comments
!kanban add [board:<slug>] [@agent|@user|@helper] <title> add a card (to the board's first column; it belongs to this chat)
!kanban move #12 <column> move it
!kanban assign #12 <agent|user|helper|none> assign it
!kanban comment #12 <text> comment on it
!kanban link #12 <session|job|card|depends_on|url> <target> link it
!kanban archive #12 archive it
!kanban next [agent|user|helper] the next card ready for that assignee (default Oscar)
!kanban boards the boards and their columns
!kanban watch [board|#12] [wake] tell this chat when cards finish, block or fail (below)
!kanban unwatch [board|#12|all] · !kanban watching stop a watch / list this chat's watches
!kanban help these commands

Changes made here are recorded as yours (user). In the terminal chats, /kanban [board|#card] shows the board.

Being told when cards finish

A chat can watch every board, one board, or one card: !kanban watch, !kanban watch release-1, !kanban watch #12. It is then told, within a few seconds, when a card there is

  • finished — moved to the board's last column,
  • blocked — moved to blocked,
  • failed — the board worker's run on it failed,

whoever did it (Oscar in any conversation, the board worker, oscar kanban in a terminal, another chat). Add wake (!kanban watch #12 wake) and Oscar also starts a short turn in that chat about it — to carry on with the work it unblocks, or to say what needs you — when that conversation is not busy.

Watches can also be set in config.toml: kanban_notify = "telegram:5,matrix:!room:example.org" makes those chats watch every board, and kanban_notify_wake = "on" wakes Oscar there too. Watches are kept in the database; each gateway platform reads the board's history from where it left off, so nothing is announced twice and nothing from before the gateway started is replayed.

The board worker

With kanban_worker = "on" in config.toml (or OSCAR_KANBAN_WORKER=on), oscar gateway serve works through the cards assigned to Oscar by itself:

  1. It takes the highest-priority card in a board's ready column (ready, or the first column) that is assigned to agent and waits for no other card, and moves it to doing before starting — so a card is taken once; a crash or a failed run never repeats it until someone moves it back to ready.
  2. It runs a turn on it, in a conversation of its own linked from the card, under the same rules as a scheduled job: nobody to ask, approvals decided by unattended_approve (refused unless it is auto or smart), dangerous commands always refused, the cron_timeout time limit.
  3. The turn comments and finishes or blocks the card itself; its final answer is added as a comment, and a card it left in doing goes to review. A run that fails adds a run failed event to the card (chats watching it hear about it).
  4. The chat the card was made in is told ("🗂 Card #12 … is now in review").

One card at a time; it checks every 30 seconds. It is off by default: putting a card in ready for agent is then a note for later, and Oscar works on it when you ask (or from a scheduled job, e.g. "every morning, take the next card assigned to you").

From a shell

shell
oscar kanban boards
oscar kanban new-board home --columns later,now,done
oscar kanban add "Write the release notes" --assignee agent --priority 5
oscar kanban list [--board main] [--status doing] [--assignee agent] [--all]
oscar kanban show 12
oscar kanban move 12 review
oscar kanban assign 12 user
oscar kanban comment 12 "Looks good, ship it"
oscar kanban link 13 depends_on 12
oscar kanban archive 12
oscar kanban remove 12          # delete for good
oscar kanban remove-board home  # with its cards

What it does not do

The board is for one person and one Oscar. There are no shared boards between installations, no per-card model or skill settings, no file attachments (link a path or URL instead), no several workers or worker leases, and no automatic review step beyond moving a card to review.