Skip to content

Work Pane

Stuart Jackson edited this page Nov 22, 2026 · 5 revisions

Work-Pane

The simpleapps-work-pane plugin: a mod for SimpleApps staff that keeps a simpleapps-work project's work/ folder current and shows what they track beside the chat. Claude Code only. The plugin's README is the user guide; this page is how it works.

Where it runs

The pane runs in a session opened in a person's simpleapps-work project and uses that project's work/ folder where it is ($.session.root() + /work), with the same processes that built it. Nothing moves into the plugin's own data folder. Fetched Basecamp records go in the project's tmp/ (client data, never in a repo).

Part Path Does
Pane hooks/register.tsx Checks for changes on a timer, draws the pane, fetches changed Basecamp todos through the SimpleApps Basecamp connector (from simpleapps-work), runs the scripts
Scripts scripts/work.ts, scripts/lib/ work <command> --root <project>/work: everything that reads or writes work/. Node 22.18+ type stripping, no build
Rules scripts/pane-rules.ts, scripts/work-rules.ts Every decision about a value, proved (Proofs)

It replaces the project's own work mod, which MUST be turned off when this plugin is installed: both register /work and a pane named work. The connector is reached as plugin:simpleapps-work:SimpleApps Basecamp ($.mcp.connect, then $.mcp.call with the name it returns). A mod's own connector calls ask no permission. The pane reports what the machine lacks: node on the PATH ($.session.machine()), a signed-in gh (gh auth status), the connector.

A project server on the connector's URL (https://basecamp.augur-mcp.com, such as a basecamp2 entry in the project's .mcp.json) MUST be removed: Claude Code drops a plugin's server when a configured one has the same URL, so the connector never loads (GH #19). When the connector is not connected, the pane reads <project>/.mcp.json and names each such server on a needs: line (remove "basecamp2" from .mcp.json: it has SimpleApps Basecamp's URL, ...), beside the machine's gaps; which URL counts is the proved isBasecampUrl. The check does not retry it, since it never clears on its own. The pane never connects to or calls a server it did not ship (owner decision, 2026-11-22). A server with that URL in the user's own config (~/.claude.json) is not read, so it shows only the plain "connect SimpleApps Basecamp" message.

work/

Path What it is
README.md The index: settings in its frontmatter (me, aliases, org, watch_repos, auto_sync, sync_minutes), the digest below it
hubs/<hub>/README.md A client or project: its repos, followed_repos, basecamp_projects, sites
hubs/<hub>/items/<id>.md One open GitHub issue or PR (gh-<repo>-<n>, gh-<owner>.<repo>-<n> outside the org) or Basecamp todo (bc-todo-<n>)
briefs/brief-<hub>.md A living site brief: a summary /site-brief writes, then facts work refresh rewrites
LIST.md, chart.md, chart.html, graph.json, sync.log Generated: the pick list, the Mermaid chart, the reference graph, one line per run

org names the GitHub org a bare repo name is in; simpleapps-com when not set. Frontmatter is a strict YAML subset (key: value, key: [a, b], key: then - item); a value written by the scripts reads back unchanged (Proofs).

References

An item's text (its description and each ### <author> · <when> comment) links items by: GitHub issue and PR URLs, <owner>/<repo>#<n>, <repo>#<n>, bare #<n> (an issue the text already named with that number, else the item's own repo), Basecamp todo and message URLs, and BC<n>. A number of 9+ digits after # is a Basecamp todo. A reference right after "close(s/d)", "fix(es/ed)" or "resolve(s/d)" (any case, an optional colon) closes its target. Each target is listed once, and closes is never downgraded by a later mention.

Check and Sync

A check (every sync_minutes, once per interval across sessions) counts your open Basecamp todos (count_my_todos, whose fingerprint changes on any edit), the open issues per watched repo, and what changed since the last Sync (list_my_todo_index diffed against work/, one GitHub search for everything updated since). With auto_sync, a change starts a Sync. While the connector is still connecting, the check retries every 15 seconds, at most 8 times.

A Sync fetches the changed todos (get_todo, five at a time) and the briefs' project todos (list_todos, all or nothing), then runs work refresh:

import-bc → sync-gh → follow (two layers out from Basecamp items and fully synced repos) → tidy (empty, unedited auto-created hubs) → brief → summary (the digest and LIST.md) → chart → validate

It stops at the first failing step, holds work/.lock (taken over after 15 minutes), and logs one line. Linked todos follow found are fetched in a second pass; one seen completed is skipped for 7 days.

Differences from the source scripts

The scripts were ported from the private simpleapps-work repo (GH #14) with the same behaviour, pinned by tests against the source's own code, except:

  • The org comes from org, not a constant.
  • Display sorting uses code-unit order where the source used localeCompare; they differ only where _ meets a digit in a repo name.
  • Hub slugs lower ASCII only: a project name with the Kelvin sign or a dotted capital I slugs differently.
  • The digest's footer no longer names the old repo layout.

Clone this wiki locally