Workbench Kanban

unlisted

by lihuu

Manage projects and agent tasks on a local-first kanban board.

★ 1 starsUpdated 21d agoMIT
View on GitHub

Workbench Kanban

Local-first kanban boards for Obsidian. Board data lives in Workbench/boards/<id>.json; workspace paths sync with the board. The Runner connection is stored per device and is not written to data.json.

Install or update

Run the installer from the Obsidian vault root. It detects .obsidian automatically, installs the latest GitHub release into .obsidian/plugins/workbench, and preserves data.json.

curl -fsSL \
  https://raw.githubusercontent.com/lihuu/obsidian-workbench/master/install-workbench.sh \
  -o install-workbench.sh
chmod +x install-workbench.sh
./install-workbench.sh

Update is the same command. If the installed version is already current, it exits without downloading; use --force to reinstall.

./install-workbench.sh                 # latest
./install-workbench.sh --version 0.1.1 # specific release
./install-workbench.sh --force         # redownload current version
./install-workbench.sh --vault "$HOME/Obsidian/MyVault"

The script uses gh when available and falls back to curl. It validates the manifest id/version before replacing the plugin assets, backs up the previous assets for rollback, and leaves data.json untouched. Releases from 0.1.2 also include runner.cjs, a desktop-only embedded Runner; the installer copies it when present. If the obsidian CLI is available it reloads the plugin; otherwise reload Obsidian manually.

Where to configure in Obsidian

Each board owns its workspace and execution configuration. Open the board and click the Agent button in the board header (the bot icon next to the save status). The Runner URL/token are device-local; desktop defaults to 127.0.0.1, while mobile must use an HTTPS remote Runner. Board source, workspace, column mapping, and worktree mode apply to the current board. The Help button in that modal opens Workbench/README.md in the vault.

Agent Runner

The plugin talks to a Node Runner over HTTP. On desktop, the plugin bundles runner.cjs and starts it automatically on 127.0.0.1:4319 when no standalone Runner is already serving that address. On mobile, the plugin must use a remote Runner; no Node Runner runs in the mobile app.

An agent backend (Pi, OMP, or OpenCode) runs as a CLI subprocess. The Runner owns the queue, concurrency, worktrees, and history; backend-specific CLI/protocol details live in adapters. GitHub sources, persistent sessions, run history, image attachments, and optional success/failure column mapping are included.

Backends

The Runner registers Pi, OMP, and OpenCode. Select the backend per board in the Agent settings; the Runner default is used when the board has no selection.

Pi       --mode rpc --no-approve   --session-dir ...  resume: --session <file>
OMP      --mode rpc --auto-approve --session-dir ...  resume: --resume <file>
OpenCode run --format json --standalone --auto        resume: --session <id>

Each backend declares capabilities (steer, followUp, clearQueue, resume, images, abort, toolEvents). The plugin only shows controls the selected backend supports.

  • Pi: full live controls and images.
  • OMP: live steer/follow-up; no clear_queue command.
  • OpenCode: one-shot JSON run; no steer/follow-up/clear-queue/images, but terminal runs can Continue with the same OpenCode session id.

Start

Desktop plugin:

No npm, Node install, launchd, or manual start required.
The plugin starts runner.cjs on desktop and stops it when the plugin unloads.

Standalone Runner (headless server, remote access, or development):

npm install
npm run runner

The default endpoint is http://127.0.0.1:4319. The Runner checks every registered backend with <binary> --version on startup and exposes the results at GET /health.

The embedded Runner is tied to the Obsidian desktop process: quitting the app stops it, and queued/in-flight state is not a replacement for an always-on Runner. The bundled and standalone Runner must not both bind the same port.

Optional environment:

