@jeiemgi/cckit 0.11.0 → 0.12.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/.claude-plugin/plugin.json +1 -1
- package/AGENTS.md +45 -41
- package/README.md +39 -29
- package/bin/cckit +111 -70
- package/cckit.config.json +1 -1
- package/package.json +1 -1
- package/scripts/advisor-test.sh +55 -0
- package/scripts/autopilot.sh +4 -4
- package/scripts/capture-project-ids.sh +16 -0
- package/scripts/check.sh +6 -0
- package/scripts/content-skills-test.sh +1 -1
- package/scripts/copilot-loop-test.sh +8 -8
- package/scripts/force-push-fence-test.sh +44 -0
- package/scripts/force-push-fence.baseline +1 -0
- package/scripts/force-push-fence.sh +51 -0
- package/scripts/init.sh +2 -2
- package/scripts/instruction-budget-baseline.txt +1 -1
- package/scripts/kit-doctor-test.sh +5 -0
- package/scripts/kit-doctor.sh +96 -2
- package/scripts/lib/agent-resolve-test.sh +2 -0
- package/scripts/lib/agent-resolve.sh +3 -2
- package/scripts/lib/board-view.sh +3 -3
- package/scripts/lib/captain.sh +1 -1
- package/scripts/lib/copilot-test.sh +4 -4
- package/scripts/lib/copilot.sh +13 -13
- package/scripts/lib/effort-close-subs-test.sh +96 -0
- package/scripts/lib/effort-dispatch-test.sh +2 -2
- package/scripts/lib/effort-ops-test.sh +98 -9
- package/scripts/lib/effort-ops.sh +390 -63
- package/scripts/lib/effort-parity-test.sh +37 -31
- package/scripts/lib/effort-plan.sh +3 -3
- package/scripts/lib/effort-review-test.sh +107 -0
- package/scripts/lib/effort-review.sh +93 -0
- package/scripts/lib/effort-slug-test.sh +4 -0
- package/scripts/lib/effort-slug.sh +5 -4
- package/scripts/lib/effort.sh +47 -74
- package/scripts/lib/forge-github.sh +18 -7
- package/scripts/lib/gh-board-add-test.sh +118 -0
- package/scripts/lib/gh-project-test.sh +115 -0
- package/scripts/lib/gh-project.sh +128 -6
- package/scripts/lib/gh-rest-test.sh +12 -8
- package/scripts/lib/gh-rest.sh +189 -15
- package/scripts/lib/git-core-test.sh +2 -2
- package/scripts/lib/grill-record-test.sh +49 -0
- package/scripts/lib/grill-record.sh +88 -0
- package/scripts/lib/handoff.sh +1 -1
- package/scripts/lib/kit-brief-test.sh +29 -0
- package/scripts/lib/kit-brief.sh +91 -6
- package/scripts/lib/kit-lib-test.sh +1 -1
- package/scripts/lib/kit-lib.sh +7 -7
- package/scripts/lib/kit-msg.sh +3 -3
- package/scripts/lib/kit-status.sh +1 -1
- package/scripts/lib/kit-task-ops-test.sh +17 -0
- package/scripts/lib/kit-task-ops.sh +73 -22
- package/scripts/lib/kto-task-new-test.sh +18 -0
- package/scripts/lib/kto-task-pr-merge-test.sh +44 -0
- package/scripts/lib/kto-task-pr-test.sh +3 -3
- package/scripts/lib/light-task.sh +16 -1
- package/scripts/lib/loose-issues.sh +65 -0
- package/scripts/lib/naming-test.sh +112 -0
- package/scripts/lib/naming-verbs-test.sh +126 -0
- package/scripts/lib/naming.sh +172 -0
- package/scripts/lib/next-test.sh +1 -1
- package/scripts/lib/next.sh +6 -6
- package/scripts/lib/plan-machine.sh +9 -9
- package/scripts/lib/plan-next.sh +4 -4
- package/scripts/lib/qa-lane.sh +1 -1
- package/scripts/lib/spec-lint-test.sh +63 -0
- package/scripts/lib/spec-lint.sh +95 -0
- package/scripts/lib/sprint-test.sh +96 -0
- package/scripts/lib/sprint.sh +216 -0
- package/scripts/lib/stage-receipt-test.sh +132 -0
- package/scripts/lib/stage-receipt.sh +184 -5
- package/scripts/lib/test-forge-shim.sh +2 -1
- package/scripts/lib/verbs.sh +1 -1
- package/scripts/lib/verbs.tsv +17 -15
- package/scripts/lib/worker-brief-test.sh +1 -1
- package/scripts/lib/worker-brief.sh +1 -1
- package/scripts/lib/worktree-start.sh +42 -1
- package/scripts/loose-issues-test.sh +102 -0
- package/scripts/loose-issues.baseline +5 -0
- package/scripts/night-grant.sh +1 -1
- package/scripts/portable-test.sh +1 -1
- package/scripts/status-test.sh +1 -1
- package/scripts/status.sh +4 -4
- package/scripts/task-sync-test.sh +34 -0
- package/scripts/task-sync.sh +81 -1
- package/scripts/terms-check.sh +1 -1
- package/scripts/verbs-ratchet-test.sh +6 -1
- package/scripts/verbs-test.sh +4 -4
- package/scripts/verbs.baseline +1 -1
- package/skills/kit-add/SKILL.md +1 -1
- package/skills/kit-advisor/SKILL.md +75 -0
- package/skills/kit-advisor/references/close.md +53 -0
- package/skills/kit-advisor/references/grill.md +69 -0
- package/skills/kit-advisor/references/orchestrate.md +56 -0
- package/skills/kit-advisor/references/plan.md +64 -0
- package/skills/kit-advisor/references/review.md +47 -0
- package/skills/kit-advisor/references/step-report.md +61 -0
- package/skills/kit-autopilot/SKILL.md +1 -1
- package/skills/kit-cleanup/SKILL.md +2 -2
- package/skills/kit-effort-close/SKILL.md +16 -8
- package/skills/kit-effort-new/SKILL.md +11 -8
- package/skills/kit-effort-pr/SKILL.md +7 -7
- package/skills/kit-next/SKILL.md +7 -7
- package/skills/kit-plan-next/SKILL.md +10 -11
- package/skills/kit-status/SKILL.md +5 -5
- package/skills/kit-task-pr-auto/SKILL.md +1 -1
- package/skills/kit-task-pr-merge/SKILL.md +3 -3
- package/skills/kit-task-sync/SKILL.md +2 -0
- package/skills/routing.yaml +5 -0
- package/templates/hooks/kit-mail-check.sh.tmpl +1 -1
- package/templates/instructions.md.tmpl +3 -3
- package/templates/rules/authoring.md +7 -3
- package/templates/rules/delegation-brief.md +4 -0
- package/templates/rules/effort-model.md +34 -31
- package/templates/rules/gate-and-review.md +1 -1
- package/templates/rules/merge-safety.md +9 -7
- package/templates/rules/naming-and-ids.md +20 -24
- package/templates/rules/plan-next.md +5 -5
- package/templates/skills/campaign/SKILL.md +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cckit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"installationPreference": "beta",
|
|
5
5
|
"description": "cckit — a project operating system for coding agents. The full GitHub work lifecycle (start/pr/close/sync, efforts, worktrees, orchestrate, gc) as agents + skills + rules, drivable by Claude Code and any other agent. Driven from cckit.config.json; no org or repo hardcoded.",
|
|
6
6
|
"author": {
|
package/AGENTS.md
CHANGED
|
@@ -6,7 +6,7 @@ per-agent adapters are described in [the Adapters page](docs-site/src/content/do
|
|
|
6
6
|
|
|
7
7
|
## Ground rules
|
|
8
8
|
|
|
9
|
-
- **Read state before acting.** `cckit
|
|
9
|
+
- **Read state before acting.** `cckit status --board --json` returns the board as one JSON object. Decide from data.
|
|
10
10
|
- **One issue = one branch = one worktree = one PR.** `cckit start <issue>` creates the isolated
|
|
11
11
|
worktree; do all work there; `cckit pr <issue>` opens the PR. Never commit to the base branch.
|
|
12
12
|
**The effort flow is the one exception, and it is deliberate:** an effort is *1 parent issue = 1
|
|
@@ -17,9 +17,9 @@ per-agent adapters are described in [the Adapters page](docs-site/src/content/do
|
|
|
17
17
|
`cckit effort close <N>`: `cckit merge` refuses an `effort/*` head, because its squash skips the
|
|
18
18
|
per-sub trace snapshot (`KIT_FORCE=1` merges anyway, with a warning). Full spec:
|
|
19
19
|
`.claude/rules/effort-model.md`.
|
|
20
|
-
- **Structured output, TOON-first.** Append `--
|
|
21
|
-
reads (
|
|
22
|
-
(start, pr, close) return one JSON object. Human (pretty) output is the default; agents prefer `--
|
|
20
|
+
- **Structured output, TOON-first.** Append `--json` to any verb for machine-readable output. List
|
|
21
|
+
reads (next, plan, wave) come back as **TOON** (token-cheap), the board (`status --board`) as one JSON document; single-result action verbs
|
|
22
|
+
(start, pr, close) return one JSON object. Human (pretty) output is the default; agents prefer `--json`.
|
|
23
23
|
- **Idempotent + safe.** Re-running a verb on an already-done step is a no-op, not an error.
|
|
24
24
|
- **Never invent paths or config.** Everything resolves from `cckit.config.json`.
|
|
25
25
|
- **Hand off when you stop with unfinished work.** `cckit handoff "<what's pending, next step, refs>"`
|
|
@@ -45,6 +45,7 @@ copy; `bash scripts/terms-check.sh` names a drift between the two). A term is a
|
|
|
45
45
|
| pick up the next unblocked issue · fan the unblocked wave out to builders | `kit-next` | Task, Wave |
|
|
46
46
|
| decide what to build next from what the kit already does | `kit-plan-next` | Effort |
|
|
47
47
|
| run an approved plan unattended, waves merged as they go | `kit-autopilot` | Captain |
|
|
48
|
+
| create or plan an effort: grill, plan, orchestrate, review, close | `kit-advisor` | Advisor |
|
|
48
49
|
| track a new piece of work as an issue | `kit-task-new` | Task |
|
|
49
50
|
| start work on an issue in its own worktree | `kit-task-start` | Worktree |
|
|
50
51
|
| open the PR for an issue | `kit-task-pr` | Task |
|
|
@@ -85,52 +86,55 @@ carries the flags and behaviour of each verb.
|
|
|
85
86
|
| Verb | Purpose | LLM mode |
|
|
86
87
|
| --- | --- | --- |
|
|
87
88
|
| `cckit init [<folder>] [--adapter <claude\|codex\|both>]` | guided project setup, then the scaffold. Before anything is written init classifies the folder: a repository with a remote, a repository without one, a project without git, files with no project marker, an empty or missing folder, or a home/system folder (`$HOME`, `~/Desktop`, `~/Documents`, `~/Downloads`, `/`), which is never scaffolded into. Questions (is this a new project, where it lives, recipe, database, profile) are answered from `--answers FILE` (a JSON object `{"<key>":"<value>"}`: `new_project`, `folder_use`, `project_name`, `location`, `recipe`, `database_needed`, `database`, `profile`), else on a terminal; a key the file omits takes the recommended option. With neither a terminal nor an answers file init runs from flags alone, and a home folder exits 2. `--recipe <id>` starts a NEW project from `recipes/<id>.json` (shipped: `nextjs-shadcn`), and the recipe's `config` object is merged into the project config (`nextjs-shadcn` sets `tasks.check` to `pnpm build && pnpm lint` and `tasks.design` to `true`, which makes every task of the project a page task and installs the `page-design` skill); `--database <id>` applies `databases/<id>.json` (shipped: `supabase`: packages, `lib/supabase/{client,server}.ts`, variable names with placeholders in the gitignored `.env.local`, and a guide page; values are typed by the user and never printed). Then the git + GitHub steps, listed first and run after one confirmation (a terminal prompt, or `--yes`; with no terminal and no `--yes` they do not run and the last lines say so, naming what is left undone and the command for it: `Not done: the cckit files are not committed.` and, when the config's base branch is in neither the repository nor origin, `Not done: the branch '<base>' … does not exist`; the base branch written without the setup is the repository's GitHub default, else `main` when it exists or there is no commit, else the checked-out branch): `git init` + first commit, on a repository that already had commits ONE commit `chore: add the cckit project files` on the base branch holding the files init wrote (no env file, nothing git ignores, no script of the project's own, nothing the project had staged; skipped once the project config is tracked; `failed` when the folder is on another branch than an existing base), `gh repo create` (private; `--public` for public) or the existing remote, base branch `develop` created and pushed (when GitHub already has the base branch, the kit files commit is pushed to it), labels + milestones (missing ones only), delete-head-branches, base-branch protection (a plan that refuses it is `skipped` with the reason), Projects v2 ids when the board is on, the doctor report. Each step prints `done` / `skipped` / `failed`; a failed step does not stop the later ones and the run exits 1; a re-run skips finished steps. `--no-github` is the scaffold alone. Every scaffold adds `.cckit/` and `.claude/worktrees/` to `.gitignore`. The rendered instruction file names the project's base branch in its PR section and, with `tasks.default: "light"`, names the task files as the source of truth; the closing next steps of such a project name `cckit task new` / `cckit task start`, not the label and milestone scripts. `--dry-run` prints the recipe commands and every step and writes nothing, the folder included. Exit 0 done · 1 a step failed · 2 refused before any write (home folder, unknown recipe or answer, a recipe on a non-empty folder). `--upgrade` never enters this flow. The scaffold: config + the selected adapter(s), default `claude`. `claude` writes `CLAUDE.md` + `.claude/`; `codex` writes `AGENTS.md` + `.agents/{skills,rules}` and, when it is the only adapter, keeps the config at the root `cckit.config.json` and the ownership manifest at `.cckit/kit.manifest.json` — no `.claude/` tree. `--plain-language <on\|off>` installs the `plain-language` rule and sets `plainLanguage.enabled` (default: the profile's). `--profile <name>` picks one of `profiles/*.json` (`software`, `content`, `marketing`, `research`, `automation`, `minimal`); `marketing` is `content` plus `tasks.default: "light"`, plain language on, and the `brand-voice`, `campaign` and `page-design` skills. `page-design` is also installed by any recipe or project config that sets `tasks.design: true` (on `--upgrade` too, when the project is behind the installed version; a project already at it is refused before anything is added, and gets the skill from `cckit add page-design`). It coordinates three third-party design skills that init never installs: the closing next steps offer them as `cckit add impeccable`, `cckit add emil-design-eng`, `cckit add web-design-guidelines`, then `cckit doctor --fix`. The selection is stored as `adapters` in the config; `--upgrade` keeps it, and `--upgrade --adapter <name>` adds an adapter without rewriting the other's files. Both adapters get the same hook scripts — base-branch commit guard, raw-git guard, session mail, session-start checks: Claude in `.claude/hooks/` (mail wired in the tracked `.claude/settings.json`), Codex in `.codex/hooks/`, registered in `.codex/hooks.json` by a merge that keeps the entries already there and uses no absolute path. Codex runs a project hook only after it is trusted (`/hooks`). Specialist agents come from one role source (`templates/agents/<role>.md`): Claude gets `.claude/agents/<role>/AGENT.md`, Codex gets `.codex/agents/<role>.toml` (`name`, `description`, `developer_instructions`); a Claude tool allowlist and model alias do not translate and are written into the TOML as comments. Not installed for Codex: memory hooks (they read Claude Code transcripts) | — |
|
|
88
|
-
| `cckit
|
|
89
|
-
| `cckit
|
|
90
|
-
| `cckit next` | the next unblocked issue + how to start it. With `tasks.default: "light"` in the config, a bare `cckit next` prints what `cckit task next` prints and makes no `gh` call (with `--
|
|
91
|
-
| `cckit plan` | wave plan: deps-ordered, priority-sorted within a wave, file-disjoint, session-fit | `--
|
|
92
|
-
| `cckit plan
|
|
93
|
-
| `cckit status` | where are we: the next effort that can start in each flow (no open blocker; p0 → p3, then lowest number), the light tasks when the project has any (counts by state, then the tasks somebody has to act on: `review`, `doing`, `draft`, `shared`; read from local git, no `gh` call and no fetch), local undone work, open PRs waiting on a human, cleanup available (local + remote), then one line with the resident instruction-file bytes (`CLAUDE.md` + rules without `paths:`) against the 150k limit and the three largest files | `--
|
|
89
|
+
| `cckit status --board` | board state / what's unblocked. Every read (not `--raw-json`, not a `--cached` hit) also writes `.cckit/board.md` atomically: one tab-separated line per open issue (`#N`, status, kind, effort token `E546` / `E546.3` / `-`, labels, title), grouped Efforts / Sub-issues / Standalone, for `rg '#572' <path>` (`.cckit/` is gitignored, so give the path; sync prints it). `--no-snapshot` skips it, `CCKIT_BOARD_SNAPSHOT=<path>` moves it; no forge, no file | `--llm` → TOON |
|
|
90
|
+
| `cckit status --board --json` | the board as ONE JSON object for a dashboard: per-role issues, `unassigned`, `blocked`, `stale`, `mergeQueue` (merge order). `--write` saves it atomically to `<git-common-dir>/kit-sync-cache.json` and never overwrites it with a failed or partial fetch; `--cached [TTL]` prints that cache with no `gh` call while it is younger than TTL seconds (default 60), else refreshes it; `--watch [SECS]` refreshes every SECS (default 30) and keeps the last good cache when a fetch fails; `--plan` inlines `effort plan`. Each fetch emits `op.start` / `op.done` (op `sync`) to `kit-events.jsonl`. `--write` / `--cached` / `--watch` refuse `--role` / `--milestone` (exit 2) | `--json` → JSON (`--llm` / `--output=json` stay TOON) |
|
|
91
|
+
| `cckit next` | the next unblocked issue + how to start it. With `tasks.default: "light"` in the config, a bare `cckit next` prints what `cckit task next` prints and makes no `gh` call (with `--json`, that verb's one JSON object or `null`, not TOON rows); any argument takes the issue path. Human output ends with the weekly cadence line (Monday `cckit effort plan --issues` · daily `cckit next` · Friday `cckit gc`); the TOON rows stay `{number,ctx,title}` | `--json` → TOON |
|
|
92
|
+
| `cckit effort plan --issues` | wave plan: deps-ordered, priority-sorted within a wave, file-disjoint, session-fit | `--json` → TOON |
|
|
93
|
+
| `cckit effort plan --next` | forward plan: inventory current skills/verbs/rules/docs → propose what to build next | `--json` → TOON |
|
|
94
|
+
| `cckit status` | where are we: the next effort that can start in each flow (no open blocker; p0 → p3, then lowest number), the light tasks when the project has any (counts by state, then the tasks somebody has to act on: `review`, `doing`, `draft`, `shared`; read from local git, no `gh` call and no fetch), local undone work, open PRs waiting on a human, cleanup available (local + remote), then one line with the resident instruction-file bytes (`CLAUDE.md` + rules without `paths:`) against the 150k limit and the three largest files | `--json` → JSON (`next_efforts` is one row per flow; `null` when the efforts could not be read) (`instruction_budget`, `null` when nothing was measured) (`light_tasks`: `{counts, attention}`, `null` when the project has no light task) |
|
|
94
95
|
| `cckit brief <issue>` | the delegation brief for an issue, from real state: worktree, seed freshness, owned files, the helpers they sit on, standing gotchas | — |
|
|
95
|
-
| `cckit wave [--adapter <claude\|codex\|both>]` | read open efforts, propose incoming waves: fan-out brief + captain drive. The wave data (issues, ctx, one runtime-neutral prompt per issue) is the same for every runtime; the dispatch wording is per adapter — Claude Code spawns Task subagents with worktree isolation, Codex is told to launch `cckit orchestrate --agent codex`, because cckit creates the worktrees there. Default: the project's stored `adapters` (`CCKIT_ADAPTER` overrides) | `--
|
|
96
|
+
| `cckit effort plan --wave [--adapter <claude\|codex\|both>]` | read open efforts, propose incoming waves: fan-out brief + captain drive. The wave data (issues, ctx, one runtime-neutral prompt per issue) is the same for every runtime; the dispatch wording is per adapter — Claude Code spawns Task subagents with worktree isolation, Codex is told to launch `cckit orchestrate --agent codex`, because cckit creates the worktrees there. Default: the project's stored `adapters` (`CCKIT_ADAPTER` overrides) | `--json` → TOON (wave data only, identical for both adapters) |
|
|
96
97
|
| `cckit watch [--merge] [--loop]` | captain: gate open PRs, squash-merge CLEAN, advance the wave | — |
|
|
97
|
-
| `cckit
|
|
98
|
-
| `cckit
|
|
99
|
-
| `cckit
|
|
100
|
-
| `cckit
|
|
101
|
-
| `cckit
|
|
102
|
-
| `cckit
|
|
103
|
-
| `cckit task
|
|
104
|
-
| `cckit task
|
|
105
|
-
| `cckit task
|
|
106
|
-
| `cckit task
|
|
107
|
-
| `cckit
|
|
108
|
-
| `cckit
|
|
109
|
-
| `cckit effort
|
|
98
|
+
| `cckit agent receipt <issue> --stage <s> [--no-remote]` · `cckit agent receipt <issue> --report <file> [--dry-run]` | `--stage` records one stage receipt from stdin, locally and as a comment on the issue. `--report` posts a step report's short trail comment on the issue: the `## Status` head, the report's URLs, the `## Waiting for a yes` items and the report's file name (never an absolute path), capped at 1500 characters. It refuses, posting nothing, when the comment would carry a leak-list word or a home path; `--dry-run` prints it; with no forge it says the comment was not posted and prints it | — |
|
|
99
|
+
| `cckit qa <up\|ready\|open\|stop\|verdict\|lanes> [--lane N]` | the QA lane, one review stack per lane (a lane is an issue number: the current branch's, or `--lane`). `up` launches the command declared under `qa` with the project's port env vars set to this lane's block and exits 0 only once every `qa.readiness` probe answers 2xx/3xx (`ready` waits on a launched lane; rc 1 names the failing probes and the launch log, rc 2 refuses a config problem, or a lane port another process already listens on, before launching). `open` prints and opens the changed screen — the PR body's `QA route: /path` line, else `qa.route` — and refuses a lane that is not usable. `stop` exits 0 only when nothing listens on the lane's ports; a listener the lane did not launch is left running (rc 1) unless `--force`. `verdict <pass\|fail>` writes a `qa` receipt bound to the reviewed commit, upserts one PR comment and mails a fail's notes to the builder; with no `pass\|fail` it reads back `pass` · `fail` · `stale` · `none`, exit 0 only for a pass on the current head. `captain.mergePolicy.requireQa` makes `cckit watch` hold a PR without that pass (`QA_MISSING`); a fail on the current head always blocks (`QA_FAILING`). `lanes` takes no argument and prints one row per lane that has a port slot, a launch record or a verdict: branch, ports, `up` · `partial` · `down` · `unknown` by who listens on those ports, the verdict (`pass` · `fail` · `stale` · `none`, or `unknown` when a verdict exists and no local branch does) and the worktree. It is read-only — no launch, no stop, no write, no `gh` or `curl` call — and exits 0 with or without lanes | `--json` → JSON (`lanes` → a JSON array of `{lane, branch, worktree, ports, up, verdict}`, `[]` with no lane) |
|
|
100
|
+
| `cckit start <issue\|E<n>\|E<n>.<step>> [slug]` | isolated worktree + branch, bootstrapped: env files copied, per-worktree dev PORT, deps installed at the selected targets. Precedence: **`worktree.installPaths` if set** (those dirs only, installed whether or not each declares dependencies — `[]` installs nothing, and the root/workspace checks are skipped entirely), **else** the root *only when* its manifest declares dependencies or it is a workspace root **with at least one member** (a non-empty `packages:` list, or a non-empty `workspaces` / `workspaces.packages` array), **else nothing** — so a dependency-free root never gets a stray empty `pnpm-lock.yaml`. `installPaths` entries that escape the worktree are refused. `KIT_WT_INSTALL=0` skips the install. **Claim-checked:** `cckit start [--force] <issue>` refuses (rc 1) when another live session already holds the issue's claim in `<git-common-dir>/kit-sessions/` — before the issue read, the fetch and `git worktree add`, so a refusal makes no branch and no worktree. `--force` / `KIT_FORCE=1` starts anyway and takes the claim; a claim whose session pid is dead is reaped; re-running from the same session or from inside the claimed worktree is the usual no-op. A board Status of In Progress or In Review only warns | `--json` |
|
|
101
|
+
| `cckit pr <issue> <summary> [--base <branch>]` | commit + push + open PR. `--base` targets a branch other than the configured base (`.github.baseBranch`) — a release PR `develop` → `main`, or a hotfix to the release branch; labels, milestone, board and `Closes #N` are unchanged. The body's checklist follows `pr.bodyStyle`: `code` (default) is `## Verification`, naming the diff; `content` is `## Review`, for a draft. The push exports the target as `KIT_PR_BASE` (set with or without `--base`), so a git pre-push hook can compare against the branch the PR targets. `--base` with no value exits 2 before the commit and the push | `--json` |
|
|
102
|
+
| `cckit hotfix <pr\|sha> [--base <branch>]` | carry ONE merged change to the release branch (`main` unless `--base` or `KIT_HOTFIX_BASE`): worktree `fix/<N>-hotfix-<base>` from `origin/<base>`, `git cherry-pick -x` (`-m 1` for a merge commit; every commit of a rebase-merged PR, oldest first), push with `KIT_PR_BASE=<base>`, PR titled after the source with `Cherry-pick of #N` in the body and no `Closes`. A digits-only source is a PR number and must be MERGED; anything else is a commit, whose PR number is read from a `(#N)` suffix or `Merge pull request #N`. Re-runnable: a picked commit is not picked twice and an open PR is reported, not re-created. A conflict stops before the push — resolve, `git cherry-pick --continue`, re-run | `--json` → JSON (`ok`, `url`, `worktree`, `detail`; a refusal is `ok:false` with the reason in `detail`) |
|
|
103
|
+
| `cckit close <issue> <summary>` | close issue + mark done | `--json` |
|
|
104
|
+
| `cckit task new "<title>"` · `task list [--all]` · `task next` | light tasks: work tracked in the project, with no GitHub issue. `new` writes `tasks/<id>.md` in the current checkout (flags `--priority p0..p3`, `--kind`, `--body`/`--body-file`) and commits nothing. `list` prints each open task's state, derived from git: `draft` (only this checkout) · `todo` (on the base branch) · `shared` (in a `task share` PR that has not merged) · `doing` (a `light/<id>-…` branch exists) · `review` (that branch's copy says done) · `done` / `dropped` (the base branch's copy says so; shown with `--all`). With `plainLanguage.enabled`, `list` adds one line under the table saying what `draft` means there. `next` is the first `todo`/`draft` by priority, then creation date. Records are read through the task source (`tasks.source`, default `file`; `tasks.dir`, default `tasks`). `cckit task default` prints `light` or `issues`: the project's default list (`tasks.default`, `issues` when unset) | `--json` → `new` one JSON object, `list` a JSON array, `next` one object or `null` |
|
|
105
|
+
| `cckit task start [--force] [--no-push] <id>` (alias `take`) | worktree `.claude/worktrees/light+<id>-<slug>` on branch `light/<id>-<slug>` from `origin/<base>`, bootstrapped like `cckit start`. A draft is committed on the branch and removed from the checkout it was created in; the branch is pushed unless `--no-push`. Re-running reuses the worktree. Refuses a done task, a `shared` task, and a task whose branch is on origin but not local unless `--force`. With no base branch here or on origin it stops and names the fix (`cckit init --yes`, or a `github.baseBranch` that exists). No session claim. `cckit gc` reports the branch `PROTECTED: light task <id> still OPEN` until the task is done on the base branch | `--json` → JSON (`ok`, `id`, `worktree`, `branch`) |
|
|
106
|
+
| `cckit task finish [<id>] "<summary>" [--all]` (alias `done`) | set `status: done` in the task's file on its branch, commit tracked changes (`--all` adds new files), push, open the PR against the base branch: title a Conventional Commit subject ending in `[<id>]`, no `Closes` line. With `pr.bodyStyle: content` the body carries the content review checklist. An open PR is reported, not re-created. The task is done when the PR merges; the verb never merges. Do not run `cckit pr` in a light worktree | `--json` → JSON (`ok`, `url`, `detail`) |
|
|
107
|
+
| `cckit task run <id> [--check "<cmd>"] [--max-iters N] [--max-seconds N] [--agent <cmd>] [--no-finish]` | delegate ONE task end to end: `task start` (the worktree is reused when it exists), one `cckit autopilot run` objective built from the task's title and notes, then `task finish --all` with a generated summary, and the review link on stdout. The gate is `--check`, else `tasks.check` in the project config, else none; it runs after the round, and a failing gate opens no PR. The run has no `--until`, so it is one round; `--max-seconds` also bounds that round; `--agent-arg <arg>` (repeatable) is passed to the agent CLI, and cckit adds no permission flag. A stopped earlier run on the task's branch is discarded, never resumed: the task record is the objective. A task already in `review` starts no agent: its open PR is reported, or opening it is retried. `--no-finish` stops after the run and prints `<worktree>\|<branch>\|<id>`. A **page task** is a task whose kind is `page` (`cckit task new --kind page "<title>"`) or any task in a project whose config sets `tasks.design: true`; nothing is inferred from the title or the notes. For one, the objective tells the agent to load the `page-design` skill and to write the design brief and self-review to `docs/design/<id>.md`, the agent is started so its CLI prints events (`claude -p --output-format stream-json --verbose`; Codex prints them already), and the PR body gains a `## Design` section plus the checklist item `Open the page in a browser and compare it with the design brief`. The section lists the skills the run loaded, read from those events and never from the agent's own text: `Design skills loaded in this run: …`, the design skills not loaded, other skills loaded, or `No design skill was loaded in this run.`; a Claude skill call counts only when its result is not an error, so a skill that is not installed is not listed. With no event in a round's output, or no run on record (`task finish` by hand), it says the list is not known. Exit 0 done · 1 the task could not be started · 2 usage, or the run was refused · 3 agent failed · 4 limit · 5 the round changed nothing · 6 gate failed · 7 the PR could not be opened · 130 interrupted; every non-zero exit opens no PR and its last stderr line names the reason. Never merges | `--json` → JSON (`ok`, `id`, `url`, `detail`) |
|
|
108
|
+
| `cckit task share ["<summary>"]` | one PR from `light/share-<timestamp>` that adds every draft in the current checkout to the base branch; the tasks list as `shared` until it merges. With no new drafts it retries an earlier share of this repository whose push or PR failed (exit 1 on a failed step), and reports an open PR instead of creating one | `--json` → JSON (`ok`, `url`, `detail`) |
|
|
109
|
+
| `cckit claims` | list the live session claims `cckit start` wrote: issue, session pid, start time, branch, worktree. Read-only — a dead session's claim is hidden here and reaped by the next `cckit start` on that issue | `--json` → JSON array |
|
|
110
|
+
| `cckit effort new --spec T "<name>" ["sub :: desc" …]` | parent (5-section body + ctx/kind/priority/role/flow labels) + linted native sub-issues — identical to `/kit-effort-new` (one shared core); `start`/`pr`/`close` take `<slug\|N>`. The body's `## Spec` (what done means, a list) is required: `--spec` or `--spec-file`, plain lines made `- ` bullets; a missing, empty or TODO/TBD-only Spec is refused before any write. `cckit effort close` re-reads it and refuses the same way; `--no-spec-check` skips that check and says so in one line | flags: `--spec/--spec-file` (required), `--flow/--role/--kind/--priority/--goal/--scope/--for-agents/--verification/--depends-on/--milestone`, `--slug`. `--kind` is one of `feat fix task chore security scaffold ci adr spike plan` (default `task`) or a content kind `post campaign brand research`; any other value is refused before anything is created. A content kind is a label only: `cckit start` cuts its branch on `task/` (post, brand), `plan/` (campaign) or `spike/` (research), and `cckit pr` titles it `docs:` |
|
|
111
|
+
| `cckit effort chain <a> <b> [<c> …]` | wire 2+ issues into a linear order: `b` `blocked_by` `a`, `c` `blocked_by` `b`, plus a `- Depends on #<predecessor>` line in each successor's `## Relations` section. These are the edges `cckit effort plan --issues` layers into waves. Idempotent (an edge or line already there is skipped); pre-existing blockers are kept, never replaced. Validates everything first — fewer than two numbers, a non-numeric arg, an issue that does not exist, a repeated number, or an edge that would close a cycle refuses the whole chain and writes nothing | — |
|
|
110
112
|
| `cckit effort start [--force] <slug\|N> [slug]` | effort branch + bootstrapped worktree, **WIP-limited**: refuses a NEW effort once `effort.wipLimit` (default 2) are already in progress. In progress = an `effort/<N>-<slug>` branch exists as a local head **or** on origin, read with `git ls-remote` rather than the cached `refs/remotes` (which is wrong both ways: it misses a branch pushed since the last fetch and keeps one deleted on origin until a prune). At the limit refuses; only strictly under it starts. Re-starting an effort that is already in progress is never gated. The check runs before the fetch/branch/worktree/bootstrap, so a refusal makes no branch, no worktree and no board change — it is not read-free (it queries origin, and a `<slug>` arg was resolved first, which can run `gh issue list`). `0` refuses every ordinary start; `--force` still starts. A non-integer value is ignored with a warning and the default 2 is used; `EFFORT_WIP_LIMIT` overrides the config per invocation. `EFFORT_WIP_REMOTE=0` — or an unreachable origin, which warns and proceeds — counts the cached refs instead. With no `[slug]`, a failed read of the issue title warns on stderr and the start continues with the effort's existing branch slug, or `effort`. Does **not** gate `cckit start <issue>`. Creating the branch writes the start time to `<git-common-dir>/effort-metrics/<N>.start`, which `cckit effort close` reads for `build_seconds`; a re-start keeps the stamp already there | `--force`, or `KIT_FORCE=1` |
|
|
111
|
-
| `cckit effort pr [<slug\|N>]` | the ONE effort PR, titled as a Conventional Commit subject carrying the effort
|
|
112
|
-
| `cckit effort
|
|
113
|
+
| `cckit effort pr [<slug\|N>]` | the ONE effort PR, titled as a Conventional Commit subject carrying the effort token: `type(scope): name [E<n>]` (scope = the `flow:` label, else a legacy title's `[Flow]` tag; type = `--type`, else the `kind:` label, default `feat`). Refuses before the commit, the push or any forge call when the title fails `naming_title_lint pr` (`scripts/lib/naming.sh`: `commitlint_check` + a trailing `[E<n>]`, `[E<n>.<step>]` or `[#<n>]`). `pr.titleStyle: issue-title` gives `[Role] [#N] name` with no lint | flags: `--summary[-file]`, `--for-agents[-file]`, `--title`, `--type` |
|
|
114
|
+
| `cckit effort sub <N> "<name>"` | add one sub-issue to effort N, titled `[E<N>.<step>] <name>` (step = the effort's sub-issue count + 1), labelled from the parent (kind, priority, role), linked as a native sub-issue and added to the board. Refuses, before any write, a name that breaks the naming rule or a parent without the `effort` label. `--spec` adds an optional `## Spec` to the sub body, linted when given | `--kind K`, `--body B`, `--spec T` |
|
|
115
|
+
| `cckit effort retitle [<N>]` | list each legacy `[Effort] N · ` effort title and open `[Effort N] M · ` sub title beside its `[E<n>]` / `[E<n>.<step>]` form. A dry run; writes nothing. Without `<N>`, every open effort | `--apply` renames them |
|
|
116
|
+
| `cckit effort plan` | session-fit effort plan. Rows come from GitHub (one listing + one `blocked_by` call per effort), or from the executable named by `effort.planSource` (`EFFORT_PLAN_SOURCE` overrides), called as `<source> <owner/repo>` from the project root and printing `number<TAB>flow<TAB>ctx<TAB>title[<TAB>blockers]` rows plus an optional `# age: <text>` line. A source that is not executable, exits non-zero or prints no rows falls back to GitHub. The `source:` line under the header names the source used, its age when reported, and any fallback | `--json` → JSON |
|
|
113
117
|
| `cckit orchestrate <a> <b> …` | run N flows in parallel worktrees, in tmux or Herdr. cckit owns the worktree per issue, the `blocked_by` gate, the `--cap` and the result: on tmux each pane runs the agent under `scripts/wave-worker.sh`, which records how the process ended | — (use `--dry-run`) |
|
|
114
|
-
| `cckit orchestrate --results [--session=<s>] [--wait <secs>]` | read the wave's collected results: `success` (exit 0), `failure` (exit 1–128), `interrupted` (signal exit, or a `running` record whose pid is gone on the host that wrote it); not finished: `launched`, `running`; `untracked` on Herdr, which owns the agent process. rc 0 all success · 1 any failure/interrupted or no records · 3 none failed, some unfinished. Same for every `--agent` kind | `--
|
|
118
|
+
| `cckit orchestrate --results [--session=<s>] [--wait <secs>]` | read the wave's collected results: `success` (exit 0), `failure` (exit 1–128), `interrupted` (signal exit, or a `running` record whose pid is gone on the host that wrote it); not finished: `launched`, `running`; `untracked` on Herdr, which owns the agent process. rc 0 all success · 1 any failure/interrupted or no records · 3 none failed, some unfinished. Same for every `--agent` kind | `--json` → JSON |
|
|
115
119
|
| `cckit autopilot [<a> …]` | select work, then call `orchestrate --detach` under a cap | — (use `--dry-run`) |
|
|
116
120
|
| `cckit autopilot run [<issue>] --objective "<text>"` | ONE headless objective on the current branch: `claude -p` or `codex exec`, one round at a time. Code stops it on `--max-iters` (default 5), `--max-seconds` (3600), `--round-seconds` (900), a passing `--until "<cmd>"`, a failing `--check "<cmd>"` gate, or a round that changed neither HEAD nor the tree. An `--until` that already passes before round 1 ends the run with exit 0 and no round, and stderr says that nothing was changed and that `--check` is the flag for a gate. `--max-tokens` is checked between rounds from the runtime's own usage output; a round that prints none stops the run. `--publish --summary "<s>"` opens the PR through `cckit pr` unless the branch already has one. `--record-skills` starts Claude with `--output-format stream-json --verbose` and writes the skills each round loaded to `.skills` in the state file (`loaded`, `complete`, `source`), read from the CLI's events; `complete` is false when a round printed none. `--resume` continues with counters carried over; a round cut short by a signal or a killed runner counts as usage `unknown`, not zero, and a start is refused (exit 2) while the agent an earlier run recorded in `.cckit/autopilot/<branch>.agent.pid` is still alive. Exit 0 done · 2 refused · 3 agent failed · 4 limit · 5 no progress · 6 gate failed · 7 publish failed · 130 interrupted. Refuses the base branch, `--notify`, and an agent other than claude/codex. Never merges | state file `.cckit/autopilot/<branch>.json` (use `--dry-run`) |
|
|
117
|
-
| `cckit gc` | report prunable branches + worktrees — SAFE (own PR merged) and LANDED (no PR of its own, work already on base: effort subs, `worktree-agent-*` isolation worktrees) — never one whose issue is still open; aborts if the protection helper is missing. A branch whose PR or issue state could not be read (a failed `gh` call) is reported UNKNOWN ("could not determine") and kept, never "no PR". A worktree with a detached HEAD gets its own row: LANDED when it is clean and its HEAD is on the base branch or `main`, ORPHAN otherwise | `--
|
|
118
|
-
| `cckit cleanup [--yes]` | the guided destructive sweep over that report: plan first, delete only the SAFE + LANDED rows and prune the listed ZOMBIE metadata (staged work recovered to its branch first); ORPHAN / PROTECTED / UNKNOWN / stashes are never deletable. A LANDED detached worktree is removed; an ORPHAN one, and a detached zombie still holding staged work, are kept | `--
|
|
119
|
-
| `cckit page <mode\|open\|poll\|reply\|end\|answer>` | review pages, on by default (`reviewPages.enabled`; off with `cckit add lavish --set enable=no`, or `CCKIT_PAGES=terminal` for one command). `mode` prints `page`, or `terminal: <reason>` when the session has no browser: `CI`, `CCKIT_HEADLESS` (exported by `cckit autopilot run` and the tmux wave worker), a headless Claude Code session (`CLAUDE_CODE_SESSION_ATTENDED=0` or an `sdk*` entrypoint), SSH, no `DISPLAY`/`WAYLAND_DISPLAY` off macOS, no agent session and no TTY, or no `lavish-axi`/`npx` on PATH. `CCKIT_PAGES=page` skips the session checks, never the config switch. `open <html-file> [--fallback <md-file>]` runs `lavish-axi <file>` (`npx -y lavish-axi` without the binary); in terminal mode, or when the tool exits non-zero, it prints the fallback file and exits 0; flags after `--` go to the tool. `poll` / `reply` / `end <html-file> [args…]` pass through to the tool and are no-ops in terminal mode. `answer --kind <plan\|decision\|grill> --title "<t>" [--issue <n>] [--body-file <file\|->]` writes ONE comment on the issue when `github.repo` is set and `--issue` is given, else the file `docs/answers/<date>-<kind>-<slug>.md` (`reviewPages.answersDir`), which the caller commits; `reviewPages.answers: issue\|file` fixes the destination. The same kind, title and body twice writes nothing. Exit 0 · 1 the answer could not be written · 2 usage error. An agent calls `mode` before writing any HTML, and calls `answer` on both paths. A page before `cckit effort start` is recommended; `effort start` checks nothing | `--
|
|
120
|
-
| `cckit render` | stdin markdown → rich (glow on a TTY; verbatim when piped) | — |
|
|
121
|
-
| `cckit version` | the installed cckit version | `--
|
|
121
|
+
| `cckit gc` | report prunable branches + worktrees — SAFE (own PR merged) and LANDED (no PR of its own, work already on base: effort subs, `worktree-agent-*` isolation worktrees) — never one whose issue is still open; aborts if the protection helper is missing. A branch whose PR or issue state could not be read (a failed `gh` call) is reported UNKNOWN ("could not determine") and kept, never "no PR". A worktree with a detached HEAD gets its own row: LANDED when it is clean and its HEAD is on the base branch or `main`, ORPHAN otherwise | `--json` → JSON counts (`safe`, `landed`, `protected`, `orphan`, `unknown`) |
|
|
122
|
+
| `cckit cleanup [--yes]` | the guided destructive sweep over that report: plan first, delete only the SAFE + LANDED rows and prune the listed ZOMBIE metadata (staged work recovered to its branch first); ORPHAN / PROTECTED / UNKNOWN / stashes are never deletable. A LANDED detached worktree is removed; an ORPHAN one, and a detached zombie still holding staged work, are kept | `--json` → JSON counts + `applied` |
|
|
123
|
+
| `cckit page <mode\|open\|poll\|reply\|end\|answer>` | review pages, on by default (`reviewPages.enabled`; off with `cckit add lavish --set enable=no`, or `CCKIT_PAGES=terminal` for one command). `mode` prints `page`, or `terminal: <reason>` when the session has no browser: `CI`, `CCKIT_HEADLESS` (exported by `cckit autopilot run` and the tmux wave worker), a headless Claude Code session (`CLAUDE_CODE_SESSION_ATTENDED=0` or an `sdk*` entrypoint), SSH, no `DISPLAY`/`WAYLAND_DISPLAY` off macOS, no agent session and no TTY, or no `lavish-axi`/`npx` on PATH. `CCKIT_PAGES=page` skips the session checks, never the config switch. `open <html-file> [--fallback <md-file>]` runs `lavish-axi <file>` (`npx -y lavish-axi` without the binary); in terminal mode, or when the tool exits non-zero, it prints the fallback file and exits 0; flags after `--` go to the tool. `poll` / `reply` / `end <html-file> [args…]` pass through to the tool and are no-ops in terminal mode. `answer --kind <plan\|decision\|grill> --title "<t>" [--issue <n>] [--body-file <file\|->]` writes ONE comment on the issue when `github.repo` is set and `--issue` is given, else the file `docs/answers/<date>-<kind>-<slug>.md` (`reviewPages.answersDir`), which the caller commits; `reviewPages.answers: issue\|file` fixes the destination. The same kind, title and body twice writes nothing. Exit 0 · 1 the answer could not be written · 2 usage error. An agent calls `mode` before writing any HTML, and calls `answer` on both paths. A page before `cckit effort start` is recommended; `effort start` checks nothing | `--json` → JSON (`mode`: `{mode, reason}`; `open`: `{mode, file}`; `answer`: `{ok, where, issue\|file, written}`) |
|
|
124
|
+
| `cckit agent render` | stdin markdown → rich (glow on a TTY; verbatim when piped) | — |
|
|
125
|
+
| `cckit version` | the installed cckit version | `--json` |
|
|
122
126
|
|
|
123
|
-
Every verb accepts a global `--
|
|
127
|
+
Every verb accepts a global `--json` (older spellings `--llm` and `--output=json` still work); verbs that produce a result emit a
|
|
124
128
|
single JSON object/array on stdout, with human text on stderr. Interactive/launch verbs
|
|
125
129
|
(`init`, `orchestrate`, `autopilot`) have no JSON result — use `--dry-run` to inspect their plan.
|
|
126
130
|
`cckit brief` has no JSON form either, and deliberately: its output IS the prompt you hand a
|
|
127
131
|
delegated agent, so markdown is the machine-readable form. Read the facts behind it as data with
|
|
128
|
-
`cckit lib --
|
|
132
|
+
`cckit agent lib --json` and `cckit status --json`.
|
|
129
133
|
|
|
130
|
-
> **`cckit plan
|
|
134
|
+
> **`cckit effort plan --next` is the one exception to "feed verb output back to the model."** Its forward
|
|
131
135
|
> plan is for the human/orchestrator's decision only — never inject it into a monitored model's
|
|
132
136
|
> prompt or context (context-anxiety rule). Run it, decide, and hand only the chosen, scoped effort
|
|
133
|
-
> to an agent. `cckit plan` / `cckit next` (ordering existing work) remain safe to reason over.
|
|
137
|
+
> to an agent. `cckit effort plan --issues` / `cckit next` (ordering existing work) remain safe to reason over.
|
|
134
138
|
|
|
135
139
|
### Lifecycle ops (so autopilot runs unattended)
|
|
136
140
|
|
|
@@ -139,8 +143,8 @@ Every operation an unattended run needs is reachable through the one CLI:
|
|
|
139
143
|
| Verb | Purpose |
|
|
140
144
|
| --- | --- |
|
|
141
145
|
| `cckit scan` | detect the repo's stack + kit state (emits JSON) |
|
|
142
|
-
| `cckit doctor [--fix]` | onboarding preflight (deps, the forge: a GitHub token, `gh` optional); asks before installing on a TTY, `--fix` skips the prompt. With no TTY and no `--fix` it is report-only: no package install, no `pnpm install`, no seeded or refreshed file, no server start. With `tasks.design: true` it prints one `page-design skill` row per selected adapter: a failing row naming `cckit add page-design` when the skill folder is absent. The row of an integration it has just installed names the files the installer wrote besides the one detected (the descriptor's `alsoWrites`; for `impeccable`, `.claude/agents/impeccable-*.md`). Reports the CLI of each selected adapter (`claude`, `codex`) present or absent; `cckit doctor --agents` prints only those rows, makes no network call, and exits 1 when one is absent. With `codex` selected it also reports whether the hooks are registered in `.codex/hooks.json` (a warning when not; whether Codex trusts them is not readable). One row per `integrations/` descriptor that is on — its config key, or a descriptor with `config.default: true` whose key is absent (`lavish`) — installed by the shared runner; a missing default-on tool the project never set a key for is a skip row: not installed, not a failure; an integration installs only after `--fix` or a yes at the prompt (recorded as `install:<id>` in `.cckit/consent`) — a run with no TTY and no `--fix` reports it missing, installs nothing and exits 1. Also prints the resident instruction-file line `cckit status` prints, and warns when it is over the 150k limit |
|
|
143
|
-
| `cckit add [<name>] [--set k=v] [--answers FILE] [--dir DIR]` | no name: list every integration descriptor in `integrations/`, the modules and the kit skills that can be added, exit 0 (`--
|
|
146
|
+
| `cckit doctor [--fix]` | onboarding preflight (deps, the forge: a GitHub token, `gh` optional); asks before installing on a TTY, `--fix` skips the prompt. With no TTY and no `--fix` it is report-only: no package install, no `pnpm install`, no seeded or refreshed file, no server start. With `tasks.design: true` it prints one `page-design skill` row per selected adapter: a failing row naming `cckit add page-design` when the skill folder is absent. The row of an integration it has just installed names the files the installer wrote besides the one detected (the descriptor's `alsoWrites`; for `impeccable`, `.claude/agents/impeccable-*.md`). Reports the CLI of each selected adapter (`claude`, `codex`) present or absent; `cckit doctor --agents` prints only those rows, makes no network call, and exits 1 when one is absent. With `codex` selected it also reports whether the hooks are registered in `.codex/hooks.json` (a warning when not; whether Codex trusts them is not readable). One row per `integrations/` descriptor that is on — its config key, or a descriptor with `config.default: true` whose key is absent (`lavish`) — installed by the shared runner; a missing default-on tool the project never set a key for is a skip row: not installed, not a failure; an integration installs only after `--fix` or a yes at the prompt (recorded as `install:<id>` in `.cckit/consent`) — a run with no TTY and no `--fix` reports it missing, installs nothing and exits 1. Also prints the resident instruction-file line `cckit status` prints, and warns when it is over the 150k limit. Prints one `loose issues` row: the count of open issues that are no effort, no sub-issue and not in Backlog on the board (board off: every standalone issue counts); skipped, and said so, with no forge. `cckit doctor --loose` lists them (`#N title`); `--loose --ratchet [--baseline=FILE]` exits 1 when the count rose above `scripts/loose-issues.baseline`, 2 when it could not be judged. Not part of `scripts/check.sh`, which stays offline |
|
|
147
|
+
| `cckit add [<name>] [--set k=v] [--answers FILE] [--dir DIR]` | no name: list every integration descriptor in `integrations/`, the modules and the kit skills that can be added, exit 0 (`--json` → one JSON object with `enabled` and `applies` per integration, and `enabled` and `installed` per skill). With an integration: set the one config key its descriptor names, in the config `kit_config_path` resolves — no other key changes, and nothing is installed. For a descriptor that is on by default (`lavish`), `--set enable=no` writes the off value (`reviewPages.enabled: false`) and no rule. The three design skills the `page-design` skill coordinates are integrations too: `impeccable` (`designDirection.provider`), `emil-design-eng` (`designMotion.provider`) and `web-design-guidelines` (`designAudit.provider`); each is detected by its skill file in `.claude/skills/<id>/` or `~/.claude/skills/<id>/`, and installed for Claude Code, into the project, by one `npx` command. A descriptor that lists `rules` (`graft` → `code-retrieval`, `lavish` → `review-pages`) also gets each one copied into `.claude/rules/`; an existing rule file is kept. Declines (exit 0, nothing written) on a repo with no file the integration can work on; exits 1 with no project config or an invalid descriptor. With a module (`software`): write this directory's `.claude/kit.config.json`. With a kit skill (`page-design`, the one that ships an `add.json`): set its config key (`tasks.design: true`) and copy `SKILL.md` and `references/` into the skills folder of each adapter in the config (`.claude/skills/page-design/`, `.agents/skills/page-design/`); it asks nothing, needs no version bump, keeps a copy already there, and a second run changes nothing; exit 1 with no project config. `KIT_DRY_RUN=1` writes nothing, and for an integration prints the install candidates in order plus the wire command. The tools, the consent line and the install order: [Integrations](https://cckit.dev/integrations/) |
|
|
144
148
|
| `cckit update` | report whether the project is behind the installed cckit: `up to date` (exit 0), or `update available · <have> -> <latest>` naming `cckit init --upgrade` (exit 10). Changes nothing |
|
|
145
149
|
| `cckit migrate [--dry-run]` | reshuffle an old kit layout to the current one; `--dry-run` writes nothing |
|
|
146
150
|
| `cckit init --upgrade [--dry-run]` | bring a scaffolded project to the installed version: add missing files, keep existing ones and every path under `upgrade.removed` / `upgrade.renamed`, set `kitVersion` (a bump alone edits that one line of the config). Refuses a dirty tree (exit 1). Prints the files it added or modified as `Changed on disk`, measured by checksum before and after; `--dry-run` runs the same upgrade on a temporary copy and prints the same list as `Would change`, writing nothing. A second run answers `already at <version> -- nothing to upgrade`, exit 0. The path end to end: [Update a project](https://cckit.dev/getting-started/update/) |
|
|
@@ -295,12 +299,12 @@ operate the repo through cckit. It is self-contained and names nothing repo-spec
|
|
|
295
299
|
You operate this repository through cckit, a CLI that runs the full GitHub work lifecycle.
|
|
296
300
|
|
|
297
301
|
Operating rules:
|
|
298
|
-
1. Read state before acting. Run `cckit
|
|
302
|
+
1. Read state before acting. Run `cckit status --board --json` and decide from the board document it returns
|
|
299
303
|
(TOON is a compact table format — parse it, don't guess the board).
|
|
300
304
|
2. One issue = one branch = one worktree = one PR. Begin every task with `cckit start <issue>`,
|
|
301
305
|
then cd into the worktree path it prints. Never commit on main or develop.
|
|
302
|
-
3. Append `--
|
|
303
|
-
4. Follow this loop:
|
|
306
|
+
3. Append `--json` to any verb for machine-readable JSON output.
|
|
307
|
+
4. Follow this loop: status --board -> start <issue> -> implement (commit early and often) ->
|
|
304
308
|
`cckit pr <issue> "<one-line summary>"` -> report the PR URL -> stop.
|
|
305
309
|
5. Merging is a human decision. Do not merge unless an approved plan explicitly says you may.
|
|
306
310
|
6. Re-running an already-done step is a no-op, not an error. Never invent paths or config:
|
package/README.md
CHANGED
|
@@ -31,11 +31,11 @@ run a shell can drive every operation.
|
|
|
31
31
|
a PR, merge, and clean up — each step is one command. The board is both the plan and the proof.
|
|
32
32
|
- **Sessions that pick up where you left off.** `cckit handoff "<note>"` saves a resume-here note;
|
|
33
33
|
bare `cckit` prints it at the start of the next session.
|
|
34
|
-
- **Sessions that talk to each other.** `cckit msg send <branch|project:branch|all> [--steer]
|
|
34
|
+
- **Sessions that talk to each other.** `cckit agent msg send <branch|project:branch|all> [--steer]
|
|
35
35
|
"<text>"` mails any parallel session on the machine — same project or another; the kit's mail
|
|
36
36
|
hook delivers it to a *live* session between tool calls, and a `--steer` message redirects a
|
|
37
37
|
session that is about to stop.
|
|
38
|
-
- **Agent-operable.** Every verb has a machine-readable mode (`cckit <verb> --
|
|
38
|
+
- **Agent-operable.** Every verb has a machine-readable mode (`cckit <verb> --json`) and an
|
|
39
39
|
[`AGENTS.md`](AGENTS.md) contract, so agents drive the kit without scraping human output.
|
|
40
40
|
- **Scales from one issue to a wave.** The same verbs that take one issue to a merged PR also plan
|
|
41
41
|
and run a whole wave of parallel agents — with a captain that gates and merges behind policy
|
|
@@ -105,7 +105,7 @@ cckit add # list the optional integrations + modules; `cckit
|
|
|
105
105
|
# `cckit add graft`: code-graph retrieval + the code-retrieval rule
|
|
106
106
|
# `cckit add lavish --set enable=no`: turn review pages off (on by default)
|
|
107
107
|
cckit page mode # `page`, or `terminal: <why>` — can this session show a review page?
|
|
108
|
-
cckit plan
|
|
108
|
+
cckit effort plan --next # propose what to build next, grounded in current capabilities
|
|
109
109
|
cckit status # where are we: light tasks, next effort per flow, local undone work, PRs to attend, cleanup available
|
|
110
110
|
cckit next # the next unblocked issue + how to start it + the weekly cadence
|
|
111
111
|
cckit start 42 # isolated worktree + branch for issue #42, bootstrapped:
|
|
@@ -118,7 +118,7 @@ cckit start 42 # isolated worktree + branch for issue #42, bootst
|
|
|
118
118
|
# `cckit start --force 42` (or KIT_FORCE=1) starts anyway
|
|
119
119
|
cckit claims # which live session is working which issue (read-only)
|
|
120
120
|
cckit brief 42 # the delegation brief for #42, read out of the repo not memory
|
|
121
|
-
cckit lib # every scripts/lib helper: functions, purpose, error contract
|
|
121
|
+
cckit agent lib # every scripts/lib helper: functions, purpose, error contract
|
|
122
122
|
cckit pr 42 "what changed" # commit, push, open the PR
|
|
123
123
|
cckit pr 42 "what changed" --base main # target main, not the integration branch; the push
|
|
124
124
|
# exports the target as KIT_PR_BASE for a git pre-push hook
|
|
@@ -130,8 +130,8 @@ cckit task new "<title>" # light tasks: work tracked in tasks/, no GitHub i
|
|
|
130
130
|
# task list · task next · task start <id> · task finish <id> "<summary>"
|
|
131
131
|
cckit task run <id> # hand one light task to a headless agent: start, one round, the gate
|
|
132
132
|
# (--check, else tasks.check), finish, the review link. Never merges
|
|
133
|
-
cckit
|
|
134
|
-
cckit
|
|
133
|
+
cckit status --board # board state, what's unblocked
|
|
134
|
+
cckit status --board --cached 60 # the board as one JSON document, from a cache at most 60s old
|
|
135
135
|
# (--json / --write / --watch [secs] / --plan — for a TUI or statusline)
|
|
136
136
|
cckit handoff "resume note" # save a handoff — bare `cckit` prints it next session
|
|
137
137
|
cckit gc # report prunable branches + worktrees, detached worktrees included (deletes nothing); a failed GitHub read shows as UNKNOWN, kept
|
|
@@ -230,13 +230,14 @@ run says so. `--upgrade` is unchanged and never enters this flow.
|
|
|
230
230
|
|
|
231
231
|
## Efforts and slug handles
|
|
232
232
|
|
|
233
|
-
A big piece of work is an **effort** — a parent issue with sub-issues. `cckit effort new "<name>" "sub :: desc" …`
|
|
234
|
-
creates the parent issue (the
|
|
233
|
+
A big piece of work is an **effort** — a parent issue with sub-issues. `cckit effort new --spec "<done means>" "<name>" "sub :: desc" …`
|
|
234
|
+
creates the parent issue (the five-section plan body; its `## Spec` says what done means, and both
|
|
235
|
+
`effort new` and `effort close` refuse an effort without one — `close --no-spec-check` skips it, saying so), applies the `ctx/kind/priority/role/flow` labels, and lints
|
|
235
236
|
every sub-issue title — the same effort `/kit-effort-new` produces, since both call one shared core. `--kind` sets
|
|
236
237
|
the `kind:` label on the parent and every sub: one of `feat fix task chore security scaffold ci adr spike plan`
|
|
237
238
|
(default `task`), the same closed set `cckit start` uses as the branch prefix, or a content kind — `post`,
|
|
238
239
|
`campaign`, `brand`, `research` — which is a label only: it starts on `task/`, `plan/`, `task/` and `spike/`
|
|
239
|
-
respectively and titles its PR `docs:`. Any other value is refused before anything is created. In `cckit plan` and `cckit effort plan` an issue with no `ctx:` label shows `?` and weighs 2;
|
|
240
|
+
respectively and titles its PR `docs:`. Any other value is refused before anything is created. In `cckit effort plan --issues` and `cckit effort plan` an issue with no `ctx:` label shows `?` and weighs 2;
|
|
240
241
|
a `ctx:` value outside `S|M|L|XL` also weighs 2 and warns on stderr. The `--flow`
|
|
241
242
|
vocabulary (the `[Flow]` title tags) reads from `effort.flows` in the project config, so `cckit effort new --flow X`
|
|
242
243
|
works in any configured repo (an explicit `EFFORT_FLOWS` env var still wins per invocation).
|
|
@@ -273,7 +274,7 @@ The GitHub issue **number** stays the canonical key, but every effort also has a
|
|
|
273
274
|
already in its `effort/<N>-<slug>` branch). Effort commands take the slug *or* the number interchangeably:
|
|
274
275
|
|
|
275
276
|
```bash
|
|
276
|
-
cckit effort new "Slug handles for efforts" --slug slug-handles
|
|
277
|
+
cckit effort new "Slug handles for efforts" --slug slug-handles --spec "start takes the slug"
|
|
277
278
|
cckit effort start slug-handles # same as: cckit effort start 93
|
|
278
279
|
cckit effort pr slug-handles
|
|
279
280
|
cckit effort close slug-handles
|
|
@@ -298,7 +299,7 @@ cckit effort chain 241 242 243 # 242 blocked_by 241 · 243 blocked_by 242
|
|
|
298
299
|
Each issue after the first gets a native GitHub `blocked_by` edge on its predecessor **and** a
|
|
299
300
|
`- Depends on #<predecessor>` line in its `## Relations` section — the same line
|
|
300
301
|
`cckit effort new --depends-on` writes, from the same formatter. Those `blocked_by` edges are
|
|
301
|
-
exactly what `cckit plan` reads, so a chained set lands one issue per wave, in the order you gave.
|
|
302
|
+
exactly what `cckit effort plan --issues` reads, so a chained set lands one issue per wave, in the order you gave.
|
|
302
303
|
|
|
303
304
|
It is **idempotent**: an edge or a `Depends on` line that is already there is reported and skipped,
|
|
304
305
|
so re-running changes nothing. It only ever **adds** — an issue already blocked by something else
|
|
@@ -306,7 +307,7 @@ keeps that blocker and ends up with both. And it validates the whole chain befor
|
|
|
306
307
|
so a refusal leaves the board untouched: fewer than two numbers, an argument that is not an issue
|
|
307
308
|
number, an issue that does not exist, a number repeated in the list (`chain 1 2 1`), or an edge that
|
|
308
309
|
would close a cycle through dependencies GitHub already holds are all refused whole. A cycle is
|
|
309
|
-
refused rather than written because `cckit plan` cannot layer a cyclic graph into waves.
|
|
310
|
+
refused rather than written because `cckit effort plan --issues` cannot layer a cyclic graph into waves.
|
|
310
311
|
|
|
311
312
|
### One at a time — the effort WIP limit
|
|
312
313
|
|
|
@@ -354,16 +355,16 @@ from one shared function, so the line cannot differ between the two verbs:
|
|
|
354
355
|
|
|
355
356
|
| When | Run | What it gives you |
|
|
356
357
|
| --- | --- | --- |
|
|
357
|
-
| Monday | `cckit plan` | the week's order: waves layered from the `blocked_by` edges, and **inside a wave the issues sorted `priority:p0` → `p1` → `p2` → `p3`**, unlabeled last |
|
|
358
|
+
| Monday | `cckit effort plan --issues` | the week's order: waves layered from the `blocked_by` edges, and **inside a wave the issues sorted `priority:p0` → `p1` → `p2` → `p3`**, unlabeled last |
|
|
358
359
|
| Daily | `cckit next` | the unblocked set and the one command that starts the top issue |
|
|
359
360
|
| Friday | `cckit gc` | the branches and worktrees that can be pruned — a report, it deletes nothing (`cckit cleanup` acts on it) |
|
|
360
361
|
|
|
361
362
|
Priority never overrides a dependency: a p3 issue that blocks a p0 issue sits in an earlier wave and
|
|
362
363
|
still runs first. For efforts, `cckit status` opens with a **Next effort per flow** table — per
|
|
363
364
|
flow, the effort with no open blocker, p0 → p3 then lowest number, plus how many are still waiting.
|
|
364
|
-
`cckit status --
|
|
365
|
+
`cckit status --json` carries those rows as `next_efforts` (and a project's light tasks as
|
|
365
366
|
`light_tasks`: counts by state plus the tasks that need someone to act, read from local git); the cadence line is human output only,
|
|
366
|
-
so `cckit next --
|
|
367
|
+
so `cckit next --json` rows stay `{number,ctx,title}`.
|
|
367
368
|
|
|
368
369
|
**`cckit effort plan` can read a local snapshot instead of GitHub.** By default it makes one
|
|
369
370
|
listing call plus one `blocked_by` call per open effort. Set `effort.planSource` in
|
|
@@ -540,12 +541,12 @@ browser and compare it with the brief.
|
|
|
540
541
|
|
|
541
542
|
## Waves — parallel agentic development
|
|
542
543
|
|
|
543
|
-
`cckit wave` reads your open efforts and proposes the incoming waves of work — parallel agent tasks
|
|
544
|
+
`cckit effort plan --wave` reads your open efforts and proposes the incoming waves of work — parallel agent tasks
|
|
544
545
|
that gate and merge themselves:
|
|
545
546
|
|
|
546
547
|
```bash
|
|
547
|
-
cckit plan # the wave plan: deps-ordered, p0-first inside a wave, file-disjoint
|
|
548
|
-
cckit wave # the wave-0 fan-out brief the driving agent enacts: same wave data for
|
|
548
|
+
cckit effort plan --issues # the wave plan: deps-ordered, p0-first inside a wave, file-disjoint
|
|
549
|
+
cckit effort plan --wave # the wave-0 fan-out brief the driving agent enacts: same wave data for
|
|
549
550
|
# every runtime, dispatch wording per adapter (--adapter claude|codex|both)
|
|
550
551
|
cckit orchestrate 12 14 17 # run N flows in parallel worktrees (tmux by default)
|
|
551
552
|
cckit orchestrate --results --wait 600 # how each worker ended: success · failure · interrupted
|
|
@@ -630,20 +631,20 @@ its current head. Off by default. → [the QA lane](https://cckit.dev/review/qa-
|
|
|
630
631
|
## Driven by agents
|
|
631
632
|
|
|
632
633
|
cckit is meant to be operated by an agent loop, not only a human. See [`AGENTS.md`](AGENTS.md) for
|
|
633
|
-
the contract. Every verb accepts `--
|
|
634
|
+
the contract. Every verb accepts `--json` for structured output — uniform payloads come back as
|
|
634
635
|
**TOON**, so the plan, board, and fan-out cost the model fewer tokens than the same rows as JSON:
|
|
635
636
|
|
|
636
637
|
```bash
|
|
637
|
-
cckit
|
|
638
|
-
cckit plan --
|
|
639
|
-
cckit wave --
|
|
640
|
-
cckit orchestrate --results --
|
|
638
|
+
cckit status --board --json # board state for an agent to reason over
|
|
639
|
+
cckit effort plan --issues --json # the wave plan as TOON rows
|
|
640
|
+
cckit effort plan --wave --json # the fan-out (one worker prompt per issue) as TOON
|
|
641
|
+
cckit orchestrate --results --json # each worker's collected result as JSON
|
|
641
642
|
```
|
|
642
643
|
|
|
643
644
|
Human output renders as markdown — rich via `glow` in a terminal, native in the Claude Code
|
|
644
|
-
transcript, verbatim when piped. Every human-facing verb (`
|
|
645
|
+
transcript, verbatim when piped. Every human-facing verb (`status`, `status --board`, `plan`, `next`) goes
|
|
645
646
|
through one renderer (`cckit_render`, `scripts/lib/render.sh`), so board tables, wave plans, and the
|
|
646
|
-
status dashboard read the same in all three and print no escape codes into a pipe (`cckit render` exposes
|
|
647
|
+
status dashboard read the same in all three and print no escape codes into a pipe (`cckit agent render` exposes
|
|
647
648
|
it for any script).
|
|
648
649
|
|
|
649
650
|
### The forge, and cloud sessions
|
|
@@ -656,10 +657,19 @@ With no forge the git core stands alone: `start`, `pr` (commit + push, the compa
|
|
|
656
657
|
they skipped; a verb that only exists on the forge refuses with one line naming itself.
|
|
657
658
|
|
|
658
659
|
Claude Code cloud sessions reach GitHub through a proxy that refuses GraphQL. REST works there, so
|
|
659
|
-
every lifecycle verb does
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
660
|
+
every lifecycle verb does.
|
|
661
|
+
|
|
662
|
+
The board (Projects v2) moves over REST: adding an issue or PR, finding its card, and setting
|
|
663
|
+
Status, Iteration and text fields call GitHub's Projects REST endpoints first, and GraphQL runs only
|
|
664
|
+
when REST cannot serve the call (404, 410, an unexpected answer), with one note on stderr. So a cloud
|
|
665
|
+
session can move a card when `github.owner` and `github.projectNumber` are set; with no captured
|
|
666
|
+
`scripts/.project-ids.env` the ids are read over REST. The REST writes are tested against a stand-in
|
|
667
|
+
of the documented API, not yet against a live board. User-owned boards do not accept GitHub App
|
|
668
|
+
tokens over REST. Two things are still skipped there, each with one line on stderr:
|
|
669
|
+
|
|
670
|
+
- **A board step REST could not serve**, where the GraphQL fallback is unavailable:
|
|
671
|
+
`cckit: board step skipped …`. Turn on the board's built-in workflows (item closed → Done, PR
|
|
672
|
+
merged → Done, auto-add) and the card still moves.
|
|
663
673
|
- **Remote branch deletion** after a merge: the proxy rejects it. Delete merged branches on GitHub.
|
|
664
674
|
|
|
665
675
|
## cckit builds cckit
|