@mnaimfaizy/agent-kit 1.0.0-beta.14 → 1.0.0-beta.15
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 +22 -4
- package/custom-harness.schema.json +243 -0
- package/harnesses.json +244 -6
- package/package.json +3 -2
- package/src/checks/ci-workflow.mjs +105 -0
- package/src/checks/claude-app.mjs +11 -2
- package/src/checks/custom-harness.mjs +157 -0
- package/src/checks/github-app.mjs +214 -0
- package/src/checks/rulesets.mjs +9 -8
- package/src/checks/secrets-and-variables.mjs +27 -8
- package/src/checks/stages.mjs +705 -0
- package/src/cli.mjs +270 -33
- package/src/deep-scan/agent.mjs +88 -21
- package/src/deep-scan/credential.mjs +81 -32
- package/src/deep-scan/docker-driver.mjs +105 -42
- package/src/deep-scan/harness-text.mjs +99 -0
- package/src/deep-scan/lifecycle.mjs +68 -178
- package/src/deep-scan/limits.mjs +13 -7
- package/src/deep-scan/model-proxy.mjs +21 -10
- package/src/deep-scan/preflight.mjs +19 -6
- package/src/deep-scan/recipe.mjs +4 -0
- package/src/deep-scan/runtime.mjs +54 -6
- package/src/deep-scan/sandbox-run.mjs +232 -0
- package/src/deep-scan/sbx-driver.mjs +224 -39
- package/src/deep-scan/tar.mjs +69 -22
- package/src/deep-scan/verify.mjs +6 -1
- package/src/deep-scan.mjs +73 -13
- package/src/doctor.mjs +113 -4
- package/src/harness/adapters.mjs +30 -0
- package/src/harness/antigravity.mjs +187 -0
- package/src/harness/claude-code.mjs +8 -1
- package/src/harness/codex.mjs +219 -0
- package/src/harness/cursor.mjs +199 -0
- package/src/harness/custom/registry.mjs +21 -0
- package/src/harness/custom/schema.mjs +90 -0
- package/src/harness/custom.mjs +299 -0
- package/src/harness/facts.mjs +44 -7
- package/src/harness/gemini.mjs +164 -0
- package/src/harness/install-layer.mjs +86 -3
- package/src/harness/opencode.mjs +289 -0
- package/src/harness/resolve.mjs +156 -0
- package/src/harness/support-levels.mjs +151 -3
- package/src/harness-live/assess.mjs +29 -6
- package/src/harness-live/cursor-real.mjs +146 -0
- package/src/harness-live/cursor-version.mjs +70 -0
- package/src/harness-live/cursor.mjs +80 -0
- package/src/harness-live/custom.mjs +91 -0
- package/src/harness-live/fixture-harness.mjs +45 -0
- package/src/harness-live/harnesses.mjs +263 -0
- package/src/harness-live/host.mjs +113 -4
- package/src/harness-live/opencode.mjs +289 -0
- package/src/harness-live/probes.mjs +87 -7
- package/src/harness-live/run.mjs +101 -20
- package/src/harness-live/setup.mjs +126 -0
- package/src/harness-live/stage.mjs +25 -15
- package/src/harness-live/suite.mjs +276 -95
- package/src/harness-test.mjs +116 -0
- package/src/init.mjs +313 -13
- package/src/model-proxy/core.mjs +128 -20
- package/src/model-proxy/profiles/anthropic.mjs +54 -10
- package/src/model-proxy/profiles/gemini-api.mjs +311 -0
- package/src/model-proxy/profiles/openai.mjs +327 -0
- package/src/model-proxy/stub-dialects/gemini-api.mjs +178 -0
- package/src/model-proxy/stub-dialects/openai.mjs +173 -0
- package/src/model-proxy/stub.mjs +9 -1
- package/src/stage/audit.mjs +79 -0
- package/src/stage/egress-route.mjs +207 -0
- package/src/stage/implement/carry.mjs +308 -0
- package/src/stage/implement/sandbox.mjs +271 -0
- package/src/stage/implement/verify.mjs +70 -0
- package/src/stage/implement.mjs +218 -0
- package/src/stage/plan.mjs +115 -0
- package/src/stage/review-response.mjs +172 -0
- package/src/stage/review.mjs +185 -0
- package/src/stage/workspace.mjs +274 -0
- package/src/stage.mjs +1068 -0
package/README.md
CHANGED
|
@@ -10,19 +10,37 @@ npx @mnaimfaizy/agent-kit doctor --strict # warnings fail too
|
|
|
10
10
|
npx @mnaimfaizy/agent-kit upgrade --tag <new-tag> # move to another tag (asks first)
|
|
11
11
|
npx @mnaimfaizy/agent-kit deep-scan --proving-run # Deep scan: recipe, pre-flight, runtime, sandbox, agent
|
|
12
12
|
npx @mnaimfaizy/agent-kit deep-scan --proving-run --verify findings.md --ref fix/x # Verification run: does the fix hold?
|
|
13
|
+
npx @mnaimfaizy/agent-kit stage audit --brief brief.md --result report.md # one CI Stage, as the workflows run it
|
|
14
|
+
npx @mnaimfaizy/agent-kit stage plan --brief brief.md --result plan.md # the plan Stage
|
|
15
|
+
npx @mnaimfaizy/agent-kit stage review --brief brief.md --result review.json # the review Stage
|
|
16
|
+
npx @mnaimfaizy/agent-kit stage implement --brief brief.md --result implement.json --bundle branch.bundle
|
|
17
|
+
npx @mnaimfaizy/agent-kit stage review-response --brief brief.md --result review-response.json --bundle branch.bundle
|
|
18
|
+
npx @mnaimfaizy/agent-kit harness test custom:<name> # probe your own harness file
|
|
13
19
|
```
|
|
14
20
|
|
|
15
|
-
- `--proving-run` is needed while
|
|
21
|
+
- `--proving-run` is needed while the scan's harness is below the `tried` [Support Level](../docs/harnesses.md#proving-runs) for the Deep scan, where every pair starts.
|
|
16
22
|
- The package holds only code. Kit files are read from the git tag your `uses:` pins name, never bundled.
|
|
17
|
-
- `doctor` checks, from your Callers, every secret and repository variable they read (each flow's Kill switch, such as `AGENT_KIT_REVIEW_RESPONSE_ENABLED`, is required; a Stage switch such as `AGENT_KIT_PLAN_ENABLED` is optional), warns about a variable the kit renamed ([ADR 0009](../docs/adr/0009-stage-settings-resolve-in-the-caller.md), [ADR 0022](../docs/adr/0022-stage-settings-are-named-for-the-kit-not-the-harness.md)) that is still set under its old name, naming the new one,
|
|
23
|
+
- `doctor` checks, from your Callers, every secret and repository variable they read (each flow's Kill switch, such as `AGENT_KIT_REVIEW_RESPONSE_ENABLED`, is required; a Stage switch such as `AGENT_KIT_PLAN_ENABLED` is optional), warns about a variable the kit renamed ([ADR 0009](../docs/adr/0009-stage-settings-resolve-in-the-caller.md), [ADR 0022](../docs/adr/0022-stage-settings-are-named-for-the-kit-not-the-harness.md)) that is still set under its old name, naming the new one, every Trigger label they use (such as `agent:address-review`), the Claude GitHub App (only while a Stage runs on `claude-code-action`), the rulesets, which no GitHub App may bypass, and [your own GitHub App](../docs/plan-implement-review.md#your-own-github-app-optional) when set (the variable, the secret, the Callers passing them, the installation) or, without it, that `ci_workflow` names a workflow with a `pull_request` trigger. With a Review response Caller, it reports `AGENT_KIT_REVIEW_RESPONSE_MODE`: unset or `manual` passes as manual, any other value but `auto` warns, and `auto` fails unless the review Caller passes `response_mode` and a `response_workflow` naming a Review response Caller that passes `response_mode` and has a `workflow_dispatch` trigger with a `pr_number` input.
|
|
24
|
+
- `doctor` also checks each Stage your Callers run the way its preflight does, from the pinned tag's `cli/harnesses.json`: it lists the harness, model and effort with the source of each; fails on an unknown harness, a Stage whose harness has no accepted secret both passed and set, a `claude-code` Deep scan with both of its credentials set, an effort the Stage sets that its harness does not accept, and a Stage refused on its [Support Level](../docs/harnesses.md#support-levels); and warns on an inherited effort the run drops and on `AGENT_KIT_MODEL` reaching a Stage on another harness. For a tag from before harness choice it skips these checks, keeps the `claude-code` credential warning, and warns on any `AGENT_KIT_*_HARNESS` variable set. The [full list](../docs/adopt.md#check-an-adoption-with-doctor) has each rule.
|
|
18
25
|
- `doctor` is read-only. It runs git in your checkout without hooks or configured filter commands, never changes files or GitHub settings, and for anything to fix prints a POSIX-shell `gh` command for you to run.
|
|
19
26
|
- No runtime dependencies. Needs Node.js 22 or later, `git`, and (outside `--ci`) `gh` logged in with admin on the repository.
|
|
20
27
|
- Tags before `v1.0.0-alpha.11` have no `kit-owned-paths.txt`, and the CLI refuses them: adopt those by hand with that tag's `docs/adopt.md`.
|
|
21
28
|
- `upgrade --tag <vY>` reads the current tag from your Agent-kit `uses:` pins (they must agree), replaces each Kit-owned path vY lists (delete, then copy), deletes paths only the old tag listed, rewrites only the `@<tag>` of those pins, prints the `examples/` diff between the two tags for you to apply by hand, and then runs the `doctor --ci` checks. Every refusal is checked before anything is written. It refuses a path with uncommitted changes unless `--force`, refuses symbolic links in or above a Kit-owned path, and copies only regular and executable files from the tag. Ignored files inside a replaced path are deleted with it, and listed first. After a Dependabot pin bump, when the pins already name vY, add `--from <vX>` to also delete paths only vX listed and see the `examples/` diff. It asks before writing; pass `--yes` when there is no terminal. It writes only local files and commits nothing; where `core.fileMode` is off (Windows), it stages each copied file with the tag's mode (`git add --chmod=+x` or `-x`), so the executable bit is neither lost nor kept by mistake.
|
|
22
29
|
- `init --tag <vX>` copies the Kit-owned paths, writes `.github/workflows/agent-pipeline.yml`, `security-audit.yml` and/or `agent-review-response.yml` from the tag's `examples/` with your answers filled in (`--flows pipeline,audit,review-response`, `--actors`, `--default-branch`, `--verify`, `--preset`), writes the Threat pack skeleton to `.security/` (or `--threat-pack-dir`) and `.github/dependabot.yml` if there is none, and prints the GitHub-side steps as `gh` commands. It refuses to overwrite an existing Caller or Kit-owned path without `--force`, never overwrites an existing Threat pack file, and leaves Kit-owned paths that already match the tag alone (so `init --flows audit` later adds that flow); use `upgrade` to change tags. `--yes` asks nothing.
|
|
23
|
-
- `
|
|
30
|
+
- `init --harness <name>` (default `claude-code`, asked for on a terminal) prints the setup for that harness from the tag's [`cli/harnesses.json`](../docs/harnesses.md#harnessesjson), and writes nothing about it into the Callers: `gh variable set AGENT_KIT_HARNESS` for another harness, `AGENT_KIT_<STAGE>_HARNESS` set to `claude-code`, with the reason, for each Stage of the chosen flows it cannot run (the tag's kit does not run it on that harness yet, no [Support Level](../docs/harnesses.md#support-levels), or the static security audit below `tried`), and for each harness a Stage runs on, `gh secret set` for its preferred credential and its alternatives, with where to get each (on opencode, whose model picks the credential, for the default model's provider alone; `doctor` likewise asks only for the secret of the provider the Stage's model names). A name the tag does not list is refused, a tag without the file accepts only `claude-code`, and `custom:<name>` is refused with a pointer to the docs.
|
|
31
|
+
- `deep-scan` is the launcher for a Deep scan. The credential, pinned CLI, model route, launch, turn limit, model and effort levels described here are Claude Code's, the default harness; the `--harness` entries below say what differs, and [which harness runs each Stage](../docs/harnesses.md#which-harness-runs-each-stage) lists the harnesses it runs on. Before anything else it goes by the [Support Level](../docs/harnesses.md#support-levels) that the shipped `harnesses.json` holds for its harness on the Deep scan: below `tried`, where every pair starts, it refuses, exit 1, unless run with `--proving-run`, which marks the run as a [Proving run](../docs/harnesses.md#proving-runs) and relaxes nothing else. It prints the harness, the level and whether the run is a Proving run, and in GitHub Actions adds that line to the run summary. Then it reads the Scan recipe (`.security/scan-recipe.yml`, or `--recipe <path>` relative to the repository root) as committed on the default branch (origin's HEAD, else `main`, or `--default-branch <b>`), never from the working tree, and validates it. With no recipe or an invalid one it refuses, lists every problem with its field, points to [the recipe format](../docs/security-audit.md#scan-recipe), and exits 1; it never falls back to a `full` audit. Then the pre-flight refusals: it refuses, exit 1, when `GH_TOKEN` or `GITHUB_TOKEN` is set in its environment, or when the default branch has a committed `.env` (or `.env.<name>`, templates aside) that the copy-in would forward wholesale. It also refuses, exit 1, when the default branch has no security-audit `DEEP.md` or no Threat pack, or when it has no model credential: an Anthropic API key from `ANTHROPIC_API_KEY`, or with `--credential-from env:<NAME>` another variable, or `--credential-from op://<vault>/<item>/<field>` 1Password through `op read` (see [Credentials](../docs/security-audit.md#credentials)). `--credential-from` never takes the key itself (a usage error, exit 2, that never prints it), and the key never reaches any command the launcher runs. With `--credential subscription` it runs instead on a Claude subscription token (from `claude setup-token`; read from `CLAUDE_CODE_OAUTH_TOKEN` by default, or `--credential-from` as for a key), an opt-in at your own risk: it relies on undocumented behaviour and may break with any Claude Code release, has no refresh, so you rotate the token by hand, leaves the terms question to you, and the proxy's token cap is the only spend lever. On that path the sandbox holds the run's caller key as its `CLAUDE_CODE_OAUTH_TOKEN`, Claude Code runs without `--bare` (so it discovers the scanned repository's `CLAUDE.md` and skills, which the brief marks as content, not instructions) and with `--strict-mcp-config`, and the proxy swaps only the `Authorization: Bearer` value, never sending `x-api-key`. A subscription token without `--credential subscription`, or anything but one with it, is refused, exit 1, without printing it ([the subscription path](../docs/security-audit.md#the-subscription-path-opt-in)). Then it chooses a [sandbox runtime](../docs/security-audit.md#sandbox-runtimes) from the host, in this order: Docker Sandboxes (`sbx`) 0.55.0 or later (an older sbx is passed over, CVE-2026-136998), Kata Containers or Firecracker on Linux, gVisor (`runsc`) on Linux, the last two on Docker Engine 28.0 or later; a Mac uses Docker Sandboxes. It refuses, exit 1, when no runtime qualifies, among them an sbx older than 0.55.0 with no other accepted runtime present (naming the version found and the minimum), plain Docker on Linux, Docker Engine older than 28.0 (naming the version found and the minimum), Docker Desktop on Windows with WSL 2, Docker Desktop on macOS (naming Docker Sandboxes), and anything else, naming the accepted runtimes and the CI path; there is no override flag. Those checks run only read-only `git` commands and read-only probes of the runtimes' CLIs (`sbx version`, `docker info`, `<cli> --version`). Then it runs [the sandbox](../docs/security-audit.md#what-goes-into-and-out-of-the-sandbox) on the chosen runtime, through `docker`: with no `image` or `dockerfile` in the recipe it pulls the kit's Harness image by digest and runs it; otherwise it pulls the recipe's image (or builds its Dockerfile from the default branch) and copies the pinned Claude Code onto it from the Harness image in one local build, with no npm install, refusing a musl image such as Alpine; the auto-updater is off either way; then it starts the sandbox with no mount; copies in a `git archive` of the default branch's tip and the recipe's grounding; runs `setup`, `start`, `ready` and `seed` with egress only to the recipe's `registries`, through a proxy it runs on the host (a failing step ends the run, exit 1, with its output); cuts setup's egress (stops its proxy and removes its relay) and checks from the host that nothing is left to reach; opens the model route, a key-injecting proxy on the host that forwards only `POST` to the Messages API's own paths, only from the caller holding the run's caller key (a random value made for each run, which the sandboxed Claude Code holds in place of a real key), with no server-side tool, `mcp_servers`, `container` or URL or file content in the body, and at most four at once, and swaps the caller key for the real one, through its own relay, and checks from the host that the sandbox reaches that relay alone; runs the real Claude Code with `--bare`, the run's caller key as its `ANTHROPIC_API_KEY`, `ANTHROPIC_BASE_URL` pinned by its own `--settings` (project settings are not loaded) and no web tools, handing it the deep procedure, the Threat pack and the recipe; copies out the one report file to a new private folder and prints its path (nothing is filed or posted); and removes the sandbox, relays, probes, networks and images on every exit path, Ctrl+C and `SIGTERM` included (exit 130 or 143). It exits 0 when the report came out. On Docker Engine the sandbox has one network, attached at `docker run` and never connected or disconnected after (a running gVisor sandbox would not see it), `--internal` and in Docker's `isolated` gateway mode, so the host has no address on it; it reaches each proxy only through a relay container on it, built on stdin from an official `node` image pinned by digest and a digest-checked Node-core script, which forwards the proxy's one port. The host checks the network's mode and that the sandbox is on it alone, and a probe container, run under the sandbox's own runtime, checks the routes before the target starts, after the cut and before the agent step. Copy-in unpacks with the sandbox's own `tar`, so a hostile setup step could alter the brief on its way in; the target already controls the sandbox. Every run is bounded by [limits](../docs/security-audit.md#limits), all enforced outside the sandbox and never set by the recipe: a setup wall clock (`--setup-minutes <n>`, default 20), a scan wall clock (`--scan-minutes <n>`, default 60), Claude Code's turn limit (`--max-turns <n>`, default 200) and the model proxy's token cap for the run (`--max-tokens <n>`, default 5000000, counting input, output and cache tokens from the model API's `usage`). A value that is not a positive number is a usage error, exit 2. A limit that fires stops the running step, copies out the report so far with a `Stopped: wall clock | turns | tokens` line added after `Finding count`, tears down and exits 3; with no report, it writes nothing and prints only `Stopped:` and the limit's name. On Docker Sandboxes it does the same through `sbx`: it first refuses, exit 1, a global sbx network policy that is not deny-all (read with `sbx policy ls --json`, never changed) and any global sbx secret (read with `sbx secret ls --global --json`, which also reports shadowed services, which it names, and credentials taken from the host environment, which it reports by count only; never a value. It says to move secrets to `--sandbox` scope or remove them, and to unset the API key variables sbx reads from the environment; output with any of the four fields missing or of the wrong type is refused), then builds its template with Docker on the host (Docker Desktop on Windows): it pulls the recipe's `image`, copies the pinned Claude Code from the Harness image onto it (or, with no `image`, starts from the Harness image), adds a non-root `agent` user (uid 1000, home `/home/agent`, the image's `USER`), as Docker's docs require of a template, after checking it has curl, git, CA certificates and bash (sbx starts only an sbx-ready image), and loads it with `sbx template load` (a `dockerfile` is refused); then it creates the sandbox mountless from that template, opens setup egress with per-sandbox `sbx policy` rules that it removes for the cut; the model route is one more per-sandbox rule, for the model proxy alone (`host.docker.internal:<port>` from the sandbox, which sbx's policy names `localhost:<port>`), and teardown also removes the template and the layered image. Its process allowlist is `git`, `sbx`, `docker`, `runsc`, `kata-runtime`, `firecracker` and the 1Password CLI `op`; `init`, `upgrade` and `doctor` still run only `git` and `gh`. `doctor` reports whether the recipe is at its default path and valid. `--model <id>` names the model the agent runs on (a plain id; Claude Code's default without it), `--effort <level>` its effort level (`low`, `medium`, `high`, `xhigh` or `max`, passed to Claude Code as `--effort`; Claude Code's default without it, and anything else is a usage error, exit 2), the `Agent step:` line names the model and effort asked for, the `Model proxy:` line names the model id the API answered with, `--report <path>` writes the report to that new file in a folder that exists, and in GitHub Actions (`GITHUB_ACTIONS=true`) `deep-scan` keeps the Public-log rule, printing none of the harness's error output, the model proxy's refusals and answers (the answered model ids included), or copy-out error detail (see [Deep scan in CI](../docs/security-audit.md#deep-scan-in-ci)).
|
|
32
|
+
- `deep-scan --harness codex` runs the Deep scan on Codex CLI. The harness is `--harness`'s, else `AGENT_KIT_DEEP_SCAN_HARNESS`, else `AGENT_KIT_HARNESS`, else `claude-code`, and the run names it and its [Support Level](../docs/harnesses.md#support-levels): Codex CLI starts at `documented`, so it needs `--proving-run`. Its model route is the proxy's `openai` profile: only `POST /v1/responses` to `api.openai.com`, with no query string, only the headers, body fields and input items Codex CLI sends, client tools only, and `store: false` ([what differs on the route](../docs/security-audit.md#codex-cli)). It reads an OpenAI API key from `OPENAI_API_KEY` (or `--credential-from`), takes no `--credential subscription`, adds `ultra` to the effort levels and ignores `--max-turns`, having no turn limit. What else differs: [Codex CLI](../docs/security-audit.md#codex-cli).
|
|
33
|
+
- `deep-scan --harness gemini` runs the Deep scan on Gemini CLI, at `documented` too, so it needs `--proving-run`. Its model route is the proxy's `gemini-api` profile: only `POST` to a model's `generateContent`, `streamGenerateContent` (with `alt=sse`, the only query string passed) and `countTokens` on `generativelanguage.googleapis.com`, only the headers and body fields Gemini CLI sends, and function declarations as the only tools. It reads a Gemini API key from `GEMINI_API_KEY` (or `--credential-from`), takes no `--credential subscription` and no `--effort`, takes `--max-turns`, and removes the checkout's `.gemini`, `.agents/skills` and `.env` from the copy it scans. What else differs: [Gemini CLI](../docs/security-audit.md#gemini-cli).
|
|
34
|
+
- `deep-scan --harness antigravity` runs the Deep scan on Antigravity CLI (`agy`), at `documented` too, so it needs `--proving-run`. Its model route is the proxy's `gemini-api` profile. It reads a Gemini API key from `GEMINI_API_KEY` (or `--credential-from`), takes no `--credential subscription` (no Google sign-in) and no turn limit, runs on `gemini-3.1-pro` unless `--model` names another, takes the `--effort` values its model offers, and removes the checkout's `.agents`, `.agent`, `_agents`, `_agent` and `.gemini` from the copy it scans. What else differs: [Antigravity CLI](../docs/security-audit.md#antigravity-cli).
|
|
35
|
+
- `deep-scan --harness opencode` runs the Deep scan on opencode 2.x, at `documented` too, so it needs `--proving-run`. `--model` is `provider/model` with the provider `anthropic`, `openai` or `google` (default `anthropic/claude-opus-5-5`), which picks the model proxy profile and the one key read: `ANTHROPIC_API_KEY`, `OPENAI_API_KEY` or `GEMINI_API_KEY` (or `--credential-from`). It takes no `--credential subscription` and no `--effort`, ignores `--max-turns`, always runs `--standalone`, and removes the checkout's `.opencode`, `opencode.json`, `opencode.jsonc`, `.agents/skills` and `.env` from the copy it scans. opencode 1.x is not run. What else differs: [opencode](../docs/security-audit.md#opencode).
|
|
36
|
+
- `stage audit` is the Launcher's path for the static security audit, which the [security audit workflow](../docs/security-audit.md#the-audit-through-the-launcher) calls for `codex`. It takes the brief and writes the report to `--result`, the raw transcript to `--transcript` and the error output to `--error-log`, each a new file. The harness is `--harness`'s, else `AGENT_KIT_SECURITY_AUDIT_HARNESS`, else `AGENT_KIT_HARNESS`, else `claude-code`, and it takes `deep-scan`'s `--credential`, `--credential-from`, `--model`, `--effort`, limit flags and `--proving-run`; a pair below `tried` is refused without that flag. It copies the checked-out commit into the same sandbox on an accepted runtime, without the harness's own config, with its instruction files from `--trusted-ref` (default the checked-out commit), and with untracked files only under `--untracked`. It exits 0 only when the harness exited cleanly and left an audit report, 3 when a limit stopped it. It refuses a GitHub token in its environment and writes nothing to GitHub.
|
|
37
|
+
- `stage plan` is the Launcher's path for the plan, which the [plan workflow](../docs/plan-implement-review.md#the-plan-through-the-launcher) calls for [every harness but `claude-code`](../docs/harnesses.md#which-harness-runs-each-stage) (on `cursor` the key sits in the sandbox, in the weaker form: [Cursor CLI](../docs/harnesses.md#cursor-cli)). It takes `stage audit`'s flags except `--untracked`, which it refuses, with the harness else from `AGENT_KIT_PLAN_HARNESS`, and runs a pair at `documented` with a warning. It exits 0 only when the harness exited cleanly and left a plan, a Markdown file that opens with `## Agent plan`, at most 256 KiB; 3 when a limit stopped it. It writes nothing to GitHub: the workflow's trusted step posts the plan.
|
|
38
|
+
- `stage review` is the Launcher's path for the review, which the [review workflow](../docs/plan-implement-review.md#the-review-through-the-launcher) calls for [every harness but `claude-code`](../docs/harnesses.md#which-harness-runs-each-stage) (on `cursor` the key sits in the sandbox, in the weaker form: [Cursor CLI](../docs/harnesses.md#cursor-cli)). It takes `stage audit`'s flags except `--untracked`, which it refuses, with the harness else from `AGENT_KIT_REVIEW_HARNESS`, runs a pair at `documented` with a warning, and takes `--input <file>`, repeatable, to copy a prepared file such as the diff in beside the brief. It exits 0 only when the harness exited cleanly and left a JSON result of the review's shape, at most 256 KiB; 3 when a limit stopped it. It writes nothing to GitHub: the workflow's trusted step posts the result.
|
|
39
|
+
- `stage implement` is the Launcher's path for the implementer, which the [implement workflow](../docs/plan-implement-review.md#the-implementer-through-the-launcher) calls for [every harness but `claude-code`](../docs/harnesses.md#which-harness-runs-each-stage) (on `cursor` the key sits in the sandbox, in the weaker form: [Cursor CLI](../docs/harnesses.md#cursor-cli)). It takes `stage review`'s flags, with the harness else from `AGENT_KIT_IMPLEMENT_HARNESS`, and `--bundle <file>`. `--sandbox-image <ref>` names the image the harness is layered on, glibc Linux with git and bash (default: the kit's Harness image; a tag is accepted and its digest printed); `--setup-commands <file>` runs in a setup container of its own, reaching the `--setup-registries <hosts>` alone (none: no network); the agent then runs, with the network cut, in a fresh container from the same image that takes only the workspace, `.git/` and the checkout from the trusted commit, and the absolute paths `--setup-paths <paths>` names, one per line (default: none; the harness's files, shell and git config, `/etc`, `/tmp` and the image's program and library folders are refused; ADR 0047). With `--verify-commands <file>` it is the verify run instead: no agent, brief or credential; it runs the setup the same way, and those commands with no network in the fresh container, on the checked-out commit, exiting 0 when they pass ([the sandbox image and setup](../docs/plan-implement-review.md#the-sandbox-image-and-setup)). The sandbox's copy is a git repository holding the checked-out commit alone, and the agent commits there. It exits 0 only when the harness exited cleanly and left both a JSON `title` and `body`, at most 64 KiB, and a git bundle of at least one commit; a run a limit stopped (exit 3) writes neither. It pushes nothing and writes nothing to GitHub: the workflow's trusted jobs validate the bundle, push it and open the draft pull request.
|
|
40
|
+
- `stage review-response` is the Launcher's path for the Review responder, which the [Review response workflow](../docs/review-response.md#the-responder-through-the-launcher) calls for [every harness but `claude-code`](../docs/harnesses.md#which-harness-runs-each-stage). It takes `stage implement`'s flags (the sandbox, setup and `--bundle`, not `--input` or `--verify-commands`), with the harness else from `AGENT_KIT_REVIEW_RESPONSE_HARNESS`. The agent commits in the same one-commit repository, and the result is a JSON object whose one key, `findings`, holds a reply and Verdict for each thread: at most 150 KB and 20 entries, each with a `thread_id`, a `verdict` (`fixed`, `addressed` or `declined`), a `reply`, and a full `commit` sha for `fixed` alone. A round with no commit is a whole round: it writes the result and no bundle. The workflow's trusted jobs check every thread against a Work list publish rebuilds from GitHub (a reviewer thread resolved since is dropped with a note; any other unknown thread fails the run), validate the bundle, push it and post the replies; nothing here does.
|
|
41
|
+
- `harness test custom:<name>` runs the live probe suite on a [Custom harness](../docs/harnesses.md#custom-harness) file, `.agent-kit/harnesses/<name>.json`, as the default branch (or `--trusted-ref`) holds it, against a stub model under gVisor, with no model credential. It is the first half of a Proving run. `deep-scan` and `stage` take the same `custom:<name>`, reading the file from the same trusted commit, and `doctor` checks it.
|
|
24
42
|
- `deep-scan --verify <file> --ref <ref>` is a [Verification run](../docs/security-audit.md#verification-run): it re-attempts the Reproduction of the findings in `<file>` (each a `###` section with `- **Concept id:**`, `- **Location:**` and `- **Observation:**`, as a deep report gives them) on `<ref>`, a local branch, tag or commit such as your fix branch, exported as committed, never the working tree. The recipe, the skill and the Threat pack still come from the default branch. It is confirm-only (no `full` walk, no exploration, no new findings): the agent gets the Verification-run procedure, not the full deep procedure, and the finding file goes in with its brief after the network cut. Its defaults are scan 15 min, 50 turns and the same token cap. Each flag needs the other, and `--report` is not taken with them (usage errors, exit 2). A finding file that is missing, unreadable or out of shape, or a ref that is not a local commit, is refused, exit 1, before any runtime starts. The report goes only to a new private folder; `deep-scan` prints each finding's `Reproduced: yes` (the fix does not hold) or `no` (it holds), exits 1 if the report misses one, and files or posts nothing. It is local only: refused, exit 1, in GitHub Actions (`GITHUB_ACTIONS=true`).
|
|
25
43
|
|
|
26
|
-
The package version matches the Agent-kit Release line: `@mnaimfaizy/agent-kit@1.0.0-beta.
|
|
44
|
+
The package version matches the Agent-kit Release line: `@mnaimfaizy/agent-kit@1.0.0-beta.15` is published from tag `v1.0.0-beta.15`, with npm provenance.
|
|
27
45
|
|
|
28
46
|
Full documentation: [Getting started](https://github.com/mnaimfaizy/agent-kit/blob/main/docs/getting-started.md) and [Adopt](https://github.com/mnaimfaizy/agent-kit/blob/main/docs/adopt.md#check-an-adoption-with-doctor).
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "Agent-kit Custom harness",
|
|
4
|
+
"description": "A Custom harness (ADR 0027): .agent-kit/harnesses/<name>.json, selected as custom:<name> and read only from the trusted commit. It holds data, never commands.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"package",
|
|
9
|
+
"version",
|
|
10
|
+
"profile",
|
|
11
|
+
"default_model",
|
|
12
|
+
"launch",
|
|
13
|
+
"checkout_config",
|
|
14
|
+
"instruction_files"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"$schema": { "type": "string" },
|
|
18
|
+
"display_name": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9 ._()+-]{0,59}$",
|
|
21
|
+
"errorMessage": "must be a short plain name: letters, digits, spaces and . _ ( ) + -"
|
|
22
|
+
},
|
|
23
|
+
"package": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"maxLength": 214,
|
|
26
|
+
"pattern": "^(@[a-z0-9][a-z0-9._-]*/)?[a-z0-9][a-z0-9._-]*$",
|
|
27
|
+
"errorMessage": "must be one npm package name, with no version, URL or path"
|
|
28
|
+
},
|
|
29
|
+
"version": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-[0-9A-Za-z.-]+)?(\\+[0-9A-Za-z.-]+)?$",
|
|
32
|
+
"errorMessage": "must be an exact version, such as 1.2.3: no range, tag or wildcard"
|
|
33
|
+
},
|
|
34
|
+
"profile": {
|
|
35
|
+
"enum": ["anthropic", "openai", "gemini-api"],
|
|
36
|
+
"errorMessage": "must name a model proxy profile: anthropic, openai or gemini-api"
|
|
37
|
+
},
|
|
38
|
+
"hosts": {
|
|
39
|
+
"not": {},
|
|
40
|
+
"errorMessage": "a Custom harness names no hosts: its sandbox reaches only the model proxy, through its profile"
|
|
41
|
+
},
|
|
42
|
+
"default_model": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:@/\\[\\]-]*$",
|
|
45
|
+
"errorMessage": "must be a plain model id"
|
|
46
|
+
},
|
|
47
|
+
"effort_values": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
52
|
+
"errorMessage": "must be a plain effort name"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"launch": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"required": ["argv"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"argv": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"minItems": 1,
|
|
63
|
+
"items": {
|
|
64
|
+
"anyOf": [
|
|
65
|
+
{
|
|
66
|
+
"type": "string",
|
|
67
|
+
"pattern": "^(?![\\s\\S]*(?<!\\$)\\{(?!(?:model|effort|brief|proxy_url)\\})[A-Za-z_][A-Za-z0-9_-]*\\})[^\\u0000]*$"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "array",
|
|
71
|
+
"minItems": 1,
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"pattern": "^(?![\\s\\S]*(?<!\\$)\\{(?!(?:model|effort|brief|proxy_url)\\})[A-Za-z_][A-Za-z0-9_-]*\\})[^\\u0000]*$"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"errorMessage": "must be a word, or a list of words left out together when a slot in them is empty; the only slots are {model}, {effort}, {brief} and {proxy_url}"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"stdin": {
|
|
82
|
+
"enum": ["{brief}", null],
|
|
83
|
+
"errorMessage": "must be \"{brief}\", to pass the brief on stdin, or null"
|
|
84
|
+
},
|
|
85
|
+
"files": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": false,
|
|
90
|
+
"required": ["path", "text"],
|
|
91
|
+
"properties": {
|
|
92
|
+
"path": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"pattern": "^/agent-kit/custom/(?!(?:.*/)?\\.{1,2}(?:/|$))[A-Za-z0-9._][A-Za-z0-9._/-]*(?<!/)$",
|
|
95
|
+
"errorMessage": "must be a file under /agent-kit/custom/, with no . or .. part"
|
|
96
|
+
},
|
|
97
|
+
"text": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"pattern": "^(?![\\s\\S]*(?<!\\$)\\{(?!(?:model|effort|brief|proxy_url)\\})[A-Za-z_][A-Za-z0-9_-]*\\})[^\\u0000]*$",
|
|
100
|
+
"errorMessage": "must be text whose only slots are {model}, {effort}, {brief} and {proxy_url}"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"env": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"propertyNames": {
|
|
108
|
+
"pattern": "^(?!(?:GITHUB_|GH_|ACTIONS_|AGENT_KIT_|(?:ANTHROPIC|OPENAI|GEMINI)_API_KEY$))[A-Za-z_][A-Za-z0-9_]*$",
|
|
109
|
+
"errorMessage": "must be a variable name; the kit sets the credential variable and the AGENT_KIT_ ones, and no GitHub variable enters the sandbox"
|
|
110
|
+
},
|
|
111
|
+
"additionalProperties": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"pattern": "^(?![\\s\\S]*(?<!\\$)\\{(?!(?:model|effort|brief|proxy_url)\\})[A-Za-z_][A-Za-z0-9_-]*\\})[^\\u0000]*$",
|
|
114
|
+
"errorMessage": "must be text whose only slots are {model}, {effort}, {brief} and {proxy_url}"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"checkout_config": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"pattern": "^(?!/)(?!(?:.*/)?\\.{1,2}(?:/|$))(?!\\.git(?:/|$))[A-Za-z0-9._@][A-Za-z0-9._@/-]*(?<!/)$",
|
|
124
|
+
"errorMessage": "must be a path in the repository: relative, with no . or .. part, and not .git"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"instruction_files": {
|
|
128
|
+
"type": "array",
|
|
129
|
+
"items": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"pattern": "^(?!/)(?!(?:.*/)?\\.{1,2}(?:/|$))(?!\\.git(?:/|$))[A-Za-z0-9._@][A-Za-z0-9._@/-]*(?<!/)$",
|
|
132
|
+
"errorMessage": "must be a path in the repository: relative, with no . or .. part, and not .git"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"probe_shell_tool": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"pattern": "^[A-Za-z0-9_.:-]+$",
|
|
138
|
+
"errorMessage": "must be the name of one tool the harness declares"
|
|
139
|
+
},
|
|
140
|
+
"support_levels": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"additionalProperties": false,
|
|
143
|
+
"properties": {
|
|
144
|
+
"deep-scan": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"additionalProperties": false,
|
|
147
|
+
"required": ["level", "run"],
|
|
148
|
+
"properties": {
|
|
149
|
+
"level": {
|
|
150
|
+
"enum": ["tried", "verified"],
|
|
151
|
+
"errorMessage": "must be tried or verified: leave a Stage with no recorded run out"
|
|
152
|
+
},
|
|
153
|
+
"run": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"pattern": "^https://[^\\s]+$",
|
|
156
|
+
"errorMessage": "must be the https URL of the run"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"security-audit": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"additionalProperties": false,
|
|
163
|
+
"required": ["level", "run"],
|
|
164
|
+
"properties": {
|
|
165
|
+
"level": {
|
|
166
|
+
"enum": ["tried", "verified"],
|
|
167
|
+
"errorMessage": "must be tried or verified: leave a Stage with no recorded run out"
|
|
168
|
+
},
|
|
169
|
+
"run": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"pattern": "^https://[^\\s]+$",
|
|
172
|
+
"errorMessage": "must be the https URL of the run"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"review": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"additionalProperties": false,
|
|
179
|
+
"required": ["level", "run"],
|
|
180
|
+
"properties": {
|
|
181
|
+
"level": {
|
|
182
|
+
"enum": ["tried", "verified"],
|
|
183
|
+
"errorMessage": "must be tried or verified: leave a Stage with no recorded run out"
|
|
184
|
+
},
|
|
185
|
+
"run": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"pattern": "^https://[^\\s]+$",
|
|
188
|
+
"errorMessage": "must be the https URL of the run"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"plan": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"additionalProperties": false,
|
|
195
|
+
"required": ["level", "run"],
|
|
196
|
+
"properties": {
|
|
197
|
+
"level": {
|
|
198
|
+
"enum": ["tried", "verified"],
|
|
199
|
+
"errorMessage": "must be tried or verified: leave a Stage with no recorded run out"
|
|
200
|
+
},
|
|
201
|
+
"run": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"pattern": "^https://[^\\s]+$",
|
|
204
|
+
"errorMessage": "must be the https URL of the run"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"implement": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"additionalProperties": false,
|
|
211
|
+
"required": ["level", "run"],
|
|
212
|
+
"properties": {
|
|
213
|
+
"level": {
|
|
214
|
+
"enum": ["tried", "verified"],
|
|
215
|
+
"errorMessage": "must be tried or verified: leave a Stage with no recorded run out"
|
|
216
|
+
},
|
|
217
|
+
"run": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"pattern": "^https://[^\\s]+$",
|
|
220
|
+
"errorMessage": "must be the https URL of the run"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"review-response": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"additionalProperties": false,
|
|
227
|
+
"required": ["level", "run"],
|
|
228
|
+
"properties": {
|
|
229
|
+
"level": {
|
|
230
|
+
"enum": ["tried", "verified"],
|
|
231
|
+
"errorMessage": "must be tried or verified: leave a Stage with no recorded run out"
|
|
232
|
+
},
|
|
233
|
+
"run": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"pattern": "^https://[^\\s]+$",
|
|
236
|
+
"errorMessage": "must be the https URL of the run"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
package/harnesses.json
CHANGED
|
@@ -20,29 +20,267 @@
|
|
|
20
20
|
"supportLevels": {
|
|
21
21
|
"deep-scan": {
|
|
22
22
|
"level": "tried",
|
|
23
|
-
"run": "https://github.com/mnaimfaizy/agent-kit/issues/458#issuecomment-7249921732"
|
|
23
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/issues/458#issuecomment-7249921732",
|
|
24
|
+
"wired": true
|
|
24
25
|
},
|
|
25
26
|
"security-audit": {
|
|
27
|
+
"level": "tried",
|
|
28
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/46854989738",
|
|
29
|
+
"wired": true
|
|
30
|
+
},
|
|
31
|
+
"review": {
|
|
32
|
+
"level": "tried",
|
|
33
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/46853470393",
|
|
34
|
+
"wired": true
|
|
35
|
+
},
|
|
36
|
+
"plan": {
|
|
37
|
+
"level": "tried",
|
|
38
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/46849892166",
|
|
39
|
+
"wired": true
|
|
40
|
+
},
|
|
41
|
+
"implement": {
|
|
42
|
+
"level": "tried",
|
|
43
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/46850644168",
|
|
44
|
+
"wired": true
|
|
45
|
+
},
|
|
46
|
+
"review-response": {
|
|
47
|
+
"level": "tried",
|
|
48
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/46853902574",
|
|
49
|
+
"wired": true
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"codex": {
|
|
54
|
+
"displayName": "Codex CLI",
|
|
55
|
+
"secrets": [
|
|
56
|
+
{
|
|
57
|
+
"name": "openai_api_key",
|
|
58
|
+
"whereToGet": "Create an API key in the OpenAI platform, in a project with its own budget: https://platform.openai.com/api-keys."
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"effortValues": ["low", "medium", "high", "xhigh", "max", "ultra"],
|
|
62
|
+
"noEffort": false,
|
|
63
|
+
"defaultModel": "gpt-6.2-sol",
|
|
64
|
+
"supportLevels": {
|
|
65
|
+
"deep-scan": {
|
|
26
66
|
"level": "documented",
|
|
27
|
-
"run": null
|
|
67
|
+
"run": null,
|
|
68
|
+
"wired": true
|
|
69
|
+
},
|
|
70
|
+
"security-audit": {
|
|
71
|
+
"level": "tried",
|
|
72
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/46844164694",
|
|
73
|
+
"wired": true
|
|
28
74
|
},
|
|
29
75
|
"review": {
|
|
76
|
+
"level": "tried",
|
|
77
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/46835416383",
|
|
78
|
+
"wired": true
|
|
79
|
+
},
|
|
80
|
+
"plan": {
|
|
81
|
+
"level": "tried",
|
|
82
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/46826363622",
|
|
83
|
+
"wired": true
|
|
84
|
+
},
|
|
85
|
+
"implement": {
|
|
86
|
+
"level": "tried",
|
|
87
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/46833250256",
|
|
88
|
+
"wired": true
|
|
89
|
+
},
|
|
90
|
+
"review-response": {
|
|
91
|
+
"level": "tried",
|
|
92
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/46837975839",
|
|
93
|
+
"wired": true
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"gemini": {
|
|
98
|
+
"displayName": "Gemini CLI",
|
|
99
|
+
"secrets": [
|
|
100
|
+
{
|
|
101
|
+
"name": "gemini_api_key",
|
|
102
|
+
"whereToGet": "Create an API key in Google AI Studio, in a project with its own budget: https://aistudio.google.com/apikey."
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"effortValues": [],
|
|
106
|
+
"noEffort": true,
|
|
107
|
+
"defaultModel": "auto",
|
|
108
|
+
"supportLevels": {
|
|
109
|
+
"deep-scan": {
|
|
110
|
+
"level": "documented",
|
|
111
|
+
"run": null,
|
|
112
|
+
"wired": true
|
|
113
|
+
},
|
|
114
|
+
"security-audit": {
|
|
30
115
|
"level": "documented",
|
|
31
|
-
"run": null
|
|
116
|
+
"run": null,
|
|
117
|
+
"wired": false
|
|
118
|
+
},
|
|
119
|
+
"review": {
|
|
120
|
+
"level": "tried",
|
|
121
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/47025534828",
|
|
122
|
+
"wired": true
|
|
32
123
|
},
|
|
33
124
|
"plan": {
|
|
125
|
+
"level": "tried",
|
|
126
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/47022825316",
|
|
127
|
+
"wired": true
|
|
128
|
+
},
|
|
129
|
+
"implement": {
|
|
130
|
+
"level": "tried",
|
|
131
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/47023347347",
|
|
132
|
+
"wired": true
|
|
133
|
+
},
|
|
134
|
+
"review-response": {
|
|
135
|
+
"level": "tried",
|
|
136
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/47027665621",
|
|
137
|
+
"wired": true
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"antigravity": {
|
|
142
|
+
"displayName": "Antigravity CLI",
|
|
143
|
+
"secrets": [
|
|
144
|
+
{
|
|
145
|
+
"name": "gemini_api_key",
|
|
146
|
+
"whereToGet": "Create an API key in Google AI Studio, in a project with its own budget: https://aistudio.google.com/apikey."
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"effortValues": ["low", "medium", "high", "xhigh", "max"],
|
|
150
|
+
"noEffort": false,
|
|
151
|
+
"defaultModel": "gemini-3.1-pro",
|
|
152
|
+
"supportLevels": {
|
|
153
|
+
"deep-scan": {
|
|
154
|
+
"level": "documented",
|
|
155
|
+
"run": null,
|
|
156
|
+
"wired": true
|
|
157
|
+
},
|
|
158
|
+
"security-audit": {
|
|
34
159
|
"level": "documented",
|
|
35
|
-
"run": null
|
|
160
|
+
"run": null,
|
|
161
|
+
"wired": false
|
|
162
|
+
},
|
|
163
|
+
"review": {
|
|
164
|
+
"level": "tried",
|
|
165
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/47069605427",
|
|
166
|
+
"wired": true
|
|
167
|
+
},
|
|
168
|
+
"plan": {
|
|
169
|
+
"level": "tried",
|
|
170
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/47068109902",
|
|
171
|
+
"wired": true
|
|
36
172
|
},
|
|
37
173
|
"implement": {
|
|
174
|
+
"level": "tried",
|
|
175
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/47068557808",
|
|
176
|
+
"wired": true
|
|
177
|
+
},
|
|
178
|
+
"review-response": {
|
|
179
|
+
"level": "tried",
|
|
180
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/47070131711",
|
|
181
|
+
"wired": true
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"opencode": {
|
|
186
|
+
"displayName": "opencode",
|
|
187
|
+
"secrets": [
|
|
188
|
+
{
|
|
189
|
+
"name": "anthropic_api_key",
|
|
190
|
+
"provider": "anthropic",
|
|
191
|
+
"whereToGet": "For an anthropic/ model: create an API key in a dedicated Anthropic Console workspace with its own spend limit: https://console.anthropic.com/settings/keys."
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "openai_api_key",
|
|
195
|
+
"provider": "openai",
|
|
196
|
+
"whereToGet": "For an openai/ model: create an API key in the OpenAI platform, in a project with its own budget: https://platform.openai.com/api-keys."
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "gemini_api_key",
|
|
200
|
+
"provider": "google",
|
|
201
|
+
"whereToGet": "For a google/ model: create an API key in Google AI Studio, in a project with its own budget: https://aistudio.google.com/apikey."
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"effortValues": [],
|
|
205
|
+
"noEffort": true,
|
|
206
|
+
"defaultModel": "anthropic/claude-opus-5-5",
|
|
207
|
+
"supportLevels": {
|
|
208
|
+
"deep-scan": {
|
|
38
209
|
"level": "documented",
|
|
39
|
-
"run": null
|
|
210
|
+
"run": null,
|
|
211
|
+
"wired": true
|
|
212
|
+
},
|
|
213
|
+
"security-audit": {
|
|
214
|
+
"level": "documented",
|
|
215
|
+
"run": null,
|
|
216
|
+
"wired": false
|
|
217
|
+
},
|
|
218
|
+
"review": {
|
|
219
|
+
"level": "documented",
|
|
220
|
+
"run": null,
|
|
221
|
+
"wired": false
|
|
222
|
+
},
|
|
223
|
+
"plan": {
|
|
224
|
+
"level": "documented",
|
|
225
|
+
"run": null,
|
|
226
|
+
"wired": false
|
|
227
|
+
},
|
|
228
|
+
"implement": {
|
|
229
|
+
"level": "documented",
|
|
230
|
+
"run": null,
|
|
231
|
+
"wired": false
|
|
40
232
|
},
|
|
41
233
|
"review-response": {
|
|
42
234
|
"level": "documented",
|
|
43
|
-
"run": null
|
|
235
|
+
"run": null,
|
|
236
|
+
"wired": false
|
|
44
237
|
}
|
|
45
238
|
}
|
|
239
|
+
},
|
|
240
|
+
"cursor": {
|
|
241
|
+
"displayName": "Cursor CLI",
|
|
242
|
+
"secrets": [
|
|
243
|
+
{
|
|
244
|
+
"name": "cursor_api_key",
|
|
245
|
+
"whereToGet": "Create an API key with the permission \"Sign in to the Cursor CLI and SDK\" in the Grok Build dashboard (Cursor is now Grok Build): https://grok.com/dashboard/api-keys. An existing Cursor (legacy) key keeps working. It sits in the sandbox for the run, so use one from an account with its own spend limit."
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"effortValues": [],
|
|
249
|
+
"noEffort": true,
|
|
250
|
+
"defaultModel": "auto",
|
|
251
|
+
"supportLevels": {
|
|
252
|
+
"deep-scan": {
|
|
253
|
+
"level": "documented",
|
|
254
|
+
"run": null,
|
|
255
|
+
"wired": false
|
|
256
|
+
},
|
|
257
|
+
"security-audit": {
|
|
258
|
+
"level": "documented",
|
|
259
|
+
"run": null,
|
|
260
|
+
"wired": false
|
|
261
|
+
},
|
|
262
|
+
"review": {
|
|
263
|
+
"level": "documented",
|
|
264
|
+
"run": null,
|
|
265
|
+
"wired": true
|
|
266
|
+
},
|
|
267
|
+
"plan": {
|
|
268
|
+
"level": "tried",
|
|
269
|
+
"run": "https://github.com/mnaimfaizy/agent-kit/actions/runs/47244849657",
|
|
270
|
+
"wired": true
|
|
271
|
+
},
|
|
272
|
+
"implement": {
|
|
273
|
+
"level": "documented",
|
|
274
|
+
"run": null,
|
|
275
|
+
"wired": true
|
|
276
|
+
},
|
|
277
|
+
"review-response": {
|
|
278
|
+
"level": "documented",
|
|
279
|
+
"run": null,
|
|
280
|
+
"wired": false
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"levelCap": "tried"
|
|
46
284
|
}
|
|
47
285
|
}
|
|
48
286
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mnaimfaizy/agent-kit",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.15",
|
|
4
4
|
"description": "Adopt, upgrade and check Agent-kit in a Consumer repository. Reads kit files from the pinned git tag.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"bin/agent-kit.mjs",
|
|
12
12
|
"src/",
|
|
13
|
-
"harnesses.json"
|
|
13
|
+
"harnesses.json",
|
|
14
|
+
"custom-harness.schema.json"
|
|
14
15
|
],
|
|
15
16
|
"engines": {
|
|
16
17
|
"node": ">=22"
|