WORKBENCH_RUNNER_PORT=4319
WORKBENCH_RUNNER_HOST=127.0.0.1
WORKBENCH_PI_BIN=pi
WORKBENCH_PI_MODEL=provider/model
WORKBENCH_OMP_BIN=omp
WORKBENCH_OMP_MODEL=provider/model
WORKBENCH_OPENCODE_BIN=opencode
WORKBENCH_OPENCODE_MODEL=opencode-go/deepseek-v4.1-flash
WORKBENCH_DEFAULT_BACKEND=pi
WORKBENCH_RUNNER_TOKEN=change-me
WORKBENCH_ALLOWED_ORIGINS=app://obsidian.md,capacitor://localhost
WORKBENCH_ALLOWED_ROOTS=~/Obsidian,~/Workbench
WORKBENCH_WORKSPACES_DIR=~/Workbench/workspaces
WORKBENCH_WORKTREES_DIR=~/Workbench/worktrees
WORKBENCH_MAX_CONCURRENT_RUNS=2
WORKBENCH_MAX_QUEUED_RUNS=20
WORKBENCH_SESSIONS_DIR=~/.workbench/sessions
WORKBENCH_RUNS_DIR=~/.workbench/runs
WORKBENCH_RUN_TIMEOUT_MS=3600000
WORKBENCH_GIT_TIMEOUT_MS=120000

If WORKBENCH_RUNNER_TOKEN is set, the plugin's Runner token field must match it. Browser origins other than app://obsidian.md and capacitor://localhost are rejected. Set WORKBENCH_ALLOWED_ROOTS to a comma-separated allowlist if the Runner should only accept workspaces below specific directories. Symlinked roots such as /tmp on macOS are normalized.

LAN Runner (mobile testing)

The runner can listen on the local network for a quick iPhone test:

export WORKBENCH_RUNNER_TOKEN="$(openssl rand -hex 24)"
WORKBENCH_RUNNER_HOST=0.0.0.0 \
WORKBENCH_RUNNER_PORT=4320 \
WORKBENCH_RUNNER_TOKEN="$WORKBENCH_RUNNER_TOKEN" \
npm run runner

Then use http://<mac-lan-ip>:4320 plus the same token on the iPhone. HTTP sends the bearer token in plaintext, so use this only on a trusted LAN.

Cloudflare Tunnel and Zero Trust (mobile)

For mobile, keep the Runner bound to localhost and put Cloudflare Tunnel + Zero Trust Access in front of it. Do not expose the Node port directly.

The plugin requires both security layers for a remote URL:

  1. Cloudflare Access Service Token
  2. WORKBENCH_RUNNER_TOKEN bearer token

The plugin refuses public http:// URLs and remote URLs without a Runner token. Token-protected http:// is allowed only for RFC1918/ULA/link-local addresses on a trusted LAN; use HTTPS for anything routable from the internet. Both Access fields are required together.

Cloudflare dashboard:

Zero Trust → Access → Applications → Add application
  Domain: workbench.example.com
  Policy: Service Auth
  Include: Service Token → workbench-mobile

Cloudflare Tunnel:

cloudflared tunnel create workbench
cloudflared tunnel route dns workbench workbench.example.com

~/.cloudflared/config.yml:

tunnel: workbench
credentials-file: ~/.cloudflared/<tunnel-id>.json

ingress:
  - hostname: workbench.example.com
    service: http://127.0.0.1:4319
  - service: http_status:404

Run:

export WORKBENCH_RUNNER_TOKEN="$(openssl rand -hex 32)"
cd path/to/obsidian-workbench
npm run runner
cloudflared tunnel run workbench

In Obsidian Agent → Runner connection, fill:

Runner URL:              https://workbench.example.com
Runner token:            <WORKBENCH_RUNNER_TOKEN>
CF-Access-Client-Id:     <service token client ID>
CF-Access-Client-Secret: <service token secret>

Verify Access first; without the service-token headers the request should be blocked, not reach the Runner:

