@clipboard-health/groundcrew 4.10.3 → 4.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,10 +20,6 @@
20
20
  <a href="./static/demo.tape"><img alt="Groundcrew dispatching tickets into tmux panes with coding agents running in parallel" src="./static/demo.gif" width="800"></a>
21
21
  </p>
22
22
 
23
- <p align="center">
24
- VHS source: <a href="./static/demo.tape">static/demo.tape</a>.
25
- </p>
26
-
27
23
  Groundcrew watches assigned tickets, creates isolated worktrees, launches agent CLIs in dedicated terminals, and leaves each ticket's work on its own PR-ready branch. For the backstory, read _[Tickets to pull requests while you sleep](https://www.clipboardworks.com/resources/blog/tickets-to-pull-requests-while-you-sleep)_.
28
24
 
29
25
  ## Why
@@ -43,13 +39,13 @@ Groundcrew watches assigned tickets, creates isolated worktrees, launches agent
43
39
  - **git:** e.g., `brew install git`, `apt install git`.
44
40
  - **A terminal multiplexer:** [tmux](https://github.com/tmux/tmux/wiki/Installing) (cross-platform) or [cmux](https://cmux.com/) (macOS).
45
41
  - **An agent CLI:** [Claude Code](https://code.claude.com/docs/en/quickstart) and/or [Codex](https://developers.openai.com/codex/quickstart?setup=cli).
46
- - **A sandbox runner:** [Docker Sandboxes](https://docs.docker.com/sandboxes/) (cross-platform) or [Safehouse](https://agent-safehouse.dev/) on macOS. Skip only with `--runner none`.
42
+ - **A sandbox runner:** [Docker Sandboxes](https://docs.docker.com/ai/sandboxes/) (cross-platform) or [Safehouse](https://agent-safehouse.dev/) on macOS. Skip only with `--runner none`.
47
43
 
48
44
  ## Quickstart
49
45
 
50
46
  ```bash
51
47
  # 1. Install groundcrew.
52
- npm install -g @clipboard-health/groundcrew
48
+ npm install -g @clipboard-health/groundcrew@latest
53
49
 
54
50
  # 2. Scaffold a global config. Agents are sandboxed by default
55
51
  # (Safehouse/Docker Sandboxes); add --runner none to run unsandboxed on the host.
@@ -57,10 +53,13 @@ crew init --global --project-dir ~/dev --repo OWNER/REPO --model claude
57
53
 
58
54
  # 3. Run the clone commands printed by `crew init`.
59
55
 
60
- # 4. Using Linear? Export your API key. (Jira and other trackers: see Ticket Pickup.)
56
+ # 4. Set the clearance egress proxy allowlist.
57
+ export CLEARANCE_ALLOW_HOSTS_FILES="$(npm root -g)/@clipboard-health/groundcrew/clearance-allow-hosts"
58
+
59
+ # 5. Using Linear? Export your API key. (Jira and other trackers: see Ticket Pickup.)
61
60
  export GROUNDCREW_LINEAR_API_KEY="lin_api_..."
62
61
 
63
- # 5. Verify setup, then dispatch.
62
+ # 6. Verify setup, then dispatch.
64
63
  crew doctor
65
64
  crew run --watch
66
65
  ```
@@ -81,6 +80,12 @@ Groundcrew scans `workspace.knownRepositories` to infer which repo a ticket belo
81
80
 
82
81
  A ticket blocked by non-terminal blockers is skipped until those blockers are done.
83
82
 
83
+ ### The ticket description is the prompt
84
+
85
+ Groundcrew sends each agent a generic unattended-execution prompt plus the ticket title and description. The prompt says how to work: read the repo instructions, make the smallest sensible change, verify it, and produce the requested output. The ticket description says what to do.
86
+
87
+ Write tickets as complete agent instructions: the goal, the context and constraints, links to logs or screenshots, how to verify, and the output you want. A vague ticket gets a vague PR.
88
+
84
89
  ## Commands
85
90
 
86
91
  ```bash
@@ -23,6 +23,8 @@ api.slack.com
23
23
  app.incident.io
24
24
  developers.notion.com
25
25
  linear.app
26
+ mcp-proxy.anthropic.com
27
+ mcp.datadoghq.com
26
28
  mcp.incident.io
27
29
  mcp.linear.app
28
30
  mcp.notion.com
@@ -88,5 +90,6 @@ mise-versions.jdx.dev
88
90
  nx.dev
89
91
  playwright.azureedge.net
90
92
  registry.terraform.io
93
+ releases.hashicorp.com
91
94
  sourcegraph.com
92
95
  vitest.dev
@@ -244,7 +244,7 @@ function localCapabilityCheck(host, resolved) {
244
244
  required: false,
245
245
  hint: ok
246
246
  ? "ready"
247
- : "sdx runner requires `sbx` (Docker Sandboxes) on PATH (install from https://docs.docker.com/sandboxes/)",
247
+ : "sdx runner requires `sbx` (Docker Sandboxes) on PATH (install from https://docs.docker.com/ai/sandboxes/)",
248
248
  };
249
249
  }
250
250
  // resolved === "none"
@@ -178,7 +178,7 @@ function renderWorkspaceContinuationInstruction(accessHint) {
178
178
  if (accessHint === undefined) {
179
179
  return "";
180
180
  }
181
- return `7. Include this workspace continuation note in the PR body: Workspace attach: \`${accessHint.command}\`.`;
181
+ return `Include this workspace continuation note in the output: Workspace attach: \`${accessHint.command}\`.`;
182
182
  }
183
183
  function recordRunStateBestEffort(arguments_) {
184
184
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAMrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;AAEpE,MAAM,WAAW,YAAY;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5D,eAAO,MAAM,uBAAuB,EAAE,SAAS,oBAAoB,EAIzD,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;AAEvD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,MAAM,CAAC;AAEtD,eAAO,MAAM,qBAAqB,EAAE,SAAS,kBAAkB,EAKrD,CAAC;AAEX;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,+CAA+C;IAC/C,KAAK,EAAE,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E = [
72
72
  "`disabled: true` is no longer supported; remove disabled model entries instead.",
73
73
  ].join("\n");
74
74
  const DEFAULT_PROMPT_INITIAL = [
75
- "You are working on Linear ticket {{ticket}} ({{title}}) in the {{worktree}} worktree subdirectory.",
75
+ "You are working on ticket {{ticket}} ({{title}}) in the {{worktree}} worktree subdirectory.",
76
76
  "",
77
77
  "Ticket description:",
78
78
  "",
@@ -80,19 +80,15 @@ const DEFAULT_PROMPT_INITIAL = [
80
80
  "",
81
81
  "## Operating mode",
82
82
  "",
83
- "There is no human watching this session. Do not stop to ask clarifying questions. When the ticket is ambiguous or incomplete, choose the simplest reasonable interpretation consistent with the ticket and the codebase, then document that choice in the PR description.",
83
+ "There is no human watching this session. Do not stop to ask clarifying questions. When the ticket is ambiguous or incomplete, choose the simplest reasonable interpretation consistent with the ticket and the codebase, then document that choice in the output.",
84
+ "{{workspaceContinuationInstruction}}",
84
85
  "",
85
86
  "## Workflow",
86
87
  "",
87
- "1. Inspect the repository instructions and existing patterns before editing.",
88
+ "1. Inspect the repo instructions and existing patterns before edits.",
88
89
  "2. Implement the smallest sensible change that completes the ticket.",
89
- "3. Run the repository's documented verification command. If no documented verification exists, run the smallest relevant test suite you can find. Fix failures you introduced before continuing.",
90
- "4. Review your own diff before stopping. Look for bugs, regressions, missing tests, security issues, and convention violations, then fix any issues you find.",
91
- "5. If this repository uses GitHub and the `gh` CLI is available and authenticated, open a pull request. If you cannot open one, leave the branch ready and record the blocker.",
92
- "6. Include `Closes {{ticket}}` in the PR description.",
93
- "{{workspaceContinuationInstruction}}",
94
- "",
95
- "Stop after the branch is ready or the PR is open.",
90
+ "3. Run the repo's documented verification command. If no documented command exists, run the smallest relevant test suite you can find and fix failures you introduced before continuing.",
91
+ "4. Follow the ticket description for output. If no output instructions exist, open a PR with `Closes {{ticket}}` in the description. If you cannot open one, leave the branch ready and record the blocker.",
96
92
  ].join("\n");
97
93
  const ALLOWED_PROMPT_PLACEHOLDERS = new Set([
98
94
  "{{ticket}}",
@@ -42,7 +42,7 @@ export function assertLocalRunnerRequirements(host, runner) {
42
42
  throw new Error("Local groundcrew runs with the sdx runner require macOS or Linux.");
43
43
  }
44
44
  if (!host.hasSbx) {
45
- throw new Error("Local groundcrew runs with the sdx runner require `sbx` (Docker Sandboxes) on PATH. Install from https://docs.docker.com/sandboxes/ and retry.");
45
+ throw new Error("Local groundcrew runs with the sdx runner require `sbx` (Docker Sandboxes) on PATH. Install from https://docs.docker.com/ai/sandboxes/ and retry.");
46
46
  }
47
47
  return;
48
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/lib/util.ts"],"names":[],"mappings":"AAIA,wBAAsB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAoB3E;AAED,wBAAgB,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAIlD;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAGhD;AAQD,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAE/C;AAED,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAWD,wBAAgB,MAAM,IAAI,MAAM,CAE/B;AAED,wBAAgB,QAAQ,IAAI,MAAM,CAEjC;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7C;AAQD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAE7D;AAED,wBAAsB,uBAAuB,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAOxF;AAuBD,iFAAiF;AACjF,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI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AM,CAcnD"}
package/dist/lib/util.js CHANGED
@@ -91,7 +91,14 @@ function appendLogLine(line) {
91
91
  }
92
92
  }
93
93
  function timestamped(message) {
94
- const timestamp = new Date().toLocaleTimeString();
94
+ // 24-hour, zero-padded fields so stacked log lines align on the colons
95
+ // (e.g. `13:00:16`, not `1:00:16 PM`).
96
+ const timestamp = new Date().toLocaleTimeString(undefined, {
97
+ hour12: false,
98
+ hour: "2-digit",
99
+ minute: "2-digit",
100
+ second: "2-digit",
101
+ });
95
102
  return { plain: `[${timestamp}] ${message}`, timestamp };
96
103
  }
97
104
  /** Important tier: always on the console (dimmed timestamp) and the log file. */
@@ -91,6 +91,8 @@ Rules:
91
91
 
92
92
  Groundcrew ships one model-agnostic unattended prompt by default. It tells the agent to make reasonable assumptions, follow repository instructions, run documented verification, review its diff, open a PR when GitHub/`gh` is available, and include a workspace continuation hint when known.
93
93
 
94
+ This prompt describes how the agent works, not what it does. The task is the ticket description, which groundcrew passes through unchanged. Keep source-specific instructions, acceptance criteria, links, and output requirements in the ticket body. Override `prompts.initial` only to change the execution contract for every dispatched ticket — team-wide review rules, required verification, local tool conventions — not to encode behavior for a single ticket type.
95
+
94
96
  For a personal workflow, keep the prompt next to your local config and load it with `readFileSync`:
95
97
 
96
98
  ```ts
@@ -145,7 +147,7 @@ and hook contract.
145
147
  | `models.definitions.<name>.sandbox` | optional | Docker Sandboxes binding for the model. Required at launch when `local.runner` resolves to `sdx`. Field: `agent` (required sbx agent name). Groundcrew assumes the `groundcrew-<agent>` sandbox already exists. |
146
148
  | `models.definitions.<name>.preLaunch` | optional | Host-only shell snippet run before the agent exec and outside Safehouse/sdx. Exports survive into the launch shell; under the default `safehouse` runner they are only forwarded to the agent when listed via `preLaunchEnv` or when `cmd` includes its own `safehouse --env-pass=NAMES`. `{{worktree}}` is substituted. A non-zero exit aborts launch. Not supported when `local.runner` resolves to `sdx` in v1. |
147
149
  | `models.definitions.<name>.preLaunchEnv` | optional | Companion to `preLaunch`: list of env var names to append to groundcrew's `safehouse-clearance` `--env-pass=` flag, so `preLaunch` exports reach the agent without overriding `cmd` and losing the project's egress allowlist. Each entry must match `[A-Za-z_][A-Za-z0-9_]*`. Under `runner: "none"` exports already inherit and `preLaunchEnv` is a no-op. An empty array is a uniform no-op in every runner; a non-empty list is rejected when `cmd` already starts with `safehouse` or when `runner` resolves to `sdx`. |
148
- | `prompts.initial` | unattended template | First message sent to the agent. Placeholders: `{{ticket}}`, `{{worktree}}`, `{{title}}`, `{{description}}`. Override this from `crew.config.ts` for team-specific statuses, tools, plugins, or review loops. |
150
+ | `prompts.initial` | unattended template | First message sent to the agent: the execution wrapper around each ticket. The ticket description is the task-specific prompt. Placeholders: `{{ticket}}`, `{{worktree}}`, `{{title}}`, `{{description}}`. Override only to change the execution contract for every ticket, such as team-wide review rules or tool conventions. |
149
151
  | `workspaceKind` | `"auto"` | Terminal session manager. `"auto"` picks `cmux` when on PATH, else `tmux`. Set to `"cmux"` or `"tmux"` to fail loudly when the chosen backend is missing. |
150
152
  | `local.runner` | `"auto"` | Local isolation backend. `"auto"` uses `safehouse` on macOS and `sdx` on Linux/WSL. Explicit: `"safehouse"`, `"sdx"`, `"none"`. `"none"` is never picked implicitly. |
151
153
  | `logging.file` | XDG state path | Append-mode log file. `log()` / `logEvent()` tee here in addition to stdout. Defaults to `${XDG_STATE_HOME:-$HOME/.local/state}/groundcrew/groundcrew.log`. |
@@ -43,3 +43,29 @@ export default {
43
43
  ```
44
44
 
45
45
  Allowed `status` values are `todo`, `in-progress`, `in-review`, `done`, and `other`. Use `null` for `repository` or `model` when a ticket should not be groundcrew-eligible. `hasMoreBlockers` is optional and defaults to `false`; `sourceRef` is opaque data that groundcrew passes back to your writeback command.
46
+
47
+ ## The `description` is the agent's prompt
48
+
49
+ Groundcrew wraps each issue's `description` in its generic unattended-execution prompt and hands it to the agent as the task. It does not pick a different prompt per source or ticket type. Specialized behavior belongs in the `description` your adapter emits, not in groundcrew.
50
+
51
+ So the adapter classifies, enriches, dedupes, and builds the description; groundcrew runs the result. A Datadog flaky-test source emits a description that says how to classify the flake, where the logs are, and what counts as success. A GitHub CI-failure source emits the PR link, the failing workflow, the logs, and whether to open a PR or leave a comment.
52
+
53
+ Example `description` for a CI-failure source:
54
+
55
+ ```text
56
+ Investigate the failed CI run for this pull request.
57
+
58
+ Repository: your-org/your-repo
59
+ Pull request: https://github.com/your-org/your-repo/pull/123
60
+ Failing workflow: backend-tests
61
+ Logs: https://...
62
+
63
+ Goal:
64
+ - Decide whether this is a real regression, a flaky test, or an infra issue.
65
+ - If it is a real regression, make the smallest fix.
66
+ - If it is flaky, follow the repo's flaky-test triage pattern.
67
+ - If no code change is right, record that conclusion.
68
+
69
+ Output:
70
+ - Open a PR if a code change is needed; otherwise leave the branch clean and record the conclusion.
71
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipboard-health/groundcrew",
3
- "version": "4.10.3",
3
+ "version": "4.10.5",
4
4
  "description": "Linear-driven orchestrator that launches AI coding agents in git worktrees, with workspace lifecycle and usage tracking.",
5
5
  "keywords": [
6
6
  "agent",