Skip to content

Commit a5aa00f

Browse files
committed
Merge main into sdk-absorb/card-10476950575
* commit 'ef2b350fa4662d0060c2b5e90bcbe69e32e76dd0': Stop telling an agent to send a Markdown fold as HTML (#1030) Update nix flake and plugin version for v0.30.0 (#1042) Watch a connector in a terminal, and talk to its orchestrator (#1039) Lift the connector's cap on workers, and let a start set one (#1040) Never give the connector's monitor a timeout (#1035) Update nix flake and plugin version for v0.29.0 (#1037) Let assignments notify people with --notify (#1034) Update nix flake and plugin version for v0.28.1 Bind local config trust to approved settings Update nix flake and plugin version for v0.28.0 (#1029) Let the connector do the work itself, on the coding agent you choose (#1026) Build with Go 1.26.11 (#1027) Open a release PR for the version bump instead of pushing it to main (#1025) Update nix flake and plugin version for v0.27.0
2 parents 2c299d6 + ef2b350 commit a5aa00f

76 files changed

Lines changed: 12069 additions & 228 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "basecamp-cli",
3-
"version": "0.26.0",
3+
"version": "0.30.0",
44
"description": "Basecamp integration for Claude Code. Create todos, track work, link code to projects.",
55
"author": {
66
"name": "37signals",

‎.codex-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "basecamp-cli",
3-
"version": "0.26.0",
3+
"version": "0.30.0",
44
"description": "Use Basecamp from Codex to find work, create todos, and keep projects up to date.",
55
"author": {
66
"name": "37signals",

‎.github/release.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ changelog:
33
labels:
44
- dependencies
55
- github_actions
6+
# The release PR scripts/release.sh opens to stamp the version.
7+
- release
68
authors:
79
- dependabot[bot]
810
categories:

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
security-events: write
2121
pull-requests: read
2222

23-
# Invoked here rather than merely run beforehand: scripts/release.sh commits
24-
# and pushes a release-prep commit to main *before* tagging, so anything run
25-
# ahead of time covers the wrong SHA. As a called workflow this runs against
23+
# Invoked here rather than merely run beforehand: a stable release's
24+
# release-prep commit merges to main through its PR *before* tagging, so
25+
# anything run ahead of time covers the wrong SHA. As a called workflow this runs against
2626
# the exact tag SHA.
2727
#
2828
# contents: read is required and cannot be inherited — this workflow sets

‎.surface‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,7 @@ FLAG basecamp assign --markdown type=bool
19581958
FLAG basecamp assign --md type=bool
19591959
FLAG basecamp assign --no-hints type=bool
19601960
FLAG basecamp assign --no-stats type=bool
1961+
FLAG basecamp assign --notify type=bool
19611962
FLAG basecamp assign --profile type=string
19621963
FLAG basecamp assign --project type=string
19631964
FLAG basecamp assign --quiet type=bool
@@ -3606,6 +3607,7 @@ FLAG basecamp cards create --markdown type=bool
36063607
FLAG basecamp cards create --md type=bool
36073608
FLAG basecamp cards create --no-hints type=bool
36083609
FLAG basecamp cards create --no-stats type=bool
3610+
FLAG basecamp cards create --notify type=bool
36093611
FLAG basecamp cards create --profile type=string
36103612
FLAG basecamp cards create --project type=string
36113613
FLAG basecamp cards create --quiet type=bool
@@ -4005,6 +4007,7 @@ FLAG basecamp cards update --markdown type=bool
40054007
FLAG basecamp cards update --md type=bool
40064008
FLAG basecamp cards update --no-hints type=bool
40074009
FLAG basecamp cards update --no-stats type=bool
4010+
FLAG basecamp cards update --notify type=bool
40084011
FLAG basecamp cards update --profile type=string
40094012
FLAG basecamp cards update --project type=string
40104013
FLAG basecamp cards update --quiet type=bool
@@ -18847,6 +18850,7 @@ FLAG basecamp todos create --markdown type=bool
1884718850
FLAG basecamp todos create --md type=bool
1884818851
FLAG basecamp todos create --no-hints type=bool
1884918852
FLAG basecamp todos create --no-stats type=bool
18853+
FLAG basecamp todos create --notify type=bool
1885018854
FLAG basecamp todos create --notify-on-completion type=string
1885118855
FLAG basecamp todos create --profile type=string
1885218856
FLAG basecamp todos create --project type=string

‎.surface-skill-drift‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ CMD basecamp connect release
3333
CMD basecamp connect shadow promote
3434
CMD basecamp connect show
3535
CMD basecamp connect status
36+
# The connector doing the work itself (--orchestrator): hidden with the rest.
37+
FLAG basecamp --orchestrator
38+
FLAG basecamp --run
39+
CMD basecamp connect console
40+
CMD basecamp connect restart
41+
CMD basecamp connect say
42+
CMD basecamp connect stop
43+
CMD basecamp connect workers list
3644
FLAG basecamp --unserve
3745
# Per-Campfire policy flags on the hidden connect setup command.
3846
FLAG basecamp --listen-campfire

‎AGENTS.md‎

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,77 @@ picker's `(Global)` row, the prose lists in the installers and the docs are the
5959
by hand. `setup <id>` never fabricates an agent's home directory: a skill-only agent that is not
6060
detected is reported missing, not created.
6161

62+
## The connector doing the work itself
63+
64+
`basecamp connect -P <profile>` prints each trusted request for the session that started it,
65+
which is how the basecamp-connect skill runs in Claude Code. With `--orchestrator <agent>` the
66+
connector does that session's job itself, on any coding agent that can take a prompt without a
67+
terminal, run shell commands and continue an earlier session. `internal/connector/runner` is
68+
all of it:
69+
70+
- **The workflow is the skill.** `skills/basecamp-connect/SKILL.md` and `subagent.md` are
71+
embedded (`skills.Connect`) and given to the agents as they are. `instructions.go` adds only
72+
the table that maps the Claude Code mechanisms they name (the monitor, background subagents)
73+
onto the runner's commands. Change behavior in the skill, never there.
74+
- **An adapter is one CLI**: the arguments of a headless turn and how its event stream reads
75+
(`adapter.go`: `claude -p`, `codex exec`, `pi -p`). A new coding agent is a new adapter and a
76+
stream fixture in `adapter_test.go`. `go test -tags runner_live ./internal/connector/runner
77+
-run TestInstalled` holds each adapter to the installed CLI and spends a few model requests.
78+
- **The orchestrator's tools are CLI commands** that reach the running connector over a unix
79+
socket in its state directory: `basecamp connect dispatch`, `workers list|send|stop`, `say`,
80+
`stop`, `restart` (`internal/commands/connect_runner.go`).
81+
- **Which agent does what**: the start's flags, then `runner.json` beside the profile's
82+
`connect.json` (hand-written, read again for every dispatch), whose rules choose a worker by
83+
repo, project, card table, to-do list, any recording a request sits under, or a Ping.
84+
- **A worker is kept for its thread.** A later request on the same card, to-do, message or
85+
chat goes to the worker that handled the first, continued in its session, and waits its turn
86+
if that worker is busy. A new worker starts only when the session cannot take it: the work
87+
is in another repo or on another coding agent, `--again` was given, or the CLI no longer
88+
has the session. The orchestrator's own session is never rotated; each CLI's compaction is
89+
relied on, and both kinds of session are told where their instructions are kept.
90+
- **State** is `runner/state.json` in the connector's state directory: the orchestrator's
91+
inbox and session, and every worker. The handoff gives the runner each request before it
92+
closes the record (`HandoffOptions.Deliver`), so a crash repeats a request rather than
93+
losing it if the connector starts again within `HandoffGrace` (a minute), and a worker a
94+
stop interrupted is continued in its own session at the next start. A start ends what a
95+
crash left running first, and does not start beside a process it cannot confirm ended; a
96+
turn's process is recorded before its agent is told anything, and a session is not given
97+
another turn while what its last one started cannot be confirmed ended.
98+
99+
**The console** (`basecamp connect console`, `internal/connector/console`) is the person's
100+
view of all this in a terminal: what is worked on, what was done, doctor's checks, the
101+
coding agents installed, the settings, and a line to the orchestrator. It is a process of
102+
its own that reads what `status` reads (`connectConsole.snapshot`) and writes nothing, so
103+
it runs beside a connector, before one starts and after one stops; what the person types
104+
goes over the runner's socket, as `say` does. Everything it draws that someone else wrote
105+
(a recording's title, a worker's report) goes through `plain` or `text` first: keep it so.
106+
`console.Run` is the one place it starts a bubbletea program, listed in
107+
`internal/tui/launchers_test.go`.
108+
109+
**What agents may do** is one switch, `--permissions`, kept in `runner.json` and read for
110+
every turn. `full`, the default, starts each CLI with its permission prompts off: a headless
111+
turn has nobody to answer one. `guarded` starts each under its own unattended guardrails
112+
(`Adapter.Guarded`): Claude Code in its auto mode, and Codex in its workspace-write sandbox
113+
with the network on and its automatic review, which lets Codex's own reviewer answer a
114+
request to run a stopped command outside the sandbox. Without that review a sandboxed Codex
115+
can neither commit in a repo (its git data is read-only there) nor read `connect.json`
116+
(inside the sandbox `/` belongs to nobody the CLI knows, so the check that the file is the
117+
person's own fails). That check is the trust anchor's and is not loosened: instead an agent
118+
is told which runner started it (`runner.SocketEnv`), so `dispatch` and the other runner commands
119+
reach the socket without reading the file. Pi has no guardrails and is refused under
120+
`guarded`. What a mode means is told to the worker (`guardedNote`), the person at start
121+
(`PermissionsNotice`) and in the skill; keep the three in step. A `runner.json` that cannot
122+
be read starts no agent: it is never read as `full`.
123+
124+
**What a start names is kept** (`SaveStart`): the orchestrator, the worker, the
125+
permissions and a cap on workers go into `runner.json`, and `--run` starts with them.
126+
Plain `basecamp connect` never reads them, so the Claude Code skill's path is untouched.
127+
128+
**How many workers run at once** has no cap unless a start names one with
129+
`--max-workers`: every request gets a worker as it arrives. A cap is `max_workers` in
130+
`runner.json`, and `--max-workers 0` takes a kept one off. Unlike the rules and the
131+
permissions, which are read again as the connector runs, a cap is read once, at a start.
132+
62133
## Basecamp API Reference
63134

64135
API documentation: https://github.com/basecamp/bc3-api

‎API-COVERAGE.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ Out-of-scope sections are excluded from parity totals and scripts: chatbots (dif
9494
9595
**SDK version:** the pin in `go.mod`, with
9696
`internal/version/sdk-provenance.json` authoritative for the exact commit. That
97-
pin is basecamp-sdk v0.23.0, which sends a check-in question's time as
98-
`time_of_day` (basecamp/basecamp-sdk#968). v0.22.0 shipped
97+
pin is basecamp-sdk v0.36.0, which adds `assignee_ids` to card create and
98+
`notify` to card update (basecamp/basecamp-sdk#1091). v0.23.0 sends a check-in
99+
question's time as `time_of_day` (basecamp/basecamp-sdk#968). v0.22.0 shipped
99100
`Recordings().MoveToVault` (basecamp/basecamp-sdk#960). v0.21.0 shipped the Subtasks service
100101
(basecamp/basecamp-sdk#883). v0.19.0 shipped the event-feed operations.
101102
The command surface below largely dates to the v0.12.0 bump, which added 20 exported
@@ -260,7 +261,7 @@ cannot faithfully cover at least one endpoint for a reason outside the CLI. A
260261
| spotlights | 2 | `spotlight`, `unspotlight` | ✅ | BC5 | - | `POST`/`DELETE /recordings/{id}/spotlight.json` put a recording's card on, or take it off, its project or template home page; both idempotent. No endpoint reads spotlight state or lists spotlights, so there is no `check` or list. Reordering spotlights (`PUT /recordings/:id/spotlight/position`) has no SDK operation, so it is not covered |
261262
| **Cards (Kanban)** |
262263
| card_tables | 3 | `cards` | ✅ | BC4 | - | Accessed via project dock |
263-
| card_table_cards | 9 | `cards` | ✅ | BC4 | - | list, show, create, update, move |
264+
| card_table_cards | 9 | `cards` | ✅ | BC4 | - | list, show, create, update, move. `cards create --assignee` assigns in the create request (`assignee_ids`, SDK v0.36.0, basecamp/basecamp-sdk#1091); `--notify` is sent as `notify: true` on create and card-update writes, including `assign --card`, so Basecamp tells the people newly assigned; `cards update --notify` alone only reads the card |
264265
| card_table_columns | 11 | `cards columns` | ✅ | BC4 | - | list columns. SDK v0.12.0 added `Subscribe`/`Unsubscribe`; `cards column watch\|unwatch` already performs the same action through the generic recording-subscription endpoint and returns the resulting subscription details the specific endpoint does not, so the CLI keeps one spelling |
265266
| card_table_steps | 4 | `cards steps` | ✅ | BC4 | - | Workflow steps on cards. The card-scoped aliases of `subtasks`, which bc3 keeps serving; `cards step move --position` is 1-based (the SDK refuses 0 since basecamp/basecamp-sdk#883) |
266267
| card_table_wormholes | 3 | `cards wormholes` | ✅ | BC5 | - | list (via `wormholes[]` on card table), create, update, delete; `cards move --to-wormhole` teleports a card across projects and reports the new card once it lands |

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ help:
680680
@echo ""
681681
@echo "Release:"
682682
@echo " release-check Full pre-flight (check + replace-check + vuln + race + surface compat)"
683-
@echo " release Cut a release (VERSION=x.y.z, DRY_RUN=1 optional)"
683+
@echo " release Cut a release: stable opens the release PR, re-run after merge tags (VERSION=x.y.z, DRY_RUN=1 optional)"
684684
@echo " test-release Dry-run goreleaser pipeline (notarize disabled via empty env)"
685685
@echo ""
686686
@echo "Security:"

‎README.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,31 @@ basecamp mcp --domains projects,todos # narrow the served surface (fails clos
514514
A leftover `~/.config/basecamp/client.json` (from the removed development
515515
client-registration flow) is obsolete and safe to delete.
516516

517+
### Trusting repository configuration
518+
519+
Repository and local configs may set ordinary defaults such as `project_id`
520+
and `todolist_id` without approval. Settings that control connections, including
521+
`base_url`, `profiles`, and `default_profile`, require explicit trust:
522+
523+
```bash
524+
basecamp config trust /path/to/.basecamp/config.json
525+
```
526+
527+
Review the file and its server addresses before trusting it. Trust applies to
528+
its current security-sensitive settings, not just its path. If those settings
529+
change, the CLI ignores them and warns until you review and trust the file
530+
again. Formatting changes and changes to ordinary top-level defaults retain
531+
trust.
532+
533+
**Upgrading from path-only trust:** previously trusted configs must be reviewed
534+
and trusted again before their security-sensitive settings apply. Global
535+
configuration and saved credentials are unchanged. Until reapproval, trust-gated
536+
connection, cache, and LLM settings are ignored, including `base_url`, `profiles`,
537+
`default_profile`, `cache_dir`, `cache_enabled`, and LLM provider, endpoint, model,
538+
and budget settings. Ordinary top-level defaults such as `account_id`,
539+
`project_id`, and `todolist_id` still apply. Check the effective server address,
540+
account, and project with `basecamp config show` before making changes.
541+
517542
## Troubleshooting
518543

519544
```bash

0 commit comments

Comments
 (0)