curl -i https://workbench.example.com/health
curl -i https://workbench.example.com/health \
  -H "CF-Access-Client-Id: $CF_ACCESS_CLIENT_ID" \
  -H "CF-Access-Client-Secret: $CF_ACCESS_CLIENT_SECRET" \
  -H "Authorization: Bearer $WORKBENCH_RUNNER_TOKEN"

The service token is an admin credential for the Runner. Rotate it if leaked. Agent processes can read provider API keys and execute code in allowed workspaces; treat a remote Runner as a high-value endpoint.

On mobile, use a GitHub source board where possible. The plugin auto-clones the board's GitHub workspace on the Runner when a preview or run starts and no workspace path exists. Workspace paths refer to the Runner host; a path synced from desktop is valid as long as that checkout exists on the Runner.

The Runner connection is per device: setting the iPhone to a remote URL does not change the desktop's 127.0.0.1 endpoint. The connection is stored in local storage, not synced data.json.

Configure a board

  1. Open the board.
  2. Click Agent in the header.
  3. Configure Runner connection: choose Direct / LAN or Cloudflare Access, enter the URL and Runner bearer token, then Test connection.
  4. Configure Workspace: choose Local folder or GitHub repository. For local, enter a folder or use Choose… (macOS native folder picker). For GitHub, enter an HTTPS/SSH URL and an optional branch.
  5. Configure Execution: choose Pi, OMP, OpenCode, or another registered backend, and optionally enable Use a git worktree for each run.
  6. Set optional Queue / Running execution columns. Recommended defaults are Queue → Queue/Inbox/Backlog/Todo, Running → Running/Doing.
  7. Set optional On success / On failure columns. Recommended defaults are Success → Done and Failure → Failed/Review/Doing.
  8. Save.

GitHub clones go to:

~/Workbench/workspaces/<boardId>/<repoName>

The default branch is used when branch is empty. Existing checkouts are fetched and checked out to the requested branch rather than blindly reset. System git credentials and SSH agents are used; tokens are never written into the board.

The repository URL, branch, and workspace path sync with the board. The Runner connection stays on this device and is never written to the synced plugin data. On mobile, the workspace path refers to the Runner host, not the iPhone.

GitHub issues and pull requests

The Runner links GitHub issues and pull requests through the locally authenticated gh CLI. It does not use the GitHub API directly and does not store a GitHub token in the board.

gh auth status

In Agent → GitHub repository, click Sync GitHub. The sync is one-way:

GitHub issues / PRs → Workbench tasks
  • Only currently open issues and pull requests are imported. Historical closed or merged items are never backfilled.
  • New issues go to Issue; open PRs go to PR; merged PRs go to Merged; closed issues go to Done. GitHub columns are kept before Done.
  • Imported tasks show an Issue #123 / PR #123 badge plus state, check, and review badges.
  • Re-running sync updates existing repo/type/number links instead of creating duplicates.
  • Local title and description edits are preserved. Remote titles only replace a title that still matches the previous synced title; the generated body only refreshes when its hash still matches the last generated description.
  • Linked tasks that were OPEN at the previous sync are refreshed once they close or merge. Existing historical closed/merged tasks are not fetched again. Merged PRs move to Merged; closed issues move to Done.
  • PRs store reviewDecision and normalized check counts: passing, failing, pending, or none.
  • GitHub titles/bodies/labels are imported into the task description; the task detail shows metadata and actions.
  • Comment and Close issue/PR call gh through the local Runner. Merge, reopen, labels, and review submission are not exposed yet. Agents can use gh explicitly for other operations.
  • Open in browser uses Obsidian's Web viewer when available, otherwise the system browser. To enable the built-in browser manually, turn on Settings → Core plugins → Web viewer, then run Web viewer: Open web viewer from the command palette or call webviewer:open.
  • The Runner exposes GET /health with gh availability/version, POST /github/sync with { repoUrl, refs? }, POST /github/comment, and POST /github/close.
  • The GitHub API rate limit applies to gh; each list pass requests at most 100 open issues and 100 open pull requests. Only open linked refs are sent, capped at 200.

