Recursive Board

by Victor Ciobanu
5
4
3
2
1
Score: 53/100

Description

Nested Kanban boards for Obsidian, stored as plain Markdown, with the wi CLI for agents and scripts.

Reviews

No reviews yet.

Stats

0
stars
141
downloads
0
forks
60
days
41
days
41
days
3
total PRs
0
open PRs
0
closed PRs
3
merged PRs
0
total issues
0
open issues
0
closed issues
378
commits

Latest Version

a month ago

Changelog

Agent setup

  • A person is a name in the plugin's People setting, or a note with type: person. When wi assign --to <name> or wi depend --on <name> refuses a name, ask the person to add it in the plugin settings under People. Do not make a person note to get past the refusal. The skill says so (0085).
  • wi depend <ref> --on <person> writes the plain name, such as Ana, in depends_on. An older [[Ana]] link to a person note still counts as the same wait. wi show --json and wi children --json keep personDependencies and waits_on_people, with the same meaning.

Added

  • People in the plugin settings: a list of names, stored under board.people in the plugin data. Add a name, or remove one. Names are unique, compared without case. wi reads the list and never writes it. Each person note that the list lacks shows as a one-click + Name button.
  • Your name under People: who you are on this device. The plugin keeps it in Obsidian's local storage, so it does not sync. With no choice made, it is the list name that equals the Obsidian account name, when Obsidian gives the plugin that name. With Your name set, Assign to… lists Assign to me first, Waits on… lists you first, and the wait badge and the card's strip read "Waits on you".
  • wi validate warns with depends-unknown-person when a card waits on a name that is in neither the People list nor a person note. The wait still blocks the card.

Changed

  • A wait on a person is a plain name in depends_on. wi depend --on <name> and Waits on… write it. A wikilink is still a card link. An old [[Person]] wait on a person note keeps working, and Stop waiting on…, --off and a move to done remove either form. Nothing rewrites existing cards.
  • wi assign --to <name> and wi depend --on <name> look up the name in the People list and the person notes, ignoring case, and write the vault's spelling. An unknown name is refused with one sentence that says to add the person in the plugin settings under People.
  • A plain depends_on entry was a depends-malformed error. Now it is a wait on a person.
  • wi agents does not count an assignee who is in the People list, as for a person note.

Full Changelog: https://github.com/vic-cio/recursive-board/compare/1.0.2...1.1.0

README file from

Github

Recursive Board

Recursive Board turns a folder of Markdown files in an Obsidian vault into a hierarchical work board. Each work item is one Markdown file, and its parent link defines where it belongs. Markdown is canonical. The plugin is a view, never the database. The plugin renders and edits work items in Obsidian. Agents and scripts run commands through the Obsidian CLI, or through the standalone wi CLI on a machine with no Obsidian. All of them use the same schema and rules. Recursive Board works with local vaults and with vaults that Obsidian Sync or another sync client synchronizes.

Recursive Board is at an early stage. Commands and behaviour can still change between releases. To report a problem, open an issue at https://github.com/vic-cio/recursive-board/issues.

Install with your agent. Paste this prompt into your coding agent: "Install the Recursive Board plugin in my Obsidian vault. Ask me which vault. Tell me to open Settings → Community plugins → Browse in Obsidian, find Recursive Board, select Install, then enable it. If I cannot use Browse, download main.js, manifest.json and styles.css from https://github.com/vic-cio/recursive-board/releases/latest into the vault's .obsidian/plugins/recursive-board/ folder, and tell me to enable Recursive Board in Settings → Community plugins. On a headless machine with no Obsidian app, or for scripts, install the wi CLI instead: check that Node.js 20.12 or later is installed, run npm install --global recursive-board, then run wi setup."

To install without an agent, see Install the plugin. For headless use and scripts, see The standalone wi.

Install the plugin

Open Settings → Community plugins → Browse, find Recursive Board, select Install, then enable it.

To install it manually, use the GitHub release:

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Create the folder .obsidian/plugins/recursive-board/ in the vault.
  3. Copy the three files into it.
  4. In Obsidian, open Settings → Community plugins and enable Recursive Board.

To build from source instead, run npm run build and copy the same three files from dist/.

Reload Obsidian after replacing plugin files. If your vault syncs its .obsidian folder, the sync client can copy the installed plugin to your other devices. Sync behavior depends on that client's settings.

Start a board

Enable Recursive Board in an empty vault. Use the Create your first board button in the notice, or run Create your first board from the command palette. Enter a name. The default is Main. The plugin creates the board and a starter card. It sets defaultRoot in the board settings, then opens the board. To make a board by hand, see Start a board by hand.

Each work item is a Markdown file in the work-item folder, Boards/ by default. Its frontmatter has these core fields:

  • type is work-item, and id is a stable, unique id such as wi-k7m3. title is the title.
  • status is backlog, options, doing or done. A root item has no status.
  • parent is a wikilink to the parent item. A root item has no parent.
  • created and updated are dates in YYYY-MM-DD form.
  • board: true shows the children in status columns. Without it, they show as a checklist.
  • prev_status keeps the status before done. area: true marks an ongoing area.

