Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dwp/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"addons": {
"agentkit": {
"enabled": true,
"version": "v1.4.0"
"version": "v1.5.0"
},
"ai-diff-reviewer": {
"enabled": true,
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body:
attributes:
label: ak version
description: Output of `ak --version`.
placeholder: agentkit 1.4.0 (interface 1)
placeholder: agentkit 1.5.0 (interface 1)
validations:
required: true
- type: dropdown
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ permission posture changes.

## [Unreleased]

## [1.5.0] - 2026-11-16

A minor release. Interface stays **1**: `ak run --output-format json` gains
the additive `tokens` field, and `ak usage --json` rows the additive
`advisory` block. Under the permission opt-out, ak now forces each CLI's own
ask mode, and pick-v2 `launch.argv` ends with `--ask`. herdr-peers 2.0.2 or
later accepts that trailing `--ask` in its brain launch; 2.0.1 refuses it.

### Added

- **Token metering** (`ak run --json`, the V8 pillar-4 item): the envelope
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,23 @@ python3 ≥ 3.9. Nothing else.
## Install

```bash
git clone --branch v1.4.0 https://github.com/DailybotHQ/coding-agents-kit && ./coding-agents-kit/install.sh
git clone --branch v1.5.0 https://github.com/DailybotHQ/coding-agents-kit && ./coding-agents-kit/install.sh
```

Verify the checkout against the release's checksums (every shipped file is
listed):

```bash
cd coding-agents-kit
curl -fsSLO https://github.com/DailybotHQ/coding-agents-kit/releases/download/v1.4.0/SHA256SUMS
curl -fsSLO https://github.com/DailybotHQ/coding-agents-kit/releases/download/v1.5.0/SHA256SUMS
shasum -a 256 -c SHA256SUMS --ignore-missing # Linux: sha256sum -c SHA256SUMS --ignore-missing
```

Windows: `.\coding-agents-kit\install.ps1`. Scripts and containers:
`./coding-agents-kit/install.sh --no-rc`. Details, upgrades and uninstall:
[docs/install.md](docs/install.md).

Let an agent do it: `npx --yes skills add DailybotHQ/coding-agents-kit@v1.4.0 --skill agentkit-setup`, then ask it
Let an agent do it: `npx --yes skills add DailybotHQ/coding-agents-kit@v1.5.0 --skill agentkit-setup`, then ask it
to set the kit up on this machine or to write a container recipe ([setup](docs/setup.md)).

## Quickstart
Expand Down Expand Up @@ -191,9 +191,9 @@ ak pick codex --owner local:w1:p1 --count 2 # spreads lanes: every active l

| Skill | For | Install |
| --- | --- | --- |
| `agentkit` | launching kinds, accounts, `ak run`, `ak usage`, `ak pick` (`ak --skill`) | `npx --yes skills add DailybotHQ/coding-agents-kit@v1.4.0 --skill agentkit` |
| `agentkit-setup` | installing, configuring and repairing the kit (`ak --skill setup`) | `npx --yes skills add DailybotHQ/coding-agents-kit@v1.4.0 --skill agentkit-setup` |
| `agentkit-orchestrate` | several agents over several accounts and vendors (`ak --skill orchestrate`) | `npx --yes skills add DailybotHQ/coding-agents-kit@v1.4.0 --skill agentkit-orchestrate` |
| `agentkit` | launching kinds, accounts, `ak run`, `ak usage`, `ak pick` (`ak --skill`) | `npx --yes skills add DailybotHQ/coding-agents-kit@v1.5.0 --skill agentkit` |
| `agentkit-setup` | installing, configuring and repairing the kit (`ak --skill setup`) | `npx --yes skills add DailybotHQ/coding-agents-kit@v1.5.0 --skill agentkit-setup` |
| `agentkit-orchestrate` | several agents over several accounts and vendors (`ak --skill orchestrate`) | `npx --yes skills add DailybotHQ/coding-agents-kit@v1.5.0 --skill agentkit-orchestrate` |

### The grammar

Expand Down
2 changes: 1 addition & 1 deletion docs/doctor.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The JSON form is the contract. Schema: [`schema/doctor-v1.json`](schema/doctor-v
```json
{
"interface": 1,
"version": "1.4.0",
"version": "1.5.0",
"os": "macos",
"kinds": {
"claude": { "cli": "claude", "provider": null, "installed": true, "path": "/…/claude", "version": "2.1.295 (Claude Code)", "logged_in": true },
Expand Down
4 changes: 2 additions & 2 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
macOS, Linux, WSL (and Git Bash):

```bash
git clone --branch v1.4.0 https://github.com/DailybotHQ/coding-agents-kit
git clone --branch v1.5.0 https://github.com/DailybotHQ/coding-agents-kit
./coding-agents-kit/install.sh
```

Windows (PowerShell 5.1 or 7):

```powershell
git clone --branch v1.4.0 https://github.com/DailybotHQ/coding-agents-kit
git clone --branch v1.5.0 https://github.com/DailybotHQ/coding-agents-kit
.\coding-agents-kit\install.ps1
```

Expand Down
2 changes: 1 addition & 1 deletion docs/schema/capacity-v1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.4.0/docs/schema/capacity-v1.json",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.5.0/docs/schema/capacity-v1.json",
"title": "ak capacity --json (capacity-v1)",
"description": "One account's headroom and a verdict, computed with ak pick's arithmetic (pick.evaluate: the smallest free share of the governing windows, a 10% reserve on windows of 7 days or more) and pick's lower-only drill cap. The reading comes from the kit's usage cache when fresh (usage numbers only; ak usage is the only command that always reads live). Exit 0 for every reading; the verdict is here, not in the exit code. Never contains a secret value. Consumers check `schema` and `interface` first; additional keys may appear in later minor versions.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/doctor-v1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.4.0/docs/schema/doctor-v1.json",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.5.0/docs/schema/doctor-v1.json",
"title": "ak doctor --json (interface 1)",
"description": "What coding-agents-kit reports about a machine. Never contains a secret value: keys are variable names only. Consumers check `interface` before reading anything else; additional top-level keys may appear in later minor versions.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/leases-v1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.4.0/docs/schema/leases-v1.json",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.5.0/docs/schema/leases-v1.json",
"title": "ak lease ls --json (leases-v1)",
"description": "Every active (unexpired) advisory account lease on this machine, oldest first. Leases grant nothing: ak pick --owner and the orchestration skill respect them. Holds profile names, owner addresses, times and a purpose note; never a secret value or a path. Additional keys may appear in later minor versions.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/pick-v1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.4.0/docs/schema/pick-v1.json",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.5.0/docs/schema/pick-v1.json",
"title": "ak pick --json (pick-v1)",
"description": "The account(s) with the most usable headroom for a kind, chosen from the same rows as `ak usage` by one documented policy (docs/usage.md#choosing-an-account). No login is refreshed, no reset is spent; since 0.6.0 a fresh reading may come from the kit's usage cache (usage numbers only; --max-age). Never contains a secret value or an account identity. Consumers check `schema` and `interface` before reading anything else; additional top-level keys may appear in later minor versions.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/pick-v2.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.4.0/docs/schema/pick-v2.json",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.5.0/docs/schema/pick-v2.json",
"title": "ak pick --kinds --json (pick-v2)",
"description": "The cross-kind priority pick for daemons (herdr-peers autopilot --loop and its agents): the FIRST kind of --kinds with a qualifying account, chosen by the same rows, cache and policy as pick-v1 (docs/usage.md#choosing-an-account). Read-only: no login is refreshed, no reset is spent. `launch.argv` is the exact interactive argv to start that agent, so a caller never learns any CLI's own flags; `model` is what the caller asked for that kind (resolution happens at launch). Never contains a secret value or an account identity. Consumers check `schema` and `interface` before reading anything else; additional top-level keys may appear in later minor versions.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/profiles-v1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.4.0/docs/schema/profiles-v1.json",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.5.0/docs/schema/profiles-v1.json",
"title": "ak profiles --json (profiles-v1)",
"description": "Every account the kit knows, portable to another host: names and kinds only. Never contains a secret value, an account identity or an absolute path. Another host recreates the set with `ak profiles add <cli> @<name>` and logs each one in. Consumers check `schema` and `interface` first; additional keys may appear in later minor versions.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/setup-probe-v1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.4.0/docs/schema/setup-probe-v1.json",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.5.0/docs/schema/setup-probe-v1.json",
"title": "ak setup probe --json (setup-probe-v1)",
"description": "What a machine or container looks like to someone about to install or configure coding-agents-kit. Read-only; it works from an uninstalled clone. Never contains a secret value: keys are variable names only. Consumers check `schema` and `interface` first; additional top-level keys may appear in later minor versions.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/setup-verify-v1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.4.0/docs/schema/setup-verify-v1.json",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.5.0/docs/schema/setup-verify-v1.json",
"title": "ak setup verify --json (setup-verify-v1)",
"description": "A closed list of named checks about a kit setup, each with a verdict and the one command that repairs it. Read-only: verify never applies a repair. Never contains a secret value. Consumers check `schema` and `interface` first.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/update-v1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.4.0/docs/schema/update-v1.json",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.5.0/docs/schema/update-v1.json",
"title": "ak update --json (update-v1)",
"description": "One ak update run: what each requested CLI's vendor discovery found, what was installed, what PATH resolves afterwards, and whether the pin moved. Additive within interface 1: new fields may appear, existing ones do not change meaning.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/usage-v1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.4.0/docs/schema/usage-v1.json",
"$id": "https://github.com/DailybotHQ/coding-agents-kit/blob/v1.5.0/docs/schema/usage-v1.json",
"title": "ak usage --json (usage-v1)",
"description": "Quota and usage of each account the kit can see, one row per credential identity. Never contains a secret value, an account identity (e-mail, organisation, id) or a token. The endpoints behind it are vendor-internal and unofficial: a row whose source changed shape reports status `error`, never a crash. Consumers check `schema` and `interface` before reading anything else; additional top-level keys may appear in later minor versions.",
"type": "object",
Expand Down
6 changes: 3 additions & 3 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ Two pieces work together:
machine. It observes and renders; it never installs, repairs or decides, and it never writes anything except an
explicit `--out FILE`.

Neither replaces the two commands you can always type yourself (`git clone --branch v1.4.0 …` and `install.sh`, see
Neither replaces the two commands you can always type yourself (`git clone --branch v1.5.0 …` and `install.sh`, see
[install](install.md)). They exist so an agent can do the same thing safely, repeatably and on a machine you are not
sitting at.

## Use the skill

```bash
npx --yes skills add DailybotHQ/coding-agents-kit@v1.4.0 --skill agentkit-setup
npx --yes skills add DailybotHQ/coding-agents-kit@v1.5.0 --skill agentkit-setup
```

or let the kit print it: `ak --skill setup`. Then ask your agent, for example: *"set up coding-agents-kit on this
machine with a Claude and a Codex account"* or *"write a Dockerfile that runs the kit for the CI image"*.
The skill starts from a clone of the pinned tag, so it works before `ak` exists:

```bash
git clone --branch v1.4.0 https://github.com/DailybotHQ/coding-agents-kit
git clone --branch v1.5.0 https://github.com/DailybotHQ/coding-agents-kit
python3 coding-agents-kit/lib/ak.py setup probe --json
```

Expand Down
2 changes: 1 addition & 1 deletion lib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import subprocess
import sys

VERSION = "1.4.0"
VERSION = "1.5.0"
INTERFACE = 1

# Exit codes (the `ak run` contract uses the same numbers everywhere).
Expand Down
2 changes: 1 addition & 1 deletion skills/agentkit-orchestrate/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: agentkit-orchestrate
description: Run several terminal coding agents at once across the user's accounts and vendors with coding-agents-kit (`ak`) — take inventory of every account's quota, pick the accounts with room (`ak pick --count`), give each writing agent its own git worktree, fan out headless runs (`ak run`), fail over when an account hits a limit, verify every result before merging, and report what was spent. Use when the user asks to split work across several agents or accounts, to run agents in parallel, to get a second opinion from another vendor, to spread a long task over their accounts, or to know which accounts can take the next batch.
version: "1.4.0"
version: "1.5.0"
documentation_url: https://github.com/DailybotHQ/coding-agents-kit
metadata: {"requires":{"anyBins":["ak","agentkit"]},"interface":1}
---
Expand Down
4 changes: 2 additions & 2 deletions skills/agentkit-setup/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: agentkit-setup
description: Install, configure, verify, repair and upgrade coding-agents-kit (`ak`) on any machine, server or Docker container — macOS, Linux, WSL and Windows — from a pinned release, with consent before every change, provider keys handled by name only, and a container recipe that verifies a SHA256. Use when the user asks to set up, install, configure, repair or upgrade ak or agentkit on a host or in a container, to prepare a machine for several coding-agent accounts, or to write a Dockerfile or compose file that runs the kit.
version: "1.4.0"
version: "1.5.0"
documentation_url: https://github.com/DailybotHQ/coding-agents-kit
metadata: {"requires":{"anyBins":["git","python3"]},"interface":1}
---
Expand Down Expand Up @@ -38,7 +38,7 @@ not ask for.

```bash
# test: probe
git clone --branch v1.4.0 https://github.com/DailybotHQ/coding-agents-kit
git clone --branch v1.5.0 https://github.com/DailybotHQ/coding-agents-kit
python3 coding-agents-kit/lib/ak.py setup probe --json
```

Expand Down
2 changes: 1 addition & 1 deletion skills/agentkit-setup/references/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Requirements: python 3.9 or newer (the `py` launcher), git. WSL users follow flo

## Steps

1. Probe: `py -3 coding-agents-kit\lib\ak.py setup probe --json` (after `git clone --branch v1.4.0 https://github.com/DailybotHQ/coding-agents-kit`).
1. Probe: `py -3 coding-agents-kit\lib\ak.py setup probe --json` (after `git clone --branch v1.5.0 https://github.com/DailybotHQ/coding-agents-kit`).
2. Missing git or python: offer `winget install Git.Git` or `winget install Python.Python.3.12` — `[GATE: system package]`; run only after they agree.
3. `[GATE: shell rc]` The installer adds the install's `bin` to the **user** Path unless told not to:
```powershell
Expand Down
6 changes: 3 additions & 3 deletions skills/agentkit/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: agentkit
description: Launch, install and configure terminal coding agents (Claude Code, Codex, Cursor, OpenCode, Pi, Cline, Grok) through coding-agents-kit's `ak` command — accounts per CLI (profiles), provider routes (GLM, Azure, xAI), headless runs with a JSON result (`ak run`), the environment of a profile for other launchers (`ak env`), quota per account and the account with room (`ak usage`, `ak pick`), and a doctor. Use when the user mentions ak, agentkit or coding-agents-kit, asks to start or set up another coding-agent CLI or account, asks which account has room, or asks to run a prompt through another agent non-interactively.
version: "1.4.0"
version: "1.5.0"
documentation_url: https://github.com/DailybotHQ/coding-agents-kit
metadata: {"requires":{"anyBins":["ak","agentkit"]},"interface":1}
---
Expand Down Expand Up @@ -38,11 +38,11 @@ If `ak` is missing, tell the user and offer the install — it writes into
their home directory, so do it only after they agree:

```bash
git clone --branch v1.4.0 https://github.com/DailybotHQ/coding-agents-kit && ./coding-agents-kit/install.sh
git clone --branch v1.5.0 https://github.com/DailybotHQ/coding-agents-kit && ./coding-agents-kit/install.sh
```

(This skill itself installs with
`npx --yes skills add DailybotHQ/coding-agents-kit@v1.4.0 --skill agentkit`.)
`npx --yes skills add DailybotHQ/coding-agents-kit@v1.5.0 --skill agentkit`.)
`ak --skill` prints the copy of this file that matches the installed kit.

## Kinds
Expand Down
2 changes: 1 addition & 1 deletion tests/scopes/dispatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ scope_dispatch() {

# The verbs around launching.
out="$(ak -- --version)"
expect_eq "ak --version" "${out}" "agentkit 1.4.0 (interface 1)"
expect_eq "ak --version" "${out}" "agentkit 1.5.0 (interface 1)"
out="$(ak)"; status=$?
expect_eq "ak with no arguments lists the kinds" "${status}:$(grep -c '^claude-glm ' <<<"${out}")" "0:1"
expect_has "ak with no arguments shows what is installed" "${out}" "${BOX}/bin/claude"
Expand Down
2 changes: 1 addition & 1 deletion tests/scopes/doctor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ scope_doctor() {
out="$("${AK_PY}" "${ROOT}/tests/py/schema_check.py" "${schema}" "${doc}")"
expect_eq "doctor --json matches docs/schema/doctor-v1.json" "${out}" "valid"
expect_eq "doctor reports interface 1" "$(json_get "${doc}" 'd["interface"]')" 1
expect_eq "doctor reports the kit version" "$(json_get "${doc}" 'd["version"]')" "1.4.0"
expect_eq "doctor reports the kit version" "$(json_get "${doc}" 'd["version"]')" "1.5.0"
expect_eq "doctor reports this OS" "$(json_get "${doc}" 'd["os"] in ("macos", "linux")')" true
expect_eq "doctor lists all 20 kinds" "$(json_get "${doc}" 'len(d["kinds"])')" 20
expect_eq "doctor sees the installed CLIs" "$(json_get "${doc}" 'all(v["installed"] for v in d["kinds"].values())')" true
Expand Down
Loading
Loading