Worktree mode

When enabled, each run gets a separate Git worktree and branch:

~/Workbench/worktrees/<boardId>/<runId>
branch: wb/<runId>

The base workspace must be clean before a run starts. The worktree is created from HEAD, so commit or stash changes first. A node_modules symlink is added when the base workspace already has one, letting tests run without reinstalling dependencies; other dependency management remains the task's responsibility.

Worktree mode allows multiple active runs per board, up to WORKBENCH_MAX_CONCURRENT_RUNS (default 2). Direct mode keeps the old one-run-per-board limit. Worktrees isolate files and branches, not credentials, network access, or OS permissions.

Queue

POST /runs always enqueues. The Runner starts the oldest eligible queued run while fewer than WORKBENCH_MAX_CONCURRENT_RUNS agent processes are active. A third request returns queued instead of 429. The queue is FIFO among eligible jobs and is capped at WORKBENCH_MAX_QUEUED_RUNS (default 20).

Direct mode still waits for the previous run on the same board. Worktree mode can start the next worktree run on the same board while the previous one is running. Aborting a queued run removes it from the queue. Queued jobs are in-memory: a Runner restart marks them failed rather than resuming them.

The task detail shows the branch and worktree path. Remove worktree deletes a clean, finished worktree; the branch is left for review/merge. If the worktree has uncommitted changes, removal is refused.

Create a task

Click Add task in a column. Workbench creates a draft task and opens the New task details modal immediately. Enter a title and description, then Save. Closing or cancelling an empty draft discards it.

Run a task

Open a task and click Run with (for example, Run with OMP). Workbench sends:

  • board and task IDs
  • task title and description
  • Markdown snapshots of [[linked notes]] (bounded to 60k characters)
  • embedded images (![[...]] or ![...](...)), up to 4 images, 5 MB each, 15 MB total
  • the workspace path

Use Preview context to inspect the exact prompt before starting. The task is saved before a run starts.

The run UI is a chat transcript:

  • the task prompt appears as the first user message
  • assistant messages render as Markdown bubbles
  • tool calls are grouped in a collapsed Tool activity details block
  • errors appear as error bubbles; Run details contains the workspace, session, and worktree paths
  • Run again starts a fresh run; Abort stops the active one

A single composer submits the next message. While the run is active it is delivered as a follow-up (or a steer if follow-up is unsupported). After the run settles and a session reference exists, Send starts a Continue run with the backend's resume command (pi --session <file>, omp --resume <file>, or opencode run --session <id>), reusing the same workspace/worktree. The new run records parentRunId and the same sessionId. If the worktree was removed, Continue is refused and a new run is required. For OpenCode, the saved session reference is its opaque ses_... id, not a file path.

The header's run selector switches between the latest run and earlier runs without replacing live polling. Clear queue sends the backend's clear_queue command when the backend supports it; queued steering/follow-up messages are discarded. Closing the modal does not stop the run; the task card keeps a status badge.

Backends are started with persistent sessions:

pi       --mode rpc --no-approve   --session-dir ~/.workbench/sessions
omp      --mode rpc --auto-approve --session-dir ~/.workbench/sessions
opencode run --format json --standalone --auto

Successful and failed runs are written to ~/.workbench/runs/<runId>/run.json plus raw events in events.jsonl. The plugin reloads recent runs for the active board, so badges, summaries, session paths, and logs survive an Obsidian or plugin restart. A run interrupted by a Runner restart is marked failed on the next start.

Agent-created tasks

Each run receives a scoped proposal token and Runner URL in its environment:

WORKBENCH_RUNNER_URL
WORKBENCH_RUN_ID
WORKBENCH_RUN_TOKEN
WORKBENCH_BOARD_ID
WORKBENCH_TASK_ID

The task prompt tells the agent how to create follow-up tasks:

