@devtune/agentpicks 0.1.0 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +23 -1
  2. package/dist/cli.js +5010 -4460
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # @devtune/agentpicks
2
2
 
3
- Test which tools the coding agents installed on your machine pick when they build your kind of app. `agentpicks run` gives an agent a real request (add error tracking, choose a database) in a committed starter app or your own repository, inside a fresh Docker container, and writes what it did to a bundle on disk: its transcript, its code changes, every URL it fetched and every package it installed.
3
+ Test which tools the coding agents installed on your machine pick when they build your kind of app. `agentpicks run` gives an agent a real request (add error tracking, choose a database) in a committed starter app or your own repository, inside a fresh Docker container, writes what it did to a bundle on disk (its transcript, its code changes, every URL it fetched and every package it installed) and uploads the bundle to your DevTune project.
4
4
 
5
5
  Apache-2.0.
6
6
 
7
7
  ```sh
8
+ npx @devtune/agentpicks login
8
9
  npx @devtune/agentpicks run --category error-tracking --stack nextjs
9
10
  npm install -g @devtune/agentpicks # then: agentpicks run ...
10
11
  ```
@@ -14,6 +15,7 @@ npm install -g @devtune/agentpicks # then: agentpicks run ...
14
15
  - 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.
15
16
  - Node.js 20 or later.
16
17
  - A coding agent installed and signed in: Claude Code, Codex, OpenCode or Pi.
18
+ - To upload, a DevTune project API key with the Agent Picks Run scope, on an Agent Picks Local Runner, Cloud or Enterprise plan. See [Upload](#upload). `--no-upload` needs neither.
17
19
 
18
20
  ## Run
19
21
 
@@ -32,6 +34,7 @@ agentpicks run --category error-tracking --repo .
32
34
  | `--agent` | `claude-code`, `codex`, `opencode` or `pi`. Required when several are installed. |
33
35
  | `--model` | The model to ask for. OpenCode and Pi take `anthropic/<model>` or `openai/<model>`. |
34
36
  | `--out` | Where bundles go. Default `./agentpicks-runs`. |
37
+ | `--no-upload` | Keep bundles on this machine only. Send them later with `agentpicks upload`. |
35
38
 
36
39
  Each run asks the category's `add` request. An unknown category, stack or agent is refused with the valid values. Cursor is refused: there is no capture for its runs yet.
37
40
 
@@ -74,6 +77,25 @@ A copied sign-in leaves out its refresh token, so the container can't renew it a
74
77
 
75
78
  Claude Code on macOS keeps its sign-in in the Keychain, which `agentpicks` never reads. Run `claude setup-token` and set `CLAUDE_CODE_OAUTH_TOKEN` to the token it prints. Codex set to keep its sign-in in the system keyring is refused the same way; set `OPENAI_API_KEY`.
76
79
 
80
+ ### Upload
81
+
82
+ ```sh
83
+ agentpicks login
84
+ agentpicks login --project <project id>
85
+ agentpicks upload ./agentpicks-runs
86
+ agentpicks upload ./agentpicks-runs/<run id>
87
+ ```
88
+
89
+ `agentpicks login` reads a project API key from standard input: paste it at the prompt, which doesn't echo it, or pipe it in. Create the key under **API Keys** in DevTune, with the **Agent Picks Run** scope. `login` asks DevTune which project the key belongs to, which needs the key's Project Read scope too; with `--project`, it saves the key for that project without asking. The key and project are saved to `agentpicks/credentials.json` under `$XDG_CONFIG_HOME`, or else `%APPDATA%` on Windows and `~/.config` elsewhere, in a file with mode 0600, so only your user can read it. `agentpicks` never prints the key.
90
+
91
+ In CI, set `DEVTUNE_API_KEY` and `DEVTUNE_PROJECT_ID` instead: they override the saved login. `DEVTUNE_API_BASE_URL` sets the API address, default `https://devtune.ai/api/v2`. These are the names the `devtune` CLI reads.
92
+
93
+ `run` checks for a key before anything starts, and refuses without one. Once a run's bundle is written, `run` lists its files, their sizes and the redactions, then uploads it: the manifest to DevTune, and each artifact straight to storage. It prints the run id and the upload's API address. If DevTune refuses the upload, `run` prints DevTune's reason and the command that sends the bundle later, and starts no further runs. The bundle stays on disk either way.
94
+
95
+ A `--repo` run needs the repository to have a remote that `agentpicks` records (see [The bundle](#the-bundle)), since DevTune groups a repository's runs by its remote. Without one, `run` refuses before anything starts; add an `origin` remote, or pass `--no-upload`.
96
+
97
+ `agentpicks upload` takes one bundle directory, or the `--out` directory of `run`, and uploads every bundle in it. Uploading a bundle again is safe: an upload that stopped partway sends only the artifacts DevTune hasn't stored, and one that completed is left as it is. A bundle whose files changed after it was written is refused before anything is sent.
98
+
77
99
  ### Clean up
78
100
 
79
101
  ```sh