The optional fields are assignee, priority, due, depends_on, tags and archived. The plugin and wi keep every frontmatter key they do not know. Work items describes each field, areas, and how to find and open a card.

Set the board settings in Settings → Recursive Board → Board: the card folder, the default parent, the extra sections and first-child promotion. The people who review and take cards, and Your name on this device, are under People. The agent limit is under Dispatcher. Vault configuration describes each setting.

Run commands through the Obsidian CLI

The Obsidian CLI is the official way to run commands. On a desktop, an agent or a script runs every wi command line through the plugin, with no Node. A person does one step: turn on Settings → General → Advanced → Command line interface in Obsidian. The call also needs these:

  • Obsidian must be running. If it is not, the CLI exits with 'The CLI is unable to find Obsidian...', and an agent falls back to wi or asks for input.
  • The Obsidian installer must be 1.12.7 or later, from obsidian.md/download. An older one prints a warning line before every reply and hangs when Obsidian is closed.
  • The call is on a desktop. The phone has no Obsidian CLI.
obsidian vault=<name> recursive-board cmd="status wi-1 done" agent=<name> model=<model>
  • Pass vault=<name> as the first argument of every call, so the command cannot reach the vault that has focus.
  • The reply succeeded only when its first line is exactly ok. Any other first line is a failure, and the exit code is always 0.
  • Put the whole command line, flags included, in cmd. Obsidian drops an argument that starts with --. Quote a title with an apostrophe as cmd="new \"Ana's card\" --parent wi-1".
  • agent= and model= sign a claim or a note, as WI_AGENT and WI_MODEL do. cmd=help prints the wi --help text.

These are the commands for daily work. They read a board and a card, add a card, claim it, add a signed note, move it to done, and check the vault:

obsidian vault=<name> recursive-board cmd="children wi-1 --tree"
obsidian vault=<name> recursive-board cmd="show wi-2 --json"
obsidian vault=<name> recursive-board cmd='new "Write the first card" --parent wi-1 --objective "Ship it" --criteria "It ships"'
obsidian vault=<name> recursive-board cmd="claim wi-2" agent=<name> model=<model>
obsidian vault=<name> recursive-board cmd='note wi-2 "Drafted the plan"' agent=<name> model=<model>
obsidian vault=<name> recursive-board cmd="status wi-2 done"
obsidian vault=<name> recursive-board cmd="validate"

cmd=setup prints the agent skill's text and where to save it. Commands lists every command and flag.

Ask a person to review a card

A review is a wait on a person. It uses the same depends_on field and the same commands as a wait on another card.

  • Ask. Choose Waits on… in the card's menu and pick a person, or run wi depend <ref> --on <person>. The person is a name in the People setting, or a note with type: person. The command adds the plain name to depends_on, next to any card links, and writes no note.
  • Send back. The person removes the wait: Stop waiting on <name> in the menu, one item for each wait, or wi depend <ref> --on <person> --off. The card stays in doing with its assignee.
  • Approve. The person moves the card to done: tick it, or run wi status <ref> done. Moving a card to done removes its waits on people. A person who moves a card to done approves it, whether or not they meant to.

While a card waits on a person, wi claim and wi status <ref> doing refuse it, and wi agents does not count its assignee. Say what to check on the card, in its Notes, or send it by mail or message: wi writes no review request.

The core plugin shows a wait on a person as an hourglass badge on the card, and as Stop waiting on <name> in the card menu. With Your name set, the badge reads "Waits on you", and Waits on… lists you first. It ships no list of the cards that wait on a person. A custom dashboard can build that list from waits_on_people in wi children --json and personDependencies in wi show --json.

Assign a card

wi assign <ref> --to <person> adds a person to the card's assignees. The person must be in the People setting or have a note with type: person, and an unknown name is refused. wi assign <ref> --to agent asks any agent to take the card, and the agent's wi claim puts its own name in place of agent. wi assign <ref> --to <name> --off removes one assignee. Assigning changes nothing else: the status stays, and no note is written. In the plugin, Assign to… and Unassign in the card menu do the same, and Assign to… lists Assign to me first when Your name is set. Assign a card has the details, and how agents claim and release cards.

The standalone wi

Use the standalone wi on a machine with no Obsidian app, such as a server, or in a script that runs while Obsidian is closed. It needs Node.js 20.12 or later:

npm install --global recursive-board
wi setup

wi setup installs the agent skill and saves the default vault. It writes nothing into the vault. wi doctor checks the install and the vault. wi update --dry-run shows what an update changes, and wi update does it. Install and update wi has the details.

Version the vault with Git (optional)

Git is optional. If your vault is a Git repository, a pre-commit hook can run wi validate and stop a commit when the vault has errors. Version the vault with Git gives the hook snippet and the setup steps. wi doctor reports whether a pre-commit hook runs validation.

Development

Requirements: Node.js 23.6 or later and npm.

npm install
npm test
npm run build

npm test typechecks the CLI and plugin, then runs the test suite. npm run build builds the plugin and CLI. Development describes the test fixtures.

Decisions

See docs/adr/ for the project's decision record.

License

MIT. See LICENSE.