curl -sS -X POST "$WORKBENCH_RUNNER_URL/runs/$WORKBENCH_RUN_ID/task-proposals" \
  -H "Authorization: Bearer $WORKBENCH_RUN_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"title":"...","description":"...","key":"stable-id"}'

The Runner stores proposals; the plugin polls them and creates tasks in an Inbox column if present, otherwise Backlog, otherwise the first column. Created tasks carry source: "agent", sourceProposalId, sourceRunId, and sourceTaskId, and show an Agent badge. They are not started automatically.

The token is scoped to proposal creation for that run only; it cannot abort runs or change the board. The token is invalidated when the run exits. A run may create at most 20 pending proposals; the global pending queue is capped at 200. A proposal key makes retries idempotent within the run.

Agents still must not edit Workbench/boards/ directly.

Obsidian CLI entries

Any external agent or script can create, read, update, move, or delete tasks through the official Obsidian CLI, without the Runner:

1. Create a task (workbench:create-task)

obsidian workbench:create-task \
  board="Agent Integration" \
  column="Backlog" \
  title="Review generated tests" \
  description="Created by an external agent." \
  backend="pi"
  • title is required.
  • board defaults to the active board; accepts a board name or ID.
  • column defaults to Inbox, then Backlog, then the first column; accepts a column name or ID.
  • backend sets the task-level execution backend (e.g. pi, omp, opencode).
  • The task is created through the plugin store, marked source: "agent", and shows the Agent badge.

2. List tasks (workbench:list-tasks)

# List all tasks on active board
obsidian workbench:list-tasks

# Filter by board and column, output as JSON
obsidian workbench:list-tasks board="Agent Integration" column="Backlog" format=json
  • board defaults to active board.
  • column optional column filter.
  • format accepts plain (default) or json.

3. Get task details (workbench:get-task)

# Get details for a task
obsidian workbench:get-task id="t_12345"

# Output in JSON format
obsidian workbench:get-task id="t_12345" format=json
  • id is required. Searches all boards automatically if board is omitted.
  • format accepts plain (default) or json.

4. Update task or modify status (workbench:update-task / workbench:move-task)

# Update task title and description
obsidian workbench:update-task id="t_12345" title="New title" description="Updated details"

# Move task to a different column (change status)
obsidian workbench:update-task id="t_12345" column="In Progress"

# Or using workbench:move-task
obsidian workbench:move-task id="t_12345" column="Done"
  • column or status moves the task to the destination column and updates state.
  • title, description, backend update corresponding task fields.
  • board is optional; if omitted, automatically locates the task across all boards.

5. Delete a task (workbench:delete-task)

obsidian workbench:delete-task id="t_12345"

CLI Prerequisites & Notes

  • Obsidian must be running, and the Obsidian CLI must be enabled in Settings → General → Command line interface.
  • After updating the plugin, run obsidian plugin:reload id=workbench (or restart Obsidian); wait a few seconds, then verify with obsidian help workbench:create-task.
  • This path requires Obsidian 1.12.2+ for registerCliHandler; the rest of the plugin keeps its lower minimum version.

Python example:

import subprocess

# Create a task
subprocess.run(
    [
        "obsidian",
        "workbench:create-task",
        "board=Agent Integration",
        "title=Review generated tests",
        "description=Created by an external agent.",
    ],
    check=True,
)

# Move task to Done
subprocess.run(
    [
        "obsidian",
        "workbench:move-task",
        "id=t_12345",
        "column=Done",
    ],
    check=True,
)

The CLI is a local same-user entry point; it is not authenticated separately from Obsidian. Use the Runner proposal API when an agent is already running inside a Workbench run.

Column projection

Execution columns are optional projections; the Runner queue remains the source of truth.

  • Dropping a task into the Queue column enqueues it
  • queued moves to the Queue column
  • running moves to the Running column
  • succeeded moves to the success column
  • failed moves to the failure column
  • cancelled never moves

