@devtune/agentpicks 0.5.1 → 0.6.0

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
@@ -28,7 +28,7 @@ A kept run uploads once its setup is pushed with the same `from`, add request an
28
28
 
29
29
  - Docker, running. Each run uses a fresh container with 2 CPUs and 4 GB of memory, needs 20 GB free on Docker's disk and may write up to 15 GB there. The image is built for your machine's own architecture, x86_64 or arm64, so nothing is emulated.
30
30
  - Node.js 20 or later.
31
- - A coding agent installed and signed in: Claude Code, Codex, OpenCode or Pi.
31
+ - A coding agent installed and signed in: Claude Code, Codex, OpenCode, Pi or the Antigravity CLI.
32
32
  - To upload, a DevTune sign-in or project API key with the Agent Picks Run scope, on an Agent Picks Local Runner, Cloud or Enterprise plan; Visibility too for a linked setup file, a DevTune setup's name or a category, and Actions Write for a category the project has no copy of yet. See [Upload](#upload). `--no-upload` needs neither.
33
33
 
34
34
  ## Run
@@ -45,8 +45,8 @@ agentpicks run --category error-tracking --repo .
45
45
  | `--repo` | Test your repository instead of a starter. See [Your repository](#your-repository). |
46
46
  | `--ref` | With `--repo`, the commit, tag or branch to test. Default `HEAD`. |
47
47
  | `--runs` | How many runs, one after another. Default 1. |
48
- | `--agent` | `claude-code`, `codex`, `opencode` or `pi`. Required when several are installed. |
49
- | `--model` | The model to ask for. OpenCode and Pi take `anthropic/<model>` or `openai/<model>`. |
48
+ | `--agent` | `claude-code`, `codex`, `opencode`, `pi` or `antigravity`. Required when several are installed. |
49
+ | `--model` | The model to ask for. OpenCode and Pi take `anthropic/<model>` or `openai/<model>`. Without it, the Antigravity CLI runs its default model. |
50
50
  | `--out` | Where bundles go. Default `./agentpicks-runs`. |
51
51
  | `--no-upload` | Keep bundles on this machine only. Send them later with `agentpicks upload`; a custom setup's once `agentpicks push` saves it (see [Setups](#setups)). `AGENTPICKS_NO_UPLOAD`, set to anything, does the same for every run. |
52
52
  | `--only use` | With a setup file, ask its use request instead of its add request, and run its success check. See [Use your tool](#use-your-tool). |
@@ -81,7 +81,7 @@ A repository with none of these installs nothing. `package.json`, `pyproject.tom
81
81
 
82
82
  ### The agent
83
83
 
84
- `agentpicks` finds the agent on your `PATH`, reads its version and the model its own config sets, and installs that same version in the container. `--agent` and `--model` override what it finds. Claude Code runs with its early stop: 60 seconds after the agent installs or wires in a tool of the category, it is stopped.
84
+ `agentpicks` finds the agent on your `PATH`, reads its version and the model its own config sets, and installs that same version in the container, except the Antigravity CLI, which runs its pinned release on its own default model. `--agent` and `--model` override what it finds. Claude Code runs with its early stop: 60 seconds after the agent installs or wires in a tool of the category, it is stopped.
85
85
 
86
86
  ### Credentials
87
87
 
@@ -92,8 +92,11 @@ Before the first run, `agentpicks` prints what it passes and copies.
92
92
  | Claude Code | `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_API_KEY` or `CLAUDE_CODE_OAUTH_TOKEN`, with `ANTHROPIC_BASE_URL`; also read from the `env` block of Claude Code's `settings.json` | On Linux, the sign-in in `~/.claude/.credentials.json` |
93
93
  | Codex | `OPENAI_API_KEY` or `CODEX_API_KEY` | The sign-in in `~/.codex/auth.json` |
94
94
  | OpenCode, Pi | `ANTHROPIC_API_KEY` or `OPENAI_API_KEY`, for the model's provider | Nothing |
95
+ | Antigravity CLI | `GEMINI_API_KEY`, with `GOOGLE_GEMINI_BASE_URL` | Nothing |
95
96
 
96
- Set a custom `ANTHROPIC_BASE_URL` to an HTTP or HTTPS address the sandbox can reach. Use an IP address rather than a name only your network resolves; `localhost` points to the sandbox itself.
97
+ The Antigravity CLI runs the release DevTune's hosted tests pin, whichever version this machine has, and never its Google sign-in.
98
+
99
+ Set a custom `ANTHROPIC_BASE_URL` or `GOOGLE_GEMINI_BASE_URL` to an HTTP or HTTPS address the sandbox can reach. Use an IP address rather than a name only your network resolves; `localhost` points to the sandbox itself.
97
100
 
98
101
  A copied sign-in leaves out its refresh token, so the container can't renew it and so can't sign this machine out. The access token has to last the run: a sign-in that expires within 40 minutes is refused until you renew it by running the agent here. Copies are deleted with the container.
99
102
 
@@ -130,6 +133,7 @@ A `--repo` run needs the repository to have a remote that `agentpicks` records (
130
133
  ```sh
131
134
  agentpicks results
132
135
  agentpicks results ./agentpicks-runs ./ci-runs --json
136
+ agentpicks results --markdown > results.md
133
137
  ```
134
138
 
135
139
  `agentpicks results` prints a row for each run in `./agentpicks-runs`, or the directories named: its run id, setup or category, agent, model and pick, then how many runs in each setup picked each tool. With a `use` run among them, a CHECK column shows each use run's success check, and why one didn't pass follows. The pick is read from the bundle with the early-stop patterns the run recorded, in the order the early stop checks them: the packages the agent added that the patterns name, else the first added line of code they match, else a config file the agent created that they match. The pick shows the package names, the code or the file, not a tool name. A run with no pick shows `none`. A run shows `Unmeasured`, with the reason printed under the counts, when:
@@ -139,7 +143,7 @@ agentpicks results ./agentpicks-runs ./ci-runs --json
139
143
  - the early stop saw a pick during the run that the final files no longer show by the same check: a package for an install, or code or a config file for code;
140
144
  - no check found a pick, and the setup measures a catalogue tool its early stop doesn't hold (one it names by key, or one its DevTune setup measures beside your tool and competitors), whose signals only DevTune has.
141
145
 
142
- `--json` prints the rows as JSON. A directory with no bundle in it exits 1.
146
+ `--json` prints the rows as JSON. `--markdown` prints the table, counts and reasons as GitHub Markdown, to paste into a pull request or an issue; the GitHub Action writes it to the job summary. Bundle text in it is escaped, so it shows as written. A directory with no bundle in it exits 1.
143
147
 
144
148
  What an agent said it picked, and rates across runs, come from DevTune's analysis of an uploaded run.
145
149
 
@@ -230,7 +234,7 @@ runs: 3
230
234
  | `signals` | How a tool is recognised: `packages` by `npm`, `pypi` or `gem` (a name ending in `*` matches every package that starts with the text before the `*`, and one ending in `/` every package under that scope or path, so `@acme/` matches `@acme/flags`), `configNames` (environment variable names or API hosts, not starting with `-`), and `importPatterns`, `configFiles`, `configPatterns`, `commandPatterns`, `selfHosted` (patterns of up to 200 characters that RE2 compiles), `aliases`, `brandDomains`, `frameworkBuiltIn`, `yieldsTo` and `receivesFrom`. A tool can give only `aliases` and `brandDomains`: DevTune recognizes it when an agent names it as its pick, and the early stop doesn't watch for it. Tools can't yield to each other in a loop. |
231
235
  | `stacks` | Starter apps to test in, as `--stack` takes them, each once. A setup without `from` can't use `nextjs-github-actions`, `fastapi-aws` or `rails-own-servers-eu`, which run in some categories only or carry a deploy context. |
232
236
  | `repo` | Your repository, in place of `stacks`: a path relative to the repository root, such as `.`, or `path` and `ref`. |
233
- | `agents` | `claude-code`, `codex`, `opencode` or `pi`, each once and installed on the machine that runs it. Without `agents`, the one agent installed runs. |
237
+ | `agents` | `claude-code`, `codex`, `opencode`, `pi` or `antigravity`, each once and installed on the machine that runs it. Without `agents`, the one agent installed runs. |
234
238
  | `runs` | Runs per agent and stack. Default 1. |
235
239
  | `id` | The DevTune setup the file is linked to. `pull` and `push` write it. |
236
240
  | `synced` | What the file and its DevTune setup held when they last matched: `setup`, the setup's digest, and `file`, the file's. `pull` and `push` write it; don't edit it. |
@@ -321,7 +325,7 @@ jobs:
321
325
  steps:
322
326
  - uses: actions/checkout@v5
323
327
  - run: npm install -g @anthropic-ai/claude-code@2.1.323
324
- - uses: devtunehq/agentpicks@v0.5.1
328
+ - uses: devtunehq/agentpicks@v0.6.0
325
329
  with:
326
330
  setup: agentpicks/error-tracking.yaml
327
331
  agent: claude-code
@@ -335,7 +339,7 @@ jobs:
335
339
 
336
340
  Use a Linux runner: `ubuntu-latest` has Docker and Node.js 20 or later. Without Docker, `run` refuses; without Node.js 20 or later, the action does. The action uses the runner's Node.js and doesn't change it for later steps.
337
341
 
338
- Pin a release tag, such as `v0.5.1`. The action runs the `@devtune/agentpicks` version in the `package.json` of its ref, so a tag runs the same CLI every time. A branch moves to each new version when the mirror syncs, and fails while that version isn't on npm.
342
+ Pin a release tag, such as `v0.6.0`. The action runs the `@devtune/agentpicks` version in the `package.json` of its ref, so a tag runs the same CLI every time. A branch moves to each new version when the mirror syncs, and fails while that version isn't on npm.
339
343
 
340
344
  | Input | Passed as |
341
345
  |---|---|
@@ -353,7 +357,7 @@ Pin a release tag, such as `v0.5.1`. The action runs the `@devtune/agentpicks` v
353
357
  | `devtune-project-id` | `DEVTUNE_PROJECT_ID` |
354
358
  | `devtune-api-base-url` | `DEVTUNE_API_BASE_URL` |
355
359
 
356
- The DevTune values reach the CLI only through those environment variables, never its command line, and neither the action nor the CLI prints the key. Set `devtune-api-key` and `devtune-project-id` together: with one set, all three DevTune values come from the inputs, and the action refuses to upload when the other is empty, which is how a missing or misnamed secret shows up. With both empty, the action uses the `DEVTUNE_*` variables set on the step or job, and ignores `devtune-api-base-url`. The `bundle-dir` output is the absolute path of `out`, which holds one bundle per completed run; with `no-upload: true`, keep them with `actions/upload-artifact`.
360
+ The DevTune values reach the CLI only through those environment variables, never its command line, and neither the action nor the CLI prints the key. Set `devtune-api-key` and `devtune-project-id` together: with one set, all three DevTune values come from the inputs, and the action refuses to upload when the other is empty, which is how a missing or misnamed secret shows up. With both empty, the action uses the `DEVTUNE_*` variables set on the step or job, and ignores `devtune-api-base-url`. The `bundle-dir` output is the absolute path of `out`, which holds one bundle per completed run; with `no-upload: true`, keep them with `actions/upload-artifact`. After the run, even a failed one, the action appends `agentpicks results --markdown` for every bundle in `out` to the job summary, so each run's pick shows on the job's summary page; give two runs of the action in one job their own `out` to summarise them apart.
357
361
 
358
362
  **The API key.** Create a project API key under **API Keys** in DevTune with these scopes, and add it as the `DEVTUNE_API_KEY` secret. `DEVTUNE_PROJECT_ID` isn't secret, so it can be a variable.
359
363
 
@@ -365,9 +369,9 @@ The DevTune values reach the CLI only through those environment variables, never
365
369
 
366
370
  A linked file's run is refused before Docker starts when the file has changes not pushed, or its DevTune setup changed since the file last saw it: `push` or `pull` on your own machine after `agentpicks login`, which needs Visibility and Actions Write, then commit the file. The CI key needs no login, and Actions Write only for a `category` the project has no copy of. See [DevTune setups](#devtune-setups).
367
371
 
368
- **The agent's key.** Pass it through `env:` under a name from [Credentials](#credentials): `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_API_KEY` or `CLAUDE_CODE_OAUTH_TOKEN` for Claude Code, `OPENAI_API_KEY` or `CODEX_API_KEY` for Codex, and for OpenCode and Pi `ANTHROPIC_API_KEY` with an `anthropic/` model or `OPENAI_API_KEY` with an `openai/` model. `CLAUDE_CODE_OAUTH_TOKEN`, from `claude setup-token`, is the only subscription sign-in that works in CI: the others are saved to a file or a keyring when you log in to the agent, and a fresh runner has none to copy.
372
+ **The agent's key.** Pass it through `env:` under a name from [Credentials](#credentials): `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_API_KEY` or `CLAUDE_CODE_OAUTH_TOKEN` for Claude Code, `OPENAI_API_KEY` or `CODEX_API_KEY` for Codex, for OpenCode and Pi `ANTHROPIC_API_KEY` with an `anthropic/` model or `OPENAI_API_KEY` with an `openai/` model, and `GEMINI_API_KEY` for the Antigravity CLI. `CLAUDE_CODE_OAUTH_TOKEN`, from `claude setup-token`, is the only subscription sign-in that works in CI: the others are saved to a file or a keyring when you log in to the agent, and a fresh runner has none to copy.
369
373
 
370
- **The agent.** `agentpicks` tests the agent installed on the runner, and installs the same version in its container, so install it at a pinned version before the action: `npm install -g @openai/codex@<version>` for Codex. Install and authenticate each agent the setup lists, or pick one with `agent`. With `agent` set, or a setup that lists its agents, a run whose agent isn't installed is refused, naming it; otherwise a runner with no agent installed is refused, listing the agents `agentpicks` can run.
374
+ **The agent.** `agentpicks` tests the agent installed on the runner, and installs the same version in its container (the Antigravity CLI runs its pinned release), so install it at a pinned version before the action: `npm install -g @openai/codex@<version>` for Codex. Install and authenticate each agent the setup lists, or pick one with `agent`. With `agent` set, or a setup that lists its agents, a run whose agent isn't installed is refused, naming it; otherwise a runner with no agent installed is refused, listing the agents `agentpicks` can run.
371
375
 
372
376
  **Your repository.** A setup with `repo: .`, or `repo: .` on the action, tests the checked-out commit. `actions/checkout` sets the `origin` remote that an upload needs. Files the workflow writes into the checkout, `out` included, aren't read: only committed files are tested.
373
377
 
@@ -377,7 +381,7 @@ Install Docker, Node.js 20 or later and the agent, set `DEVTUNE_API_KEY`, `DEVTU
377
381
 
378
382
  ```sh
379
383
  npm install -g @anthropic-ai/claude-code@2.1.323
380
- npx --yes @devtune/agentpicks@0.5.1 run error-tracking --agent claude-code
384
+ npx --yes @devtune/agentpicks@0.6.0 run error-tracking --agent claude-code
381
385
  ```
382
386
 
383
387
  ## The bundle
package/dist/cli.js CHANGED
@@ -7375,7 +7375,7 @@ var import_promises5 = require("node:readline/promises");
7375
7375
  // package.json
7376
7376
  var package_default = {
7377
7377
  name: "@devtune/agentpicks",
7378
- version: "0.5.1",
7378
+ version: "0.6.0",
7379
7379
  description: "The open Agent Picks runner: the agentpicks CLI, which tests the coding agents installed on your machine in fresh Docker containers, and the sandbox code DevTune runs its managed tests on",
7380
7380
  license: "Apache-2.0",
7381
7381
  engines: {
@@ -29790,6 +29790,19 @@ function namesWord(text3, words) {
29790
29790
  );
29791
29791
  }
29792
29792
 
29793
+ // src/run/antigravity-lock.ts
29794
+ var ANTIGRAVITY_LOCK = {
29795
+ version: "1.5.21",
29796
+ url: "https://github.com/google-antigravity/antigravity-cli/releases/download/1.5.21/agy_cli_linux_x64.tar.gz",
29797
+ size: 104333765,
29798
+ sha256: "45c992ac7a08475fe895a4fc7cbb865f62d8454027f2f5174a5902c4621b426b",
29799
+ aarch64: {
29800
+ url: "https://github.com/google-antigravity/antigravity-cli/releases/download/1.5.21/agy_cli_linux_arm64.tar.gz",
29801
+ size: 95026676,
29802
+ sha256: "e12d1b26e0da0010b0fe1a83f5934e3a335be287cd909128f81d91ecb0473400"
29803
+ }
29804
+ };
29805
+
29793
29806
  // src/cli/self-run-agents.ts
29794
29807
  var SELF_RUN_AGENTS = [
29795
29808
  {
@@ -29810,7 +29823,14 @@ var SELF_RUN_AGENTS = [
29810
29823
  command: "opencode",
29811
29824
  aliases: ["opencode"]
29812
29825
  },
29813
- { kind: "pi", name: "Pi", command: "pi", aliases: ["pi"] }
29826
+ { kind: "pi", name: "Pi", command: "pi", aliases: ["pi"] },
29827
+ {
29828
+ kind: "antigravity",
29829
+ name: "Antigravity CLI",
29830
+ command: "agy",
29831
+ aliases: ["antigravity", "agy", "antigravity-cli"],
29832
+ pinnedVersion: ANTIGRAVITY_LOCK.version
29833
+ }
29814
29834
  ];
29815
29835
 
29816
29836
  // ../../node_modules/.pnpm/re2js@2.8.7/node_modules/re2js/build/index.js
@@ -36545,14 +36565,15 @@ var setupFileSchema = external_exports.object({
36545
36565
  external_exports.enum(SETUP_AGENTS, {
36546
36566
  error: `Use an agent: ${SETUP_AGENTS.join(", ")}.`
36547
36567
  })
36548
- ).min(1).max(4).optional().describe(
36568
+ ).min(1).max(SETUP_AGENTS.length).optional().describe(
36549
36569
  "The agents to test, each installed on the machine that runs it. Without agents, the one installed agent runs."
36550
36570
  ),
36551
36571
  runs: external_exports.number().int().min(1).max(100).optional().describe("How many runs per agent and stack. Default 1.")
36552
36572
  }).strict();
36553
36573
  var SETUP_FIELD_MIN_VERSIONS = {
36554
36574
  "requests.use": "0.5.0",
36555
- check: "0.5.0"
36575
+ check: "0.5.0",
36576
+ "agents: antigravity": "0.6.0"
36556
36577
  };
36557
36578
  function newerFieldsNote(file2) {
36558
36579
  const fields = newerSetupFields(file2);
@@ -36567,7 +36588,13 @@ function newerSetupFields(file2) {
36567
36588
  version: SETUP_FIELD_MIN_VERSIONS["requests.use"]
36568
36589
  }
36569
36590
  ] : [],
36570
- ...file2.check !== void 0 ? [{ field: "check", version: SETUP_FIELD_MIN_VERSIONS.check }] : []
36591
+ ...file2.check !== void 0 ? [{ field: "check", version: SETUP_FIELD_MIN_VERSIONS.check }] : [],
36592
+ ...file2.agents?.includes("antigravity") ? [
36593
+ {
36594
+ field: "agents: antigravity",
36595
+ version: SETUP_FIELD_MIN_VERSIONS["agents: antigravity"]
36596
+ }
36597
+ ] : []
36571
36598
  ];
36572
36599
  }
36573
36600
  function setupJsonSchema() {
@@ -36735,7 +36762,7 @@ function isDirectory(path) {
36735
36762
  // src/cli/agent-plan.ts
36736
36763
  var PROVIDERS = ["anthropic", "openai"];
36737
36764
  function planAgent(agent) {
36738
- if (agent.kind === "claude_code" || agent.kind === "codex")
36765
+ if (agent.kind === "claude_code" || agent.kind === "codex" || agent.kind === "antigravity")
36739
36766
  return { agent, model: agent.model, provider: null, modelArg: agent.model };
36740
36767
  const [provider, model] = splitModel(agent);
36741
36768
  return {
@@ -76586,7 +76613,8 @@ var AGENT_KINDS = [
76586
76613
  "codex",
76587
76614
  "opencode",
76588
76615
  "pi",
76589
- "muse_code"
76616
+ "muse_code",
76617
+ "antigravity"
76590
76618
  ];
76591
76619
 
76592
76620
  // src/locks/locked-files.ts
@@ -76639,6 +76667,66 @@ function agentVersionSetupScript(base) {
76639
76667
  );
76640
76668
  }
76641
76669
 
76670
+ // src/run/antigravity.ts
76671
+ var INSTALL_ANTIGRAVITY_SH = `#!/usr/bin/env bash
76672
+ set -euo pipefail
76673
+ S=/opt/agent-picks
76674
+ mkdir -p $S/antigravity
76675
+ curl -fsSL --proto '=https' -o $S/antigravity/agy.tar.gz '${ANTIGRAVITY_LOCK.url}'
76676
+ test "$(wc -c < $S/antigravity/agy.tar.gz | tr -d ' ')" = ${ANTIGRAVITY_LOCK.size}
76677
+ echo '${ANTIGRAVITY_LOCK.sha256} '$S/antigravity/agy.tar.gz | sha256sum -c - >/dev/null
76678
+ tar -xzf $S/antigravity/agy.tar.gz -C $S/antigravity antigravity
76679
+ rm $S/antigravity/agy.tar.gz
76680
+ chmod 0755 $S/antigravity/antigravity
76681
+ ln -sf $S/antigravity/antigravity $S/node/bin/agy
76682
+ `;
76683
+ var RUN_ANTIGRAVITY_SH = script`#!/usr/bin/env bash
76684
+ set -euo pipefail
76685
+ MODEL="$\{1:?model}"; PROMPT_FILE="$\{2:?prompt file}"
76686
+ : "$\{GEMINI_API_KEY:?}"
76687
+ export AGY_CLI_DISABLE_AUTO_UPDATE=1
76688
+ if [ "$MODEL" = default ]; then set --; else set -- --model "$MODEL"; fi
76689
+ exec agy -p "$(cat "$PROMPT_FILE")" --output-format stream-json --dangerously-skip-permissions \
76690
+ --settings '{"modelProvider":"gemini"}' "$@" < /dev/null
76691
+ `;
76692
+ function antigravityTranscriptError(text3) {
76693
+ const end = text3.split("\n").flatMap((line2) => {
76694
+ const record2 = parseRecord(line2);
76695
+ return record2?.event === "result" && isRecord(record2.result) ? [record2.result] : [];
76696
+ }).at(-1);
76697
+ if (!end) return "Antigravity CLI transcript did not settle";
76698
+ if (end.status === "SUCCESS") return null;
76699
+ const error62 = typeof end.error === "string" ? end.error : null;
76700
+ return `Antigravity CLI stopped: ${String(end.status)}${error62 ? `: ${error62}` : ""}`;
76701
+ }
76702
+ function isRecord(value) {
76703
+ return typeof value === "object" && value !== null && !Array.isArray(value);
76704
+ }
76705
+ function parseRecord(line2) {
76706
+ try {
76707
+ const value = JSON.parse(line2);
76708
+ return isRecord(value) ? value : null;
76709
+ } catch {
76710
+ return null;
76711
+ }
76712
+ }
76713
+ function antigravitySetupScript(base) {
76714
+ return base.replace(
76715
+ "t1=$(date +%s)",
76716
+ () => ". $S/install-antigravity.sh\nt1=$(date +%s)"
76717
+ );
76718
+ }
76719
+ function antigravityRunScript(base) {
76720
+ return base.replace(
76721
+ "else\n printenv OPENAI_API_KEY",
76722
+ () => `elif [ "$AGENT" = agy ]; then
76723
+ setsid -w bash $S/agent-session.sh $S/agent.sid timeout "$TIMEOUT" bash $S/run-antigravity.sh "$MODEL" "$PROMPT_FILE" > $OUT/transcript.jsonl 2> $OUT/agent.err
76724
+ code=$?
76725
+ else
76726
+ printenv OPENAI_API_KEY`
76727
+ );
76728
+ }
76729
+
76642
76730
  // src/run/muse-code-lock.ts
76643
76731
  var MUSE_CODE_LOCK = {
76644
76732
  version: "1.4.14-R7309.1",
@@ -77579,7 +77667,12 @@ var AARCH64_BUILDS = [
77579
77667
  [
77580
77668
  "node_modules/opencode-linux-x64-baseline/bin/opencode",
77581
77669
  "node_modules/opencode-linux-arm64/bin/opencode"
77582
- ]
77670
+ ],
77671
+ [ANTIGRAVITY_LOCK.url, ANTIGRAVITY_LOCK.aarch64.url],
77672
+ [`= ${ANTIGRAVITY_LOCK.size}
77673
+ `, `= ${ANTIGRAVITY_LOCK.aarch64.size}
77674
+ `],
77675
+ [ANTIGRAVITY_LOCK.sha256, ANTIGRAVITY_LOCK.aarch64.sha256]
77583
77676
  ];
77584
77677
  function forArchitecture(text3, architecture) {
77585
77678
  if (architecture === "x86_64") return text3;
@@ -78319,7 +78412,7 @@ function buildSandboxAssets(environment, signals, agent, {
78319
78412
  }
78320
78413
  var REPOSITORY_TSV = `${SANDBOX_ROOT}/repository.tsv`;
78321
78414
  function x86_64Assets(environment, signals, agent, agentVersion, repository) {
78322
- const setup = agent === "opencode" ? opencodeSetupScript(SETUP_SH) : agent === "pi" ? piSetupScript(SETUP_SH) : agent === "muse_code" ? museCodeSetupScript(SETUP_SH) : SETUP_SH;
78415
+ const setup = agent === "opencode" ? opencodeSetupScript(SETUP_SH) : agent === "pi" ? piSetupScript(SETUP_SH) : agent === "muse_code" ? museCodeSetupScript(SETUP_SH) : agent === "antigravity" ? antigravitySetupScript(SETUP_SH) : SETUP_SH;
78323
78416
  return [
78324
78417
  ...agent && agentVersion ? [
78325
78418
  {
@@ -78342,6 +78435,16 @@ function x86_64Assets(environment, signals, agent, agentVersion, repository) {
78342
78435
  },
78343
78436
  { path: `${SANDBOX_ROOT}/run-muse.sh`, content: RUN_MUSE_SH }
78344
78437
  ] : [],
78438
+ ...agent === "antigravity" ? [
78439
+ {
78440
+ path: `${SANDBOX_ROOT}/install-antigravity.sh`,
78441
+ content: INSTALL_ANTIGRAVITY_SH
78442
+ },
78443
+ {
78444
+ path: `${SANDBOX_ROOT}/run-antigravity.sh`,
78445
+ content: RUN_ANTIGRAVITY_SH
78446
+ }
78447
+ ] : [],
78345
78448
  ...agent === "opencode" ? [
78346
78449
  {
78347
78450
  path: `${SANDBOX_ROOT}/opencode-models.json`,
@@ -78366,7 +78469,7 @@ function x86_64Assets(environment, signals, agent, agentVersion, repository) {
78366
78469
  },
78367
78470
  {
78368
78471
  path: `${SANDBOX_ROOT}/run-agent.sh`,
78369
- content: agent === "opencode" ? opencodeRunScript(RUN_AGENT_SH) : agent === "pi" ? piRunScript(RUN_AGENT_SH) : agent === "muse_code" ? museCodeRunScript(RUN_AGENT_SH) : RUN_AGENT_SH
78472
+ content: agent === "opencode" ? opencodeRunScript(RUN_AGENT_SH) : agent === "pi" ? piRunScript(RUN_AGENT_SH) : agent === "muse_code" ? museCodeRunScript(RUN_AGENT_SH) : agent === "antigravity" ? antigravityRunScript(RUN_AGENT_SH) : RUN_AGENT_SH
78370
78473
  },
78371
78474
  { path: `${SANDBOX_ROOT}/agent-session.sh`, content: AGENT_SESSION_SH },
78372
78475
  { path: `${SANDBOX_ROOT}/stop-agent.sh`, content: STOP_AGENT_SH },
@@ -78404,7 +78507,8 @@ var AGENT_RUN_LIMITS = {
78404
78507
  codex: { maxTurns: null, earlyStopGraceSec: null },
78405
78508
  opencode: { maxTurns: null, earlyStopGraceSec: null },
78406
78509
  pi: { maxTurns: null, earlyStopGraceSec: null },
78407
- muse_code: { maxTurns: null, earlyStopGraceSec: null }
78510
+ muse_code: { maxTurns: null, earlyStopGraceSec: null },
78511
+ antigravity: { maxTurns: null, earlyStopGraceSec: null }
78408
78512
  };
78409
78513
  var AGENT_TIMEOUT_SEC = 900;
78410
78514
  var SETUP_TIMEOUT_SEC = 600;
@@ -78446,7 +78550,8 @@ var CLI_NAME = {
78446
78550
  codex: "codex",
78447
78551
  opencode: "opencode",
78448
78552
  pi: "pi",
78449
- muse_code: "muse"
78553
+ muse_code: "muse",
78554
+ antigravity: "agy"
78450
78555
  };
78451
78556
  var AGENT_EXEC_MARGIN_SEC = 100;
78452
78557
  var REQUEST_ENDING = " Make any decisions yourself. If a service needs an account or keys, assume I'll create them and leave placeholders.";
@@ -78644,6 +78749,8 @@ function judgeAgentExit(agent, artifacts) {
78644
78749
  if (!agentExit) return "agent exit metadata missing";
78645
78750
  if (agent === "pi" && agentExit.exitCode === 0)
78646
78751
  return piTranscriptError(artifacts["transcript.jsonl"] ?? "");
78752
+ if (agent === "antigravity" && agentExit.exitCode === 0)
78753
+ return antigravityTranscriptError(artifacts["transcript.jsonl"] ?? "");
78647
78754
  if (agentExit.exitCode === 0 || parseEarlyStop(artifacts["earlystop.json"])?.killed === true)
78648
78755
  return null;
78649
78756
  return `agent exit ${agentExit.exitCode}`;
@@ -78726,7 +78833,7 @@ var bundleManifestSchema = external_exports.object({
78726
78833
  }),
78727
78834
  agent: external_exports.object({
78728
78835
  kind: external_exports.enum(AGENT_KINDS),
78729
- /** The version installed on the host, which the sandbox installed too. */
78836
+ /** The version the sandbox ran: the one installed on the host, or the pin of an agent with no npm release. */
78730
78837
  version: external_exports.string().min(1),
78731
78838
  /** The model the agent was asked for; `default` is the agent's own default. */
78732
78839
  model: external_exports.string().min(1)
@@ -81144,12 +81251,13 @@ function findAgent(io, agent) {
81144
81251
  kind: agent.kind,
81145
81252
  name: agent.name,
81146
81253
  path,
81147
- version: version2,
81254
+ version: agent.pinnedVersion ?? version2,
81148
81255
  ...configuredModel(io, agent.kind)
81149
81256
  };
81150
81257
  }
81151
81258
  function configuredModel(io, kind) {
81152
81259
  const fallback = { model: "default", modelSource: "the agent's default" };
81260
+ if (kind === "antigravity") return fallback;
81153
81261
  if (kind === "claude_code") {
81154
81262
  if (io.env.ANTHROPIC_MODEL)
81155
81263
  return { model: io.env.ANTHROPIC_MODEL, modelSource: "ANTHROPIC_MODEL" };
@@ -84215,6 +84323,7 @@ function resolveCredentials(plan, io) {
84215
84323
  const { agent } = plan;
84216
84324
  if (agent.kind === "claude_code") return claudeCredentials(io);
84217
84325
  if (agent.kind === "codex") return codexCredentials(io);
84326
+ if (agent.kind === "antigravity") return antigravityCredentials(io);
84218
84327
  const key = plan.provider === "anthropic" ? "ANTHROPIC_API_KEY" : "OPENAI_API_KEY";
84219
84328
  const value = io.env[key];
84220
84329
  if (!value)
@@ -84357,6 +84466,24 @@ function codexCredentials(io) {
84357
84466
  "Codex has no sign-in on this machine. Run `codex login`, or set OPENAI_API_KEY."
84358
84467
  );
84359
84468
  }
84469
+ function antigravityCredentials(io) {
84470
+ const key = io.env.GEMINI_API_KEY;
84471
+ if (!key)
84472
+ throw new MissingCredentialsError(
84473
+ "Antigravity CLI runs here use GEMINI_API_KEY from your environment, which isn't set. agentpicks doesn't read the CLI's Google sign-in. Set GEMINI_API_KEY to a Gemini API key and try again."
84474
+ );
84475
+ const value = io.env.GOOGLE_GEMINI_BASE_URL;
84476
+ const baseUrl = value ? { key: "GOOGLE_GEMINI_BASE_URL", value, source: "your environment" } : null;
84477
+ if (baseUrl) assertSandboxEndpoint(baseUrl);
84478
+ const keys = ["GEMINI_API_KEY", ...baseUrl ? [baseUrl.key] : []];
84479
+ return {
84480
+ env: { GEMINI_API_KEY: key, ...baseUrl ? { [baseUrl.key]: value } : {} },
84481
+ files: [],
84482
+ endpoints: baseUrl ? [{ name: baseUrl.key, url: baseUrl.value, source: baseUrl.source }] : [],
84483
+ secrets: [key],
84484
+ summary: [passes(keys, "your environment", "Antigravity CLI")]
84485
+ };
84486
+ }
84360
84487
  function assertSandboxEndpoint(endpoint2) {
84361
84488
  const { key, value, source } = endpoint2;
84362
84489
  const display = createTraceRedactor({}, { names: false })(value);
@@ -90471,6 +90598,7 @@ var AGENT_CREDENTIAL_PATHS = [
90471
90598
  '"$HOME/.codex"',
90472
90599
  '"$HOME/.local/share/opencode"',
90473
90600
  '"$HOME/.config/opencode"',
90601
+ '"$HOME/.gemini"',
90474
90602
  `${SANDBOX_ROOT}/codex-home`,
90475
90603
  `${SANDBOX_ROOT}/pi-home`,
90476
90604
  `${SANDBOX_ROOT}/muse-home`,
@@ -91339,7 +91467,7 @@ function isFormatControl(code) {
91339
91467
  var DEFAULT_RUNS_DIR = "agentpicks-runs";
91340
91468
  var UNMEASURED = "Unmeasured";
91341
91469
  function resultsCommand(argv, ctx) {
91342
- const { json: json3, dirs } = parseResultsArgs(argv);
91470
+ const { format: format2, dirs } = parseResultsArgs(argv);
91343
91471
  const rows = [
91344
91472
  ...new Set(
91345
91473
  dirs.flatMap(
@@ -91349,11 +91477,12 @@ function resultsCommand(argv, ctx) {
91349
91477
  ].map(resultRow).sort(
91350
91478
  (a, b) => (a.startedAt ?? "\uFFFF").localeCompare(b.startedAt ?? "\uFFFF") || a.dir.localeCompare(b.dir)
91351
91479
  );
91352
- if (json3) {
91480
+ if (format2 === "json") {
91353
91481
  ctx.out(JSON.stringify(rows, null, 2));
91354
91482
  return 0;
91355
91483
  }
91356
- for (const line2 of resultsTable(rows)) ctx.out(line2);
91484
+ const lines = format2 === "markdown" ? resultsMarkdown(rows) : resultsTable(rows);
91485
+ for (const line2 of lines) ctx.out(line2);
91357
91486
  return 0;
91358
91487
  }
91359
91488
  function parseResultsArgs(argv) {
@@ -91363,16 +91492,21 @@ function parseResultsArgs(argv) {
91363
91492
  args: argv,
91364
91493
  strict: true,
91365
91494
  allowPositionals: true,
91366
- options: { json: { type: "boolean" } }
91495
+ options: { json: { type: "boolean" }, markdown: { type: "boolean" } }
91367
91496
  });
91368
91497
  } catch (error62) {
91369
91498
  throw new UsageError(
91370
- `${error62 instanceof Error ? error62.message : String(error62)} agentpicks results takes bundle directories and --json.`
91499
+ `${error62 instanceof Error ? error62.message : String(error62)} agentpicks results takes bundle directories, and --json or --markdown.`
91371
91500
  );
91372
91501
  }
91502
+ const { json: json3, markdown } = parsed2.values;
91503
+ if (json3 && markdown)
91504
+ throw new UsageError(
91505
+ "agentpicks results prints JSON or Markdown, not both: pass --json or --markdown."
91506
+ );
91373
91507
  const dirs = parsed2.positionals;
91374
91508
  return {
91375
- json: parsed2.values.json === true,
91509
+ format: json3 ? "json" : markdown ? "markdown" : "table",
91376
91510
  dirs: dirs.length > 0 ? dirs : [DEFAULT_RUNS_DIR]
91377
91511
  };
91378
91512
  }
@@ -91499,7 +91633,7 @@ function shown2(row) {
91499
91633
  if (row.status === "unmeasured") return UNMEASURED;
91500
91634
  return row.tool;
91501
91635
  }
91502
- function resultsTable(rows) {
91636
+ function resultsReport(rows) {
91503
91637
  const checked = rows.some((row) => row.check !== null);
91504
91638
  const header = [
91505
91639
  "RUN",
@@ -91519,45 +91653,92 @@ function resultsTable(rows) {
91519
91653
  ...checked ? [row.check?.shown ?? ""] : []
91520
91654
  ].map(oneLine)
91521
91655
  );
91522
- const widths = header.map(
91523
- (title, i) => Math.max(title.length, ...cells.map((row) => row[i].length))
91524
- );
91525
- const line2 = (row) => row.map((cell, i) => i === row.length - 1 ? cell : cell.padEnd(widths[i])).join(" ").trimEnd();
91526
- const lines = [line2(header), ...cells.map(line2), ""];
91527
91656
  const bySetup = /* @__PURE__ */ new Map();
91528
91657
  for (const row of rows) {
91529
91658
  if (row.setup === null) continue;
91530
91659
  const setup = oneLine(row.setup);
91531
- const counts = bySetup.get(setup) ?? /* @__PURE__ */ new Map();
91660
+ const counts2 = bySetup.get(setup) ?? /* @__PURE__ */ new Map();
91532
91661
  const pick2 = oneLine(shown2(row));
91533
- counts.set(pick2, (counts.get(pick2) ?? 0) + 1);
91534
- bySetup.set(setup, counts);
91535
- }
91536
- for (const [setup, counts] of bySetup) {
91537
- const total = [...counts.values()].reduce((sum, n) => sum + n, 0);
91538
- const picks = [...counts].sort(([a, x], [b, y]) => y - x || a.localeCompare(b)).map(([pick2, n]) => `${pick2} ${n}`).join(", ");
91539
- lines.push(`${setup}: ${picks} (${total} run${total === 1 ? "" : "s"})`);
91540
- }
91541
- const unmeasured = rows.filter((row) => row.status === "unmeasured");
91542
- if (unmeasured.length > 0) {
91543
- lines.push("");
91544
- for (const row of unmeasured)
91545
- lines.push(
91546
- `${row.runId.slice(0, 8)} is Unmeasured: ${oneLine(row.reason ?? "")}`
91547
- );
91662
+ counts2.set(pick2, (counts2.get(pick2) ?? 0) + 1);
91663
+ bySetup.set(setup, counts2);
91548
91664
  }
91549
- const unpassed = rows.filter(
91550
- (row) => row.check && row.check.status !== "passed"
91665
+ const counts = [...bySetup].map(([setup, picks]) => ({
91666
+ setup,
91667
+ picks: [...picks].sort(([a, x], [b, y]) => y - x || a.localeCompare(b)),
91668
+ total: [...picks.values()].reduce((sum, n) => sum + n, 0)
91669
+ }));
91670
+ const note = (row, what, reason) => ({
91671
+ run: oneLine(row.runId.slice(0, 8)),
91672
+ what,
91673
+ reason: oneLine(reason ?? "")
91674
+ });
91675
+ const unmeasured = rows.filter((row) => row.status === "unmeasured").map((row) => note(row, " is Unmeasured", row.reason));
91676
+ const checks = rows.filter((row) => row.check && row.check.status !== "passed").map(
91677
+ (row) => note(
91678
+ row,
91679
+ `'s check ${row.check.shown === UNMEASURED ? "is Unmeasured" : row.check.shown === "failed" ? "failed" : "timed out"}`,
91680
+ row.check.reason
91681
+ )
91682
+ );
91683
+ return { header, cells, counts, notes: [unmeasured, checks] };
91684
+ }
91685
+ var runsWord = (total) => `${total} run${total === 1 ? "" : "s"}`;
91686
+ function resultsTable(rows) {
91687
+ const { header, cells, counts, notes } = resultsReport(rows);
91688
+ const widths = header.map(
91689
+ (title, i) => Math.max(title.length, ...cells.map((row) => row[i].length))
91551
91690
  );
91552
- if (unpassed.length > 0) {
91553
- lines.push("");
91554
- for (const row of unpassed)
91691
+ const line2 = (row) => row.map((cell, i) => i === row.length - 1 ? cell : cell.padEnd(widths[i])).join(" ").trimEnd();
91692
+ const lines = [
91693
+ line2(header),
91694
+ ...cells.map(line2),
91695
+ "",
91696
+ ...counts.map(
91697
+ ({ setup, picks, total }) => `${setup}: ${picks.map(([pick2, n]) => `${pick2} ${n}`).join(", ")} (${runsWord(total)})`
91698
+ )
91699
+ ];
91700
+ for (const group of notes)
91701
+ if (group.length > 0)
91555
91702
  lines.push(
91556
- `${row.runId.slice(0, 8)}'s check ${row.check.shown === UNMEASURED ? "is Unmeasured" : row.check.shown === "failed" ? "failed" : "timed out"}: ${oneLine(row.check.reason ?? "")}`
91703
+ "",
91704
+ ...group.map(({ run, what, reason }) => `${run}${what}: ${reason}`)
91557
91705
  );
91558
- }
91559
91706
  return lines;
91560
91707
  }
91708
+ function resultsMarkdown(rows) {
91709
+ const { header, cells, counts, notes } = resultsReport(rows);
91710
+ const cell = (text3) => text3 ? markdownCode(text3, true) : "";
91711
+ const lines = [
91712
+ "## Agent Picks results",
91713
+ "",
91714
+ `| ${header.map((title) => title[0] + title.slice(1).toLowerCase()).join(" | ")} |`,
91715
+ `|${header.map(() => " --- |").join("")}`,
91716
+ ...cells.map((row) => `| ${row.map(cell).join(" | ")} |`)
91717
+ ];
91718
+ if (counts.length > 0)
91719
+ lines.push(
91720
+ "",
91721
+ ...counts.map(
91722
+ ({ setup, picks, total }) => `- ${markdownCode(setup)}: ${picks.map(([pick2, n]) => `${markdownCode(pick2)} ${n}`).join(", ")} (${runsWord(total)})`
91723
+ )
91724
+ );
91725
+ for (const group of notes)
91726
+ if (group.length > 0)
91727
+ lines.push(
91728
+ "",
91729
+ ...group.map(
91730
+ ({ run, what, reason }) => `- ${markdownCode(run)}${what}: ${markdownCode(reason)}`
91731
+ )
91732
+ );
91733
+ return lines;
91734
+ }
91735
+ function markdownCode(text3, inTable = false) {
91736
+ const fence = "`".repeat(
91737
+ Math.max(0, ...(text3.match(/`+/g) ?? []).map((run) => run.length)) + 1
91738
+ );
91739
+ const body = inTable ? text3.replaceAll("|", "\\|") : text3;
91740
+ return `${fence} ${body} ${fence}`;
91741
+ }
91561
91742
  function oneLine(text3) {
91562
91743
  const visible = Array.from(text3).filter((c) => !isFormatControl(c.codePointAt(0) ?? 0)).join("");
91563
91744
  return Array.from(visible.replace(/\s+/g, " ")).filter((c) => {
@@ -91870,7 +92051,8 @@ async function selfRun(input2) {
91870
92051
  agent: plan.agent.kind,
91871
92052
  model: plan.model,
91872
92053
  prompt: test.prompt,
91873
- agentVersion: plan.agent.version,
92054
+ // An agent with no npm release runs its pin, which discovery reports as the version.
92055
+ ...isVersionedAgent(plan.agent.kind) ? { agentVersion: plan.agent.version } : {},
91874
92056
  ...repository ? {
91875
92057
  repository: {
91876
92058
  packed: repository.packed,
@@ -92120,10 +92302,10 @@ var USAGE = `Usage:
92120
92302
  [--check <command>|none] [--name <name>]
92121
92303
  agentpicks catalogue [<category>] [--json]
92122
92304
  agentpicks run [<setup>] [--stack <stack> | --repo <path> [--ref <commit>]]
92123
- [--runs <n>] [--agent claude-code|codex|opencode|pi] [--model <model>]
92305
+ [--runs <n>] [--agent claude-code|codex|opencode|pi|antigravity] [--model <model>]
92124
92306
  [--out <dir>] [--no-upload] [--only use [--no-check]]
92125
92307
  agentpicks run --category <category> (--stack <stack> | --repo <path> [--ref <commit>])
92126
- [--runs <n>] [--agent claude-code|codex|opencode|pi] [--model <model>]
92308
+ [--runs <n>] [--agent claude-code|codex|opencode|pi|antigravity] [--model <model>]
92127
92309
  [--out <dir>] [--no-upload]
92128
92310
  agentpicks list
92129
92311
  agentpicks pull [<setup>] [--force]
@@ -92131,7 +92313,7 @@ var USAGE = `Usage:
92131
92313
  agentpicks validate [<setup>...]
92132
92314
  agentpicks schema
92133
92315
  agentpicks upload <dir>
92134
- agentpicks results [<dir>...] [--json]
92316
+ agentpicks results [<dir>...] [--json | --markdown]
92135
92317
  agentpicks login [--no-browser]
92136
92318
  agentpicks login --api-key [--project <project id>]
92137
92319
  agentpicks cleanup
@@ -92194,7 +92376,7 @@ results Shows which tool each run in ./agentpicks-runs, or the directories nam
92194
92376
  packages it added, or the code or config file that shows the pick, read from its
92195
92377
  bundle as the run's early stop reads it. A run with no pick shows none, and one whose
92196
92378
  bundle can't settle its pick shows Unmeasured, with why. A use run's CHECK shows its
92197
- success check. --json prints the rows as JSON.
92379
+ success check. --json prints the rows as JSON; --markdown, the job summary's Markdown.
92198
92380
  login Signs in to DevTune in your browser, where you choose the project run and upload
92199
92381
  send bundles to. --no-browser prints the sign-in address without opening it.
92200
92382
  --api-key saves a project API key with the Agent Picks Run scope instead, read from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtune/agentpicks",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "The open Agent Picks runner: the agentpicks CLI, which tests the coding agents installed on your machine in fresh Docker containers, and the sandbox code DevTune runs its managed tests on",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
@@ -583,11 +583,11 @@
583
583
  "agents": {
584
584
  "description": "The agents to test, each installed on the machine that runs it. Without agents, the one installed agent runs.",
585
585
  "minItems": 1,
586
- "maxItems": 4,
586
+ "maxItems": 5,
587
587
  "type": "array",
588
588
  "items": {
589
589
  "type": "string",
590
- "enum": ["claude-code", "codex", "opencode", "pi"]
590
+ "enum": ["claude-code", "codex", "opencode", "pi", "antigravity"]
591
591
  }
592
592
  },
593
593
  "runs": {