chore: skill updates
This commit is contained in:
+22
-5
@@ -20,15 +20,32 @@ Interpret every check by status:
|
||||
|
||||
Report failures and warnings with their `hint` fields. Also inspect the top-level `breadcrumbs` array and preserve its structured `cmd` next steps, because a breadcrumb can provide a more specific action than a check hint. Use these common remediations when relevant:
|
||||
|
||||
- Basecamp authentication: `basecamp auth login`
|
||||
- Basecamp authentication: `basecamp auth login`. Guard a replacement login
|
||||
with `--expect-identity <id>` so a browser signed in as someone else cannot
|
||||
become the profile. A bot or CI profile that must never sign in interactively
|
||||
imports a personal access token instead:
|
||||
`op read "op://<vault>/<item>/credential" | basecamp auth login --with-token -P <profile> --account <id> --expect-identity <id>`
|
||||
|
||||
**Check `oauth_type` before suggesting either.** `basecamp auth status --json`
|
||||
reports it, and `agent` means the profile is a Basecamp agent: a principal
|
||||
with no person behind it, which authenticates with its OAuth client rather
|
||||
than a sign-in. Both commands above would store a PERSON's credential under
|
||||
that profile and silently replace the agent. Its remediation is its own
|
||||
login, with the client secret piped in:
|
||||
`op read "op://<vault>/<item>/credential" | basecamp auth login --with-client-credentials --client-id <id> -P <profile> --account <id>`
|
||||
The CLI's own `hint` on an agent credential already names this command with
|
||||
the client id filled in — prefer it verbatim over reconstructing one, and
|
||||
follow it rather than choosing for yourself whenever `oauth_type` is absent.
|
||||
- Agent plugin installation or version: `basecamp setup agents` (honors `BASECAMP_SETUP_AGENT`)
|
||||
- Codex plugin specifically: `basecamp setup codex`
|
||||
- Claude Code plugin specifically: `basecamp setup claude`
|
||||
- Grok skill specifically: `basecamp setup grok` (skill-only; Grok reads the shared `~/.agents/skills/basecamp` skill)
|
||||
|
||||
Every remediation above runs without a terminal. Bare `basecamp setup` is the
|
||||
interactive first-run wizard and is **not** one of them: it is prompts end to
|
||||
end, so it refuses with a usage error in machine-output modes or when stdin and
|
||||
stderr are not both terminals. Suggest it to a human at a terminal if you like,
|
||||
but never run it yourself — use the subcommands above.
|
||||
human first-time flow and is **not** one of them: it opens browser OAuth and
|
||||
refuses with a usage error in machine-output modes or unless stdin, stdout, and
|
||||
stderr are all terminals. `basecamp setup --customize` additionally asks the user to
|
||||
choose each default. Suggest either to a human at a terminal if useful, but
|
||||
never run them yourself — use the subcommands above.
|
||||
|
||||
Do not read, print, or request credential files. If every check passes, say that Basecamp and its agent integration are ready.
|
||||
|
||||
+211
-23
@@ -4,7 +4,7 @@ description: |
|
||||
Interact with Basecamp via the Basecamp CLI. Full API coverage: projects, todos, cards,
|
||||
messages, files, schedule, check-ins, timeline, recordings, templates, webhooks,
|
||||
subscriptions, lineup, chat, pings, gauges, assignments, notifications, bookmarks,
|
||||
drafts, notes, calendars, and accounts.
|
||||
bubble-up, drafts, notes, calendars, and accounts.
|
||||
Use for ANY Basecamp question or action.
|
||||
triggers:
|
||||
# Direct invocations
|
||||
@@ -20,6 +20,7 @@ triggers:
|
||||
- basecamp file
|
||||
- basecamp document
|
||||
- basecamp bookmarks
|
||||
- basecamp bubble-up
|
||||
- basecamp drafts
|
||||
- basecamp notes
|
||||
- basecamp calendars
|
||||
@@ -80,7 +81,7 @@ argument-hint: "[action] [args...]"
|
||||
|
||||
# /basecamp - Basecamp Workflow Command
|
||||
|
||||
Full CLI coverage: 155 endpoints across todos, cards, messages, files, schedule, check-ins, timeline, recordings, templates, webhooks, subscriptions, lineup, chat, pings, gauges, assignments, notifications, and accounts.
|
||||
Full CLI coverage: 195 tracked in-scope endpoints across todos, cards, messages, files, schedule, check-ins, timeline, recordings, templates, webhooks, subscriptions, lineup, chat, pings, gauges, assignments, notifications, the account event feed, and accounts.
|
||||
|
||||
## Agent Invariants
|
||||
|
||||
@@ -90,12 +91,13 @@ Full CLI coverage: 155 endpoints across todos, cards, messages, files, schedule,
|
||||
2. **Parse URLs first** with `basecamp url parse "<url>"` to extract IDs
|
||||
3. **Comments are flat** - reply to parent recording, not to comments
|
||||
4. **Check context** via `.basecamp/config.json` before assuming project
|
||||
5. **Content fields accept Markdown and @mentions** — message body and comment content accept Markdown syntax; the CLI converts to HTML automatically. Use Markdown formatting (lists, bold, links, code blocks, tables) for rich content. Four mention syntaxes are available (prefer deterministic for agents):
|
||||
5. **Content fields accept Markdown, and most accept @mentions** — the CLI converts these rich-text fields from Markdown to HTML: message bodies, document bodies, comment content, todo descriptions, card bodies, schedule entry descriptions, upload descriptions, check-in answers and notes. Two rich-text fields are sent as written, so give them HTML: todolist descriptions and gauge needle descriptions. Chat is different again: `chat post` sends plain text unless you pass `--content-type text/html` or the line carries a mention. Use Markdown formatting (lists, bold, links, code blocks, tables) for rich content. @mentions resolve in message bodies, comment content, card bodies, schedule descriptions and chat lines — not in todo descriptions, documents, uploads, check-ins or notes. Four mention syntaxes are available (prefer deterministic for agents):
|
||||
- **`[@Name](mention:SGID)`** — zero API calls, embeds SGID directly (preferred for agents)
|
||||
- **`[@Name](person:ID)`** — one API call, resolves person ID to SGID via pingable set
|
||||
- **`@sgid:VALUE`** — inline SGID embed for pipeline composability
|
||||
- **`@Name` / `@First.Last`** — fuzzy name resolution (may be ambiguous)
|
||||
For todos, documents, and cards, content is sent as-is — use plain text or HTML directly.
|
||||
|
||||
Raw HTML is also accepted, but it is all-or-nothing per field: a tag the CLI detects as HTML (`<p>`, `<ul>`, `<strong>`, `<a>`, `<img>`, `<table>` and the other common formatting tags) outside a backtick code span or backtick fence (a `~~~` fence does not hide it) skips Markdown conversion for the whole field, so any Markdown alongside it — `` included — is sent literally. The HTML itself goes through as written, except that an empty separator paragraph is inserted between directly adjacent `<p>` blocks so they render with spacing; a local path in a raw `<img src>` is still uploaded and replaced with an attachment in every converted field except notes, which take no attachments. Titles (a todo's content argument, card and message titles) are plain text and never converted.
|
||||
|
||||
**Table boundary:** GFM tables round-trip: they render in message/comment
|
||||
bodies, display converts them back to pipe tables, and the TUI in-place
|
||||
@@ -134,7 +136,14 @@ Full CLI coverage: 155 endpoints across todos, cards, messages, files, schedule,
|
||||
or `--edit` where offered.
|
||||
- Trailing newlines are trimmed from stdin content, so `printf 'x\n' | ... -`
|
||||
posts `x` (this keeps `boost create -` inside its 16-rune limit).
|
||||
6. **Project scope is mandatory for most commands** — via `--in <project>` or `.basecamp/config.json`. Cross-project exceptions: `basecamp reports assigned` for assigned work, `basecamp assignments` for structured assignment views, `basecamp reports overdue` for overdue todos, `basecamp reports schedule` for upcoming schedule across all projects, `basecamp recordings <type>` for browsing by type, `basecamp notifications` for notifications, `basecamp gauges list` for account-wide gauges, and the seven list commands covered in item 7.
|
||||
- Universal `-` support (and the stray-`-` guard) shipped in **v0.10.0**. Older
|
||||
CLIs do not support it consistently: `comments create/update` read stdin,
|
||||
while unsupported inputs may treat `-` as literal content or fail. For
|
||||
example, `messages create "Title" -` posts a body of `-`, which Markdown
|
||||
renders as an empty bullet list. When the CLI version is unknown, check
|
||||
`basecamp --version` first, or pass the content portably as
|
||||
`"$(cat file.md)"` and verify the posted `content` when it matters.
|
||||
6. **Project scope is mandatory for most commands** — via `--in <project>` or `.basecamp/config.json`. Cross-project exceptions: `basecamp reports assigned` for assigned work, `basecamp assignments` for structured assignment views, `basecamp reports overdue` for overdue todos, `basecamp reports schedule` for upcoming schedule across all projects, `basecamp recordings <type>` for browsing by type, `basecamp notifications` for notifications, `basecamp gauges list` for account-wide gauges, `basecamp events poll` and `basecamp inbox` for the account event feed, and the seven list commands covered in item 7.
|
||||
7. **Account-wide listing.** `basecamp todos list --all-projects --json` lists across every project; the same flag does the same on `cards list`, `messages list`, `comments list`, `files list`, `forwards list`, and `checkins answers`. It overrides a configured project, and with no project in scope those commands already list account-wide rather than prompting. Flags that name something inside a single project are rejected there rather than silently ignored.
|
||||
Account-wide listings return **the first 100 items by default** — account-wide "all" is the whole account, not one project's worth. Use `--limit N` to raise the cap (it walks pages until N are collected) or `--all` for everything. `--page N` fetches exactly one page, but only on the paginated listings.
|
||||
The two overdue variants — `basecamp todos list --all-projects --overdue` and `basecamp cards list --all-projects --overdue` — come from unpaginated endpoints. They accept `--limit` and `--all` but **reject `--page`**, so do not generate `--page` against them.
|
||||
@@ -147,7 +156,7 @@ Full CLI coverage: 155 endpoints across todos, cards, messages, files, schedule,
|
||||
|------|------|--------|
|
||||
| Filter/extract JSON data | `--jq '<expr>'` | Built-in jq filter (no external jq needed). Implies `--json`; filter runs on the envelope. |
|
||||
| Filter in agent mode | `--agent --jq '<expr>'` | Filter runs on data-only payload (no envelope), matching `--agent` contract. |
|
||||
| Full JSON output | `--json` | JSON envelope: `{ok, data, summary, breadcrumbs, meta}` |
|
||||
| Full JSON output | `--json` | JSON envelope: `{ok, data, summary, breadcrumbs, meta}`; errors: `{ok:false, error, code, retryable, hint, meta}` |
|
||||
| Show results to a user | `--md` / `-m` | GFM tables, task lists, structured Markdown |
|
||||
| Automation / scripting | `--agent` | Success: raw JSON data (no envelope); errors: `{ok:false,...}` object; no interactive prompts |
|
||||
|
||||
@@ -174,6 +183,8 @@ basecamp todos --agent --help
|
||||
|
||||
Walk the tree: start at `basecamp --agent --help` for top-level commands, then drill into any subcommand. Commands carry domain-specific agent hints (e.g., "`--assignee` filters the account-wide listing only; within a project, fetch all and filter client-side").
|
||||
|
||||
**Note:** a subcommand's `inherited_flags` is deliberately short — the CLI curates it down to `--account`, `--json`, `--md`, `--project`, `--quiet` (and drops `--project` where the command takes `<id|url>`). Every other global flag (`--jq`, `--agent`, `--styled`, `--verbose`, `--profile`, ...) is listed only at the root (`basecamp --agent --help`) but still applies on every subcommand (a command that cannot honor one refuses it with an explicit error — `version` rejects `--jq`); its absence from a subcommand's help does not mean it is unsupported.
|
||||
|
||||
### Pagination
|
||||
|
||||
```bash
|
||||
@@ -194,7 +205,7 @@ basecamp <cmd> --page 1 # First page only, no auto-pagination
|
||||
|
||||
## Quick Reference
|
||||
|
||||
> **Note:** Most queries require project scope (via `--in <project>` or `.basecamp/config.json`). Cross-project exceptions: `basecamp reports assigned`, `basecamp assignments`, `basecamp reports overdue`, `basecamp reports schedule`, `basecamp recordings <type>`, `basecamp notifications`, `basecamp gauges list`.
|
||||
> **Note:** Most queries require project scope (via `--in <project>` or `.basecamp/config.json`). Cross-project exceptions: `basecamp reports assigned`, `basecamp assignments`, `basecamp reports overdue`, `basecamp reports schedule`, `basecamp recordings <type>`, `basecamp notifications`, `basecamp gauges list`, `basecamp events poll`, `basecamp inbox`.
|
||||
>
|
||||
> Seven list commands also list account-wide: `basecamp todos list --all-projects --json`, and likewise `cards list`, `messages list`, `comments list`, `files list`, `forwards list`, and `checkins answers`.
|
||||
|
||||
@@ -215,6 +226,9 @@ basecamp <cmd> --page 1 # First page only, no auto-pagination
|
||||
| My bookmarks | `basecamp bookmarks list --json` |
|
||||
| Bookmark something | `basecamp bookmarks add <id-or-url> --json` |
|
||||
| Is it bookmarked? | `basecamp bookmarks check <id-or-url> --json` (always exits 0) |
|
||||
| Bubble a recording up | `basecamp bubble-up add <id-or-url> --json` |
|
||||
| Schedule a bubble-up | `basecamp bubble-up add <id-or-url> --at tomorrow --json` |
|
||||
| Pop a bubble-up | `basecamp bubble-up remove <id-or-url> --json` |
|
||||
| My unpublished drafts | `basecamp drafts list --json` |
|
||||
| Read my personal note | `basecamp notes show --json` |
|
||||
| Replace my personal note | `basecamp notes set "<content>" --json` |
|
||||
@@ -248,6 +262,8 @@ basecamp <cmd> --page 1 # First page only, no auto-pagination
|
||||
| Show + download | `basecamp todos show <id> --download-attachments --json` |
|
||||
| Stream attachment to stdout | `basecamp attachments download <id> --file <name> --out -` |
|
||||
| Change history for an item | `basecamp events <id\|url> --json` (when a card moved columns, when a todo was completed) |
|
||||
| Account-wide activity feed (resumable) | `basecamp events poll --since now --json` (then resume with `--position`) |
|
||||
| Items that addressed me (agents only) | `basecamp inbox --since now --json` |
|
||||
| Search | `basecamp search "query" --json` |
|
||||
| Parse URL | `basecamp url parse "<url>" --json` |
|
||||
| Upload file | `basecamp files uploads create <file> [--vault <folder_id>] --in <project> --json` |
|
||||
@@ -929,6 +945,60 @@ can tell you.
|
||||
|
||||
`--page` accepts only `1`; use `--all` to walk every page.
|
||||
|
||||
### Event feed (account-wide, resumable)
|
||||
|
||||
`basecamp events <id>` is one recording's history. The account-wide **event
|
||||
feed** is a different resource, and the way an agent hears about activity it
|
||||
did not cause:
|
||||
|
||||
```bash
|
||||
basecamp events poll --since now --json # Enter at the present
|
||||
basecamp events poll --position "$POSITION" --json # Resume from a held position
|
||||
basecamp events poll --since 0 --all --json # Replay served history
|
||||
basecamp inbox --since now --json # Addressed items (agents only)
|
||||
basecamp events ticket --json # Mint a live-stream ticket
|
||||
```
|
||||
|
||||
Each page is an envelope: `events` (or `items`), a durable `position`, and a
|
||||
`next` continuation URL while the current walk has more to serve. Persist
|
||||
`position` only after processing the page, then pass it back with
|
||||
`--position`. The response's `notice` spells the whole resume command out,
|
||||
filters included. `--all` walks `next` to the end of the current walk — it is
|
||||
not a live tail.
|
||||
|
||||
The feed is a notification lane, not an audit log:
|
||||
|
||||
- Deduplicate by event id — polls repeat what the live stream delivered, and
|
||||
an event can appear up to ~30 seconds after it happens.
|
||||
- Deduplicate inbox items by `addressing_id`, never by event id: one event
|
||||
addresses you once per reason and each reason is its own item.
|
||||
- Events are thin pointers. Refetch the recording (`basecamp show
|
||||
<recording_id>`) before acting on it.
|
||||
- An agent that acts on what it hears should pass `--exclude-performers self`,
|
||||
which drops its own performances without hiding other agents' activity.
|
||||
|
||||
The two lanes have different filter sets, and they are not interchangeable:
|
||||
|
||||
- `events poll`: `--types`, `--buckets`, `--creators`, `--performers`,
|
||||
`--exclude-performers`, `--actor-types`.
|
||||
- `inbox`: `--reasons`, `--types`, `--buckets`. The other four are not flags
|
||||
here.
|
||||
|
||||
Each takes a comma-separated list. These are the only narrowing available:
|
||||
both commands accept the global `--in <project>` flag but ignore it, because
|
||||
these are account endpoints. Narrow to a project with `--buckets`.
|
||||
|
||||
A position is bound to the filter set it was minted for, so a resume has to
|
||||
carry the same filters. Changing them exits `1` naming both filter digests,
|
||||
and the fix is to re-enter with `--since`. A position that is no longer
|
||||
servable exits `2`, and the hint carries the whole re-entry command, filters
|
||||
included.
|
||||
|
||||
`basecamp inbox` is served to agent principals only for now; other principals
|
||||
get exit `4`. `basecamp events ticket` redacts the ticket and its URL unless
|
||||
`--show-secret` is passed — both are bearers, so never log either, and mint a
|
||||
fresh one per connection attempt.
|
||||
|
||||
### Recordings (Cross-project)
|
||||
|
||||
Use `basecamp recordings <type>` for cross-project type browsing. **For assigned todos, prefer `basecamp reports assigned`** — recordings do not include assignee data and cannot be filtered by person.
|
||||
@@ -958,16 +1028,30 @@ basecamp recordings visibility <id> --hidden # Hide from clients
|
||||
### Templates
|
||||
|
||||
```bash
|
||||
basecamp templates --json # List templates
|
||||
basecamp templates show <id> --json # Template details
|
||||
basecamp templates create "Template Name" # Create empty template
|
||||
basecamp templates list --json # List project templates
|
||||
basecamp templates show <id> --json # Project template details
|
||||
basecamp templates create "Template Name" # Create empty project template
|
||||
basecamp templates update <id> --name "New Name"
|
||||
basecamp templates delete <id> # Trash template
|
||||
basecamp templates delete <id> # Trash project template
|
||||
basecamp templates construct <id> --name "New Project" # Create project (async)
|
||||
basecamp templates construction <template_id> <construction_id> # Check status
|
||||
basecamp templates construct <id> --name "New Project" --start-date 2026-09-01 # Anchor template dates to that week
|
||||
basecamp templates construction <template_id> <construction_id> # Check project status
|
||||
|
||||
basecamp templates library --json # List active to-do list templates
|
||||
basecamp templates copy <template_id> --in <project> # Start copying into To-dos
|
||||
basecamp templates copy-status <copy_id> # Check copy status
|
||||
```
|
||||
|
||||
**Construct returns construction_id - poll until status="completed" to get project.**
|
||||
**Asynchronous results:** `construct` returns a construction ID; poll `construction`
|
||||
until `status="completed"` to get the project. A template's dates are relative to its
|
||||
first week, and template weeks start on Sunday: `--start-date` (YYYY-MM-DD or natural,
|
||||
e.g. `next monday`) anchors them to the Sunday on or before that date; without it they
|
||||
anchor to the week of construction. `copy` returns a copy ID; poll
|
||||
`copy-status` through `pending` and `processing` until it is `completed` or `failed`.
|
||||
|
||||
A copy can report the people who need access to the destination project. Show those
|
||||
people to the user and rerun with `--confirm-adding-people` only after the user
|
||||
explicitly approves granting that access. Never add this flag automatically.
|
||||
|
||||
### Webhooks
|
||||
|
||||
@@ -1084,7 +1168,7 @@ success while changing nothing. If two steps on one card are prioritized, the
|
||||
listing shows the card once with a single `priority_recording_id` and the
|
||||
siblings are not separately addressable.
|
||||
|
||||
### Personal (bookmarks, drafts, notes)
|
||||
### Personal (bookmarks, bubble-up, drafts, notes)
|
||||
|
||||
Private to you, spanning every project — no `--in <project>`.
|
||||
|
||||
@@ -1093,11 +1177,21 @@ basecamp bookmarks list --json
|
||||
basecamp bookmarks add <id-or-url> --json
|
||||
basecamp bookmarks remove <id-or-url> --json
|
||||
basecamp bookmarks check <id-or-url> --json
|
||||
basecamp bubble-up add <id-or-url> --json
|
||||
basecamp bubble-up add <id-or-url> --at tomorrow --json
|
||||
basecamp bubble-up remove <id-or-url> --json
|
||||
basecamp drafts list --json
|
||||
basecamp notes show --json
|
||||
basecamp notes set "<content>" --json
|
||||
```
|
||||
|
||||
`bubble-up add`/`remove` resurface a recording in your readings (the BC5
|
||||
successor to "save"), addressed by id or pasted URL. `add` bubbles up now by
|
||||
default; `--at` schedules it — a keyword (`today`, `tomorrow`, `weekend`,
|
||||
`next_week`) or a calendar date (`YYYY-MM-DD`). Both verbs are idempotent. There is no
|
||||
per-recording status read (that GET is an unrenderable API gap); the full list
|
||||
is `basecamp notifications bubbleups`.
|
||||
|
||||
`bookmarks add` and `remove` are idempotent — re-adding returns the existing
|
||||
bookmark, removing an absent one still succeeds. `check` reports
|
||||
`{"bookmarked": true|false}` and **always exits 0**: both answers are successes,
|
||||
@@ -1162,7 +1256,7 @@ basecamp chat post "Hello!" --in <project>
|
||||
basecamp chat post "@Jane.Smith, check this" --in <project> # With @mention (auto text/html)
|
||||
basecamp chat line <line_id> --in <project> # Show line
|
||||
basecamp chat update <line_id> "edited content" --in <project> # Edit existing message in place
|
||||
basecamp chat delete <line_id> --in <project> --force # Delete line (permanent, not trashable)
|
||||
basecamp chat delete <line_id> --in <project> --force # Delete line (permanent, not trashable; --force required)
|
||||
```
|
||||
|
||||
### Pings (Direct Messages)
|
||||
@@ -1204,10 +1298,47 @@ basecamp people list --json # All people in account
|
||||
basecamp people list --project <project> --json # People on project
|
||||
basecamp me --json # Current user
|
||||
basecamp people show <id> --json # Person details
|
||||
basecamp people add <id> --project <project> # Add to project
|
||||
basecamp people remove <id> --project <project> # Remove from project
|
||||
basecamp people show me --json # Your own profile
|
||||
basecamp people update me --bio "..." --title "..." --json # Edit your own profile
|
||||
basecamp people out-of-office me --json # Your out-of-office status
|
||||
basecamp people out-of-office me --start 2026-09-14 --end 2026-09-18 --json # Set out-of-office
|
||||
basecamp people out-of-office me --clear --json # Clear out-of-office
|
||||
basecamp people add <id> --project <project> # Add a team member to a project
|
||||
basecamp people remove <id> --project <project> # Remove a team member from a project
|
||||
```
|
||||
|
||||
`people update me` edits your own profile (bio, title, name, email, location,
|
||||
time zone); pass a flag with an empty value to clear that field. `people
|
||||
out-of-office me` shows your away status, sets it with `--start`/`--end`
|
||||
(natural language or YYYY-MM-DD, end not before start), or clears it with
|
||||
`--clear`.
|
||||
|
||||
`people list` reports each person's `client` flag. `people add`/`remove` manage
|
||||
team members only — a client's id passed to them is dropped server-side, never
|
||||
cross-graded — so clients have their own verbs:
|
||||
|
||||
```bash
|
||||
basecamp people clients enable --in <project> # Turn client access on (do this first)
|
||||
basecamp people clients list --in <project> # Clients on the project
|
||||
basecamp people clients add <id|email|name> --in <project> # Grant an existing client user
|
||||
basecamp people clients invite annie@example.com --in <project> # Invite a new client by email
|
||||
basecamp people clients invite "Annie Bryan <annie@example.com>" --in <project> # ... with a name
|
||||
basecamp people clients invite - --in <project> # One invitee per line on stdin
|
||||
basecamp people clients remove <id|email|name> --in <project> # Revoke a client's access
|
||||
basecamp people clients disable --in <project> # Turn client access off (after removing every client)
|
||||
```
|
||||
|
||||
Enabling clients is a deliberate, separate step: it applies the project's
|
||||
default client visibility (timeline and most tools shared; card table,
|
||||
Campfire, and Doors private), so `add`/`invite` never enable implicitly and
|
||||
answer `forbidden` with an `enable` hint while clients are off. `invite` takes
|
||||
`--company` (applies to every invitee) and `--title` (one invitee only), and is
|
||||
all-or-nothing: a token that is not an address is refused locally as `usage`
|
||||
(2) naming each one, an address the server rejects exits `validation` (9)
|
||||
naming each rejected row, and a seat shortfall exits `limit_exceeded` (10) — in
|
||||
every case nobody was invited. `add`/`remove` report the ids the server did not grant or revoke
|
||||
(already on the project, or not a client user) in the notice.
|
||||
|
||||
### Search
|
||||
|
||||
```bash
|
||||
@@ -1304,7 +1435,7 @@ basecamp setup agents # Install skill + connect dete
|
||||
basecamp setup agents --json # Structured result envelope
|
||||
```
|
||||
`setup agents` installs the baseline skill and connects coding agents without
|
||||
prompting. Selection is driven by `BASECAMP_SETUP_AGENT` (`claude`, `codex`,
|
||||
prompting. Selection is driven by `BASECAMP_SETUP_AGENT` (`claude`, `codex`, `grok`,
|
||||
`all`, or `none`); unset auto-detects — one detected agent is connected, several
|
||||
leave the skill only and surface the per-agent `basecamp setup <id>` commands.
|
||||
|
||||
@@ -1312,11 +1443,59 @@ leave the skill only and surface the per-agent `basecamp setup <id>` commands.
|
||||
|
||||
**Authentication errors:**
|
||||
```bash
|
||||
basecamp auth status # Check auth
|
||||
basecamp auth status # Who you are logged in as, where, token expiry (no request made)
|
||||
basecamp auth status --check # Also ask the server whether the active token (BASECAMP_TOKEN, else the stored login) is accepted
|
||||
basecamp auth login # Re-authenticate
|
||||
basecamp auth login --scope full # Full access (the default; ignored by Launchpad)
|
||||
basecamp auth login --scope read # Read-only access (ignored by Launchpad)
|
||||
basecamp auth login --device-code # Headless authentication with manual browser instructions
|
||||
basecamp auth login --device-code # Print a link and one-time code to approve from any device, never opening a browser here (Launchpad has no device flow: paste the callback URL back instead)
|
||||
BASECAMP_NONINTERACTIVE=1 basecamp auth login --device-code # The only OAuth login that runs under BASECAMP_NONINTERACTIVE, and only where the server offers the device flow (Launchpad does not); browser and pasted-callback flows refuse — prefer --with-token
|
||||
basecamp auth login --with-token -P bot --account <id> # Import a personal access token from stdin (pipe it in)
|
||||
basecamp auth login --with-client-credentials --client-id <id> -P agent --account <id> # Authenticate as a Basecamp agent: client secret on stdin, self-token minted on demand (no refresh token)
|
||||
basecamp auth agent connect -P agent # Connect this computer to a Basecamp agent: approve it in a browser and its OAuth client is stored — nothing to paste
|
||||
basecamp connect setup -P agent --operator-profile <me> --serve <project-id> # Set up a local agent connector on a connected profile (run `auth agent connect` first): verifies trust, checks token, identity, scope, ticket mint and project reads, then writes connect.json
|
||||
basecamp connect -P agent # Run the connector in the foreground: hear the agent's events, admit what a trusted person asks, and hand the work to a local coding agent that replies as the agent
|
||||
basecamp connect -P agent --project <id> --shadow # Narrow it to one project, and watch without acting: an isolated state directory, nothing dispatched and nothing posted
|
||||
basecamp connect setup -P agent --worker codex # Run workers with Codex instead of Claude Code
|
||||
```
|
||||
|
||||
`basecamp connect` runs until it is stopped: it is not a command to call for an
|
||||
answer. Stdout is a wire of one JSON object per line (events seen, verdicts,
|
||||
dispatches — ids and states, never content) and the logs are on stderr, so read
|
||||
the lines rather than the log. SIGINT and SIGTERM cancel whatever workers are
|
||||
running, settle them, and exit 130 and 143. It runs on Linux only: the task
|
||||
token's hand-over onto a descriptor the next program inherits is sealed only
|
||||
there. It refuses a second connector for the same agent, and takes `--project`
|
||||
(repeatable) to hear and dispatch only those projects. Run it under a
|
||||
supervisor rather than from a session you will close.
|
||||
|
||||
A task runs in the directory the connector itself was started in, and the
|
||||
connector prepares nothing: no directory is associated with a project, and it
|
||||
makes no directory, no clone and no branch. Work that needs one of its own is
|
||||
the agent's to make, from its own skills and instructions.
|
||||
|
||||
**Before running ANY of the logins above, check `oauth_type`.** `basecamp auth
|
||||
status --json` reports it, and `agent` means the profile is a Basecamp agent: a
|
||||
principal with no person behind it, which authenticates with its OAuth client
|
||||
rather than a sign-in. `basecamp auth login` and `--with-token` would both store
|
||||
a PERSON's credential under that profile and silently replace the agent; its
|
||||
recovery is `--with-client-credentials` with the client secret piped in. The
|
||||
CLI's own `hint` on a failing agent credential already names that command with
|
||||
the client id filled in — prefer it verbatim, and follow it rather than
|
||||
choosing for yourself whenever `oauth_type` is absent.
|
||||
|
||||
A profile with no agent credential yet gets one from `basecamp auth agent
|
||||
connect -P <profile>`: it prints a link and a one-time code, and the person
|
||||
who opens it picks which Basecamp agent this computer acts as. The account
|
||||
comes from the agent they approve, so `--account` is only an assertion — a
|
||||
connection to an agent in another account is refused. It waits on a person
|
||||
at a browser, so it is not the headless path; `--with-client-credentials`
|
||||
still is.
|
||||
|
||||
```bash
|
||||
basecamp auth login --expect-identity <id> # Discard the login unless it authenticated as this identity
|
||||
basecamp auth revoke # Revoke the token with the server and forget it; refuses when it cannot revoke (auth logout forgets regardless)
|
||||
basecamp profile create <name> --account <id> --expect-identity <id> # Same assertion for a new profile
|
||||
```
|
||||
|
||||
**Network errors / localhost URLs:**
|
||||
@@ -1349,15 +1528,24 @@ the specific argument. Use this for elicitation:
|
||||
|
||||
```bash
|
||||
$ basecamp todos create --json
|
||||
{"ok": false, "error": "<content> required", "code": "usage",
|
||||
{"ok": false, "error": "<content> required", "code": "usage", "retryable": false,
|
||||
"hint": "Usage: basecamp todos create <content>"}
|
||||
|
||||
$ basecamp comments create 123 --json
|
||||
{"ok": false, "error": "<content> required", "code": "usage", ...}
|
||||
{"ok": false, "error": "<content> required", "code": "usage", "retryable": false, ...}
|
||||
```
|
||||
|
||||
The `error` field names the missing `<arg>` — use it to prompt the user for the specific value.
|
||||
|
||||
**Retryable errors (`retryable`):** every error envelope carries a boolean `retryable` —
|
||||
`true` when the CLI classified the failure transient (network, timeout, rate limit,
|
||||
circuit open, most 5xx/gateway responses — not all: 507 and some 500s are verdicts) and
|
||||
a retry can change the outcome, `false` for a verdict (usage, not found, auth, forbidden,
|
||||
validation, account limit) and for any error nothing classified. Key on it rather than
|
||||
on `code` or `error` when deciding whether to retry — `false` means no known reason a
|
||||
retry would help, not a guarantee of permanence; it is never present on a success
|
||||
envelope.
|
||||
|
||||
**URL malformed (curl exit 3):** Special characters in content. Use plain text or properly escaped HTML.
|
||||
|
||||
## Built-in jq Filtering
|
||||
@@ -1388,7 +1576,7 @@ basecamp people list --jq '[.data[] | {name: .name, email: .email_address}]'
|
||||
| 0 | OK | — |
|
||||
| 1 | Usage error | Check `basecamp <cmd> --help` |
|
||||
| 2 | Not found | Verify ID/URL exists |
|
||||
| 3 | Auth error | `basecamp auth login` |
|
||||
| 3 | Auth error | `basecamp auth login` — but check `oauth_type` first: an `agent` profile recovers with `--with-client-credentials`, and a plain login would replace it |
|
||||
| 4 | Forbidden | Check account/project permissions |
|
||||
| 5 | Rate limit | Wait and retry (resilience layer handles Retry-After automatically) |
|
||||
| 6 | Network error | Check connectivity, `basecamp doctor` |
|
||||
|
||||
+47
-12
@@ -11,12 +11,48 @@ Start by classifying how much process the request needs, then work
|
||||
through your path: understand the context, refine the idea, present a
|
||||
design, and get your human partner's approval.
|
||||
|
||||
## Establish Shared Understanding
|
||||
|
||||
The outcome of brainstorming is an understanding your human partner can
|
||||
recognize and correct, grounded in what they want to accomplish.
|
||||
|
||||
1. **Discover intent.** Use the request and available context to identify
|
||||
the intended outcome, who it is for, and what success looks like. When
|
||||
that information is missing, ask one focused question about purpose or
|
||||
intended use before proposing features or an approach. Knowing the app
|
||||
genre does not tell you why your partner wants it. Gathering missing
|
||||
requirements does not ask them to authorize the task again.
|
||||
2. **Write back your understanding.** Summarize the intended outcome,
|
||||
relevant constraints, and success criteria in a short note your partner
|
||||
can assess. Separate what they said from assumptions. Invite correction
|
||||
and incorporate their answer before treating this as the design brief.
|
||||
3. **Carry intent into the design.** Preserve the agreed understanding in
|
||||
the selected path's design artifact: the written spec for architectural
|
||||
work, or the in-chat design/probe for bounded work and spikes. Check
|
||||
proposed features and technical choices against that understanding.
|
||||
|
||||
When the request already supplies the purpose and constraints, reflect
|
||||
that understanding instead of asking the same questions again. Keep the
|
||||
note concise; its accuracy and the opportunity to correct it matter.
|
||||
|
||||
<HARD-GATE>
|
||||
Do NOT invoke any implementation skill, write any code, scaffold any
|
||||
project, or take any implementation action until you have told your
|
||||
human partner what you intend and they have approved it. This applies
|
||||
to EVERY task on EVERY path below — the ceremony scales with the task;
|
||||
the approval gate never does.
|
||||
Before taking any implementation action, including invoking an
|
||||
implementation skill, writing product code, scaffolding, installing
|
||||
product dependencies, or creating an external project, complete the
|
||||
selected path's prerequisites:
|
||||
|
||||
- Spike: the human partner approves the question and probe.
|
||||
- Bounded: the human partner approves the short in-chat design.
|
||||
- Architectural: the human partner reviews and approves the written spec,
|
||||
then reviews the written implementation plan and selects its execution
|
||||
method. Conversational design approval only permits writing the spec;
|
||||
written-spec approval only permits invoking writing-plans.
|
||||
|
||||
A reply approves the stage actually presented. Approval of an idea or
|
||||
feature scope does not approve artifacts that do not exist yet. Resume
|
||||
at the earliest incomplete stage; do not turn one approval into permission
|
||||
to skip the rest of the selected path. Read-only project exploration is
|
||||
allowed while those prerequisites remain incomplete.
|
||||
</HARD-GATE>
|
||||
|
||||
## Three Paths
|
||||
@@ -53,18 +89,17 @@ stop, say so, and step up. Nothing downgrades mid-task.
|
||||
|
||||
## Anti-Pattern: "Too Simple To Need Approval"
|
||||
|
||||
Every path ends with your human partner approving your intent before
|
||||
implementation. A todo list, a single-function utility, a config
|
||||
change — the design may be two sentences in chat, but you MUST present
|
||||
it and get approval. "Simple" tasks are where unexamined assumptions
|
||||
cause the most wasted work. What scales with simplicity is the
|
||||
artifact, never the approval.
|
||||
Every path ends with your human partner approving the required design
|
||||
before implementation. A bounded change may need only two sentences in
|
||||
chat. A new todo-list project is architectural and requires the written
|
||||
spec and planning handoffs. Scale the artifact to the selected path;
|
||||
complete that path's reviews before implementation.
|
||||
|
||||
## Red Flags
|
||||
|
||||
| Thought | Reality |
|
||||
|---------|---------|
|
||||
| "This is too simple to need a design" | Simple means a short design, not no design. Two sentences in chat, then approval. |
|
||||
| "This is too simple to need a design" | Follow the selected path: a bounded change gets a short chat design; an architectural change gets the written spec and planning handoffs. |
|
||||
| "I'll call it bounded and skip the spec" | Reaching for a label to skip work IS the doubt — take the heavier path. |
|
||||
| "It's bounded and the design is obvious — I'll start while they read it" | The gate is the approval, not the design's length. Present, then stop until you hear yes. |
|
||||
| "I understand this kind of app, so it's bounded" | Bounded measures the repo, not your familiarity. A new project has no existing flow — it is architectural. |
|
||||
|
||||
@@ -35,7 +35,7 @@ The server watches a directory for HTML files and serves the newest one to the b
|
||||
```bash
|
||||
# Start AFTER the user approves the companion. --open auto-opens their browser on
|
||||
# the first screen; --project-dir persists mockups and enables same-port restart.
|
||||
scripts/start-server.sh --project-dir /path/to/project --open
|
||||
bash scripts/start-server.sh --project-dir /path/to/project --open
|
||||
|
||||
# Returns: {"type":"server-started","port":52341,
|
||||
# "url":"http://localhost:52341/?key=ab12…",
|
||||
@@ -62,7 +62,7 @@ without repeating it.
|
||||
**Claude Code:**
|
||||
```bash
|
||||
# Default mode works — the script backgrounds the server itself.
|
||||
scripts/start-server.sh --project-dir /path/to/project --open
|
||||
bash scripts/start-server.sh --project-dir /path/to/project --open
|
||||
```
|
||||
|
||||
On Windows, the script auto-detects and switches to foreground mode (which blocks the tool call). Use `run_in_background: true` on the Bash tool call so the server survives across conversation turns, then read `$STATE_DIR/server-info` on the next turn to get the URL and port.
|
||||
@@ -71,14 +71,14 @@ On Windows, the script auto-detects and switches to foreground mode (which block
|
||||
```bash
|
||||
# Codex reaps background processes. The script auto-detects CODEX_CI and
|
||||
# switches to foreground mode. Run it normally — no extra flags needed.
|
||||
scripts/start-server.sh --project-dir /path/to/project --open
|
||||
bash scripts/start-server.sh --project-dir /path/to/project --open
|
||||
```
|
||||
|
||||
**Gemini CLI:**
|
||||
```bash
|
||||
# Use --foreground and set is_background: true on your shell tool call
|
||||
# so the process survives across turns
|
||||
scripts/start-server.sh --project-dir /path/to/project --open --foreground
|
||||
bash scripts/start-server.sh --project-dir /path/to/project --open --foreground
|
||||
```
|
||||
|
||||
**Copilot CLI:**
|
||||
@@ -95,7 +95,7 @@ bash scripts/start-server.sh --project-dir /path/to/project --open --foreground
|
||||
If the URL is unreachable from your browser (common in remote/containerized setups), bind a non-loopback host:
|
||||
|
||||
```bash
|
||||
scripts/start-server.sh \
|
||||
bash scripts/start-server.sh \
|
||||
--project-dir /path/to/project \
|
||||
--host 0.0.0.0 \
|
||||
--url-host localhost
|
||||
@@ -288,7 +288,7 @@ If `$STATE_DIR/events` doesn't exist, the user didn't interact with the browser
|
||||
## Cleaning Up
|
||||
|
||||
```bash
|
||||
scripts/stop-server.sh $SESSION_DIR
|
||||
bash scripts/stop-server.sh $SESSION_DIR
|
||||
```
|
||||
|
||||
If the session used `--project-dir`, mockup files persist in `.superpowers/brainstorm/` for later reference. Only `/tmp` sessions get deleted on stop.
|
||||
|
||||
Reference in New Issue
Block a user