Column names are arbitrary; the board stores column IDs. The Running column is system-managed: dragging into it does not start a run, and dragging out does not stop a running one. Reordering tasks inside Queue updates the Runner's pending order for that board; other boards keep their positions. The Runner remains FIFO by effective pending order. Moving a queued task out of Queue cancels its queued run. Deleting a task aborts its queued or running run first.

Automatic moves are off when no mapping is configured. The UI applies mappings on live state transitions, not when loading old history.

Community plugin disclosures

  • Network use. On desktop, the plugin starts a bundled local Runner at http://127.0.0.1:4319 by default. The Runner can clone GitHub repositories and starts Pi, OMP, or OpenCode, which may contact their configured model providers. These requests are required for the Agent features. A remote Runner can be configured instead, including Cloudflare Access.
  • Files outside the vault. Agent features read and write configured workspaces, Git worktrees under ~/Workbench/worktrees, checkouts under ~/Workbench/workspaces, and session/run data under ~/.workbench. Board data itself stays inside the vault.
  • Accounts and credentials. The core kanban works without an account. Agent backends may require their own provider account or API key. The plugin does not require an Obsidian account or payment.
  • Desktop and mobile. The kanban UI loads on desktop and mobile. The desktop plugin starts its bundled runner.cjs; mobile has no Node runtime and must connect to a remote Runner (for example through Cloudflare Tunnel and Zero Trust).
  • Privacy. No telemetry or analytics are sent by the plugin. No ads and no self-update mechanism are included.
  • Trademark. Workbench Kanban is an independent community project, not an Obsidian first-party product.

Data and security

  • Runner binds to loopback by default.
  • Agent backends run with the current user's permissions and no sandbox.
  • Agents receive a per-run proposal token, not the global Runner token. The global WORKBENCH_RUNNER_TOKEN is removed from the agent environment.
  • Provider API keys inherited from the Runner environment are visible to the agent process; use dedicated profiles/credentials if that matters.
  • Only point a board at a repository you trust. Git checkout can execute repository-controlled hooks/configuration.
  • Raw RPC events and sessions are local and may contain prompt/note content.
  • Extension dialogs are auto-cancelled so a headless run cannot block.
  • Direct mode allows one active run per board. Worktree mode allows up to WORKBENCH_MAX_CONCURRENT_RUNS active runs, each in its own checkout.
  • Pi uses --no-approve; OMP uses --auto-approve; OpenCode uses --auto. All prevent interactive approval prompts from blocking the Runner.
  • Worktrees isolate files, not host credentials or network access.

API

GET  /health
POST /workspace          { path }
POST /workspace/github   { boardId, repoUrl, branch }
POST /github/sync        { repoUrl, refs? }  (uses local gh auth)
POST /github/comment     { repoUrl, type, number, body }
POST /github/close       { repoUrl, type, number }
POST /runs               { boardId, taskId, title, prompt, cwd, backend?, images?, worktree? }  -> queued/running
GET  /runs?boardId=...&taskId=...&limit=...
GET  /runs/:id?after=N
POST /runs/:id/message     { message, mode: "follow_up" | "steer" }
POST /runs/:id/clear-queue
POST /runs/:id/continue    { message }
POST /runs/:id/abort
POST /runs/:id/cleanup
POST /queue/reorder        { boardId, runIds }
POST /runs/:id/task-proposals  { title, description?, key? }  (run-scoped bearer token)
GET  /task-proposals?boardId=...
POST /task-proposals/:id/ack

Verification

npm test
npm run check
npm run build
OBSIDIAN_VAULT=~/Obsidian/YourVault npm run deploy

npm run deploy requires OBSIDIAN_VAULT; it copies main.js, runner.cjs, manifest.json, styles.css, and README.md into <vault>/.obsidian/plugins/workbench.

License

MIT. See LICENSE.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.