zelio-cli 0.1.0-beta.1 → 0.1.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/README.md +41 -148
  2. package/dist/cli-main.js +521 -0
  3. package/dist/cli-main.js.map +1 -0
  4. package/dist/cli.js +17 -464
  5. package/dist/cli.js.map +1 -1
  6. package/dist/cloud/account.js +109 -0
  7. package/dist/cloud/account.js.map +1 -0
  8. package/dist/cloud/command.js +7 -2
  9. package/dist/cloud/command.js.map +1 -1
  10. package/dist/cloud/login.js +2 -1
  11. package/dist/cloud/login.js.map +1 -1
  12. package/dist/cloud/push-nudge.js +5 -3
  13. package/dist/cloud/push-nudge.js.map +1 -1
  14. package/dist/cloud/relay.js +5 -0
  15. package/dist/cloud/relay.js.map +1 -1
  16. package/dist/cloud/tunnel.js +65 -1
  17. package/dist/cloud/tunnel.js.map +1 -1
  18. package/dist/db/db.js +381 -157
  19. package/dist/db/db.js.map +1 -1
  20. package/dist/db/lifecycle.js +18 -5
  21. package/dist/db/lifecycle.js.map +1 -1
  22. package/dist/limits.js +1 -1
  23. package/dist/orchestrator/area-notes.js +87 -0
  24. package/dist/orchestrator/area-notes.js.map +1 -0
  25. package/dist/orchestrator/codex-session.js +10 -9
  26. package/dist/orchestrator/codex-session.js.map +1 -1
  27. package/dist/orchestrator/contract.js +30 -22
  28. package/dist/orchestrator/contract.js.map +1 -1
  29. package/dist/orchestrator/new-task-prompt.js +4 -4
  30. package/dist/orchestrator/pi-session.js +6 -0
  31. package/dist/orchestrator/pi-session.js.map +1 -1
  32. package/dist/orchestrator/prompt.js +4 -4
  33. package/dist/orchestrator/research.js +28 -13
  34. package/dist/orchestrator/research.js.map +1 -1
  35. package/dist/orchestrator/retrieval.js +333 -0
  36. package/dist/orchestrator/retrieval.js.map +1 -0
  37. package/dist/orchestrator/runtime.js +199 -36
  38. package/dist/orchestrator/runtime.js.map +1 -1
  39. package/dist/repo/code-map.js +152 -0
  40. package/dist/repo/code-map.js.map +1 -0
  41. package/dist/repo/instructions.js +9 -3
  42. package/dist/repo/instructions.js.map +1 -1
  43. package/dist/repo/linked-boards.js +20 -123
  44. package/dist/repo/linked-boards.js.map +1 -1
  45. package/dist/repo/project-repos.js +78 -0
  46. package/dist/repo/project-repos.js.map +1 -0
  47. package/dist/run/actions.js +24 -0
  48. package/dist/run/actions.js.map +1 -1
  49. package/dist/run/auto-review.js +116 -0
  50. package/dist/run/auto-review.js.map +1 -0
  51. package/dist/run/claude-runtime.js +54 -12
  52. package/dist/run/claude-runtime.js.map +1 -1
  53. package/dist/run/codex-client.js +17 -4
  54. package/dist/run/codex-client.js.map +1 -1
  55. package/dist/run/codex-planner-config.js +26 -0
  56. package/dist/run/codex-planner-config.js.map +1 -0
  57. package/dist/run/codex-runtime.js +200 -97
  58. package/dist/run/codex-runtime.js.map +1 -1
  59. package/dist/run/consult.js +109 -0
  60. package/dist/run/consult.js.map +1 -0
  61. package/dist/run/developer-sandbox.js +67 -0
  62. package/dist/run/developer-sandbox.js.map +1 -0
  63. package/dist/run/diff.js +42 -0
  64. package/dist/run/diff.js.map +1 -1
  65. package/dist/run/finish.js +53 -16
  66. package/dist/run/finish.js.map +1 -1
  67. package/dist/run/handoff.js +51 -0
  68. package/dist/run/handoff.js.map +1 -0
  69. package/dist/run/harness-runtime.js +4 -1
  70. package/dist/run/harness-runtime.js.map +1 -1
  71. package/dist/run/harnesses.js +20 -0
  72. package/dist/run/harnesses.js.map +1 -1
  73. package/dist/run/lead.js +65 -82
  74. package/dist/run/lead.js.map +1 -1
  75. package/dist/run/manager.js +1096 -68
  76. package/dist/run/manager.js.map +1 -1
  77. package/dist/run/merge-watch.js +48 -17
  78. package/dist/run/merge-watch.js.map +1 -1
  79. package/dist/run/pi-packages.js +72 -0
  80. package/dist/run/pi-packages.js.map +1 -0
  81. package/dist/run/pi-rpc.js +61 -9
  82. package/dist/run/pi-rpc.js.map +1 -1
  83. package/dist/run/piped-check.js +56 -0
  84. package/dist/run/piped-check.js.map +1 -0
  85. package/dist/run/pr-checks.js +67 -0
  86. package/dist/run/pr-checks.js.map +1 -0
  87. package/dist/run/prompt.js +64 -4
  88. package/dist/run/prompt.js.map +1 -1
  89. package/dist/run/red-check.js +130 -0
  90. package/dist/run/red-check.js.map +1 -0
  91. package/dist/run/retro.js +2 -2
  92. package/dist/run/retro.js.map +1 -1
  93. package/dist/run/settings.js +5 -2
  94. package/dist/run/settings.js.map +1 -1
  95. package/dist/run/skills.js +146 -0
  96. package/dist/run/skills.js.map +1 -0
  97. package/dist/run/tests-first.js +146 -0
  98. package/dist/run/tests-first.js.map +1 -0
  99. package/dist/run/watchdog.js +266 -0
  100. package/dist/run/watchdog.js.map +1 -0
  101. package/dist/run/workflow.js +17 -6
  102. package/dist/run/workflow.js.map +1 -1
  103. package/dist/server/app.js +1083 -300
  104. package/dist/server/app.js.map +1 -1
  105. package/dist/server/principal.js +5 -2
  106. package/dist/server/principal.js.map +1 -1
  107. package/dist/server/provider-auth.js +206 -0
  108. package/dist/server/provider-auth.js.map +1 -0
  109. package/dist/server/repo-picker.js +18 -0
  110. package/dist/server/repo-picker.js.map +1 -0
  111. package/dist/server/terminal.js +2 -2
  112. package/dist/server/terminal.js.map +1 -1
  113. package/dist/setup/config.js +0 -31
  114. package/dist/setup/config.js.map +1 -1
  115. package/dist/setup/ink-ui.js +1 -0
  116. package/dist/setup/ink-ui.js.map +1 -1
  117. package/dist/setup/onboarding.js +12 -38
  118. package/dist/setup/onboarding.js.map +1 -1
  119. package/dist/setup/run.js +4 -5
  120. package/dist/setup/run.js.map +1 -1
  121. package/dist/skills.js +151 -0
  122. package/dist/skills.js.map +1 -0
  123. package/dist/ticket-cli.js +41 -0
  124. package/dist/ticket-cli.js.map +1 -1
  125. package/dist/version.js +13 -0
  126. package/dist/version.js.map +1 -0
  127. package/dist/web/assets/index-TN5sUF2z.css +1 -0
  128. package/dist/web/assets/index-vB3Cucuc.js +258 -0
  129. package/dist/web/index.html +2 -2
  130. package/dist/web/sw.js +3 -1
  131. package/media/board.png +0 -0
  132. package/media/mobile.png +0 -0
  133. package/media/new-task.png +0 -0
  134. package/media/review.png +0 -0
  135. package/package.json +16 -7
  136. package/dist/web/assets/index-ChuS3qKc.js +0 -254
  137. package/dist/web/assets/index-DR6WkmzI.css +0 -1
package/README.md CHANGED
@@ -1,179 +1,72 @@
1
1
  # Zelio
2
2
 
3
- Supervise a crew of coding agents from a kanban board instead of a chat window.
3
+ **Agents don't belong in chat windows.**
4
4
 
5
- > **Status: pre-alpha.** Nothing is published yet — no npm package, no release. This README describes what Zelio is meant to be, so the shape can be argued with before it's built.
5
+ Zelio puts your coding agents on a kanban board: what each one is doing, what's stuck, and what's ready for review, at a glance.
6
6
 
7
- ## The problem
8
-
9
- Chat is a serial interface for parallel work.
10
-
11
- One agent and one task at a time is fine in a chat window. The moment you have three things in flight it breaks, in three specific ways:
12
-
13
- - **No state.** Scrollback is not a record. Come back an hour later and you can't tell what finished, what stalled, and what silently did something else.
14
- - **No ownership.** Nothing says which agent is on which task. You hold that in your head, so you become the scheduler.
15
- - **No review surface.** You approve work by reading a wall of text and hoping the diff was what you meant. Reviewing three of those in a row is how people stop reading.
16
-
17
- So the work drifts toward writing longer and longer prompts, then reading longer and longer answers. You spend the day chatting about work instead of reviewing work.
7
+ ![Zelio board: To Do, In Progress, Blocked, Review and Complete columns, each card owned by an agent](https://cdn.jsdelivr.net/npm/zelio-cli@latest/media/board.png)
18
8
 
19
- The fix isn't a better chat. It's giving work _state_: somewhere it can sit, be owned, be blocked, and be reviewed. People solved this for human teams decades ago, and the answer was a board.
20
-
21
- ## What Zelio is
22
-
23
- A local board where every card is a unit of work an agent owns.
24
-
25
- You capture intents, promote the real ones into tickets, assign an agent, and watch. The agent moves its own ticket as it works and leaves typed comments. You review the diff and decide. In five seconds the board tells you where everything stands; the ticket tells you why.
26
-
27
- **Not a swarm.** Zelio runs a small crew of agents you chose, each on one ticket, each in its own worktree. Agents don't talk to each other, nothing self-organises, and nothing merges without you. The interesting problem isn't making agents autonomous — it's making them _supervisable_.
9
+ ## The problem
28
10
 
29
- ### Chat vs. board
11
+ Chat works for one agent on one task. Start a second and a third, and it falls apart:
30
12
 
31
- | | Chat | Zelio |
32
- | ---------------------- | ----------------------- | ---------------------- |
33
- | Where the record lives | scrollback | the ticket |
34
- | Who owns the task | your memory | the agent, visibly |
35
- | Parallel work | one thread, interleaved | one ticket each |
36
- | Reviewing output | read the transcript | read the diff |
37
- | When an agent stalls | you notice hours later | Blocked, with a reason |
13
+ - **You lose track.** An hour later, scrollback can't tell you what finished, what stalled, or what quietly did something else.
14
+ - **You become the scheduler.** Nothing says which agent is on which task. You hold it all in your head.
15
+ - **Review turns into reading.** You approve work by skimming a wall of text and hoping the diff matches what you meant.
38
16
 
39
- ## The flow
17
+ ## The fix: a board
40
18
 
41
- Run it inside the repo you want to work on:
19
+ Zelio gives each piece of work a card. An agent owns the card, moves it as it works, and hands you a diff to review. One look at the board tells you where everything stands.
42
20
 
43
21
  ```bash
44
- npx zelio
22
+ npx zelio-cli
45
23
  ```
46
24
 
47
- A board opens in your browser. Everything stays on your machine — your repo, your keys, your harness, your model.
48
-
49
- On a new machine, the terminal setup takes a minute: pick the **harness**
50
- (pi, Codex or Claude Code), then the **planner model**, then the **developer model**. It
51
- installs the selected CLI if it is missing. Each model list starts with
52
- **Harness default**. There is no thinking-effort question: the planner picks the
53
- effort for each ticket. The same harness runs the planner and profiles without
54
- an explicit harness. Run `zelio setup` any time to choose or check again.
55
-
56
- Claude Code runs with your own sign-in, a subscription login or an API key,
57
- and Zelio never runs it in `--bare` mode, which would ignore a subscription login.
58
-
59
- Codex must already have a stored sign-in from `codex login` or
60
- `codex login --with-api-key`. Zelio checks that sign-in and never accepts an
61
- API key from an environment variable as Codex app-server authentication.
62
-
63
- **1. Capture.** Describe the work: "emails should have digests." No form, no schema — a sentence, or a paragraph. The planner reads the repo and asks the few decisions it cannot make for you, one at a time, each option carrying what it costs. Wishes are free-form on purpose; the cost of capturing should be near zero.
64
-
65
- **2. Promote.** The planner writes the ticket for you — goal, out of scope, acceptance criteria, likely files, and which profile should do it — and you confirm or discard it in the same dialog. Nothing is drafted from your taste alone, and no field is one you had to fill in.
66
-
67
- **3. Assign.** Pick a profile from the right-hand panel. A `touches_repo` flag on the profile decides whether it competes for a slot with the other code agents. Assigning is not starting.
68
-
69
- **4. Start.** The card moves to In Progress and locks — you can comment or cancel, but you can't drag a ticket that's in flight. The agent gets its own git worktree, so parallel tickets stay mergeable.
70
-
71
- **5. Watch.** Comments arrive as the agent works, typed: `decision`, `blocker`, `done`. Not a chat thread — three kinds of event, each with a meaning the board can act on.
72
-
73
- **6. Review.** The agent moves its own card to Review and attaches the diff. Code tickets get a diff; task tickets (email, research, docs) get an artifact instead. You're reading a change, not a transcript.
25
+ Run it inside your repo. A board opens in the browser. Your code, keys and models stay on your machine.
74
26
 
75
- **7. Decide.** Approve and merge, or send it back with a note. Sending back re-prompts in the same worktree; nothing restarts from scratch and nothing lands on `main` without you.
27
+ ## How it works
76
28
 
77
- **When an agent gets stuck** it moves its own card to Blocked, states what's blocking it and what would unblock it, and notifies you. It doesn't guess and it doesn't sit silently. No auto-resume in the first version — you decide.
29
+ 1. **Describe it.** Type a sentence, or dictate it. The planner reads your repo, asks only what it can't decide, and writes the ticket: goal, scope, acceptance checks.
30
+ 2. **Start it.** The agent gets its own git worktree, so parallel tickets never step on each other. Press **Auto** to skip the clicks and start as soon as the ticket is ready.
31
+ 3. **Watch it.** The agent reports typed updates (`decision`, `blocker`, `done`), not chat. If it gets stuck, the card moves to **Blocked** and says what it needs from you.
32
+ 4. **Review it.** The card lands in **Review** with the diff and the check results. Merge it, or send it back with a comment. Nothing reaches `main` without you.
78
33
 
79
- ### Autopilot (planned)
34
+ ![New task: one sentence in, the planner writes the ticket](https://cdn.jsdelivr.net/npm/zelio-cli@latest/media/new-task.png)
80
35
 
81
- Manual mode is the default. Later, the same loop with a planner in front:
36
+ ![A ticket in Review with the agent's report and a merge button](https://cdn.jsdelivr.net/npm/zelio-cli@latest/media/review.png)
82
37
 
83
- 1. Describe the goal in the side panel.
84
- 2. The orchestrator reads the repo, asks a few questions, and drafts a **plan**: tickets, descriptions, dependencies, and who does what.
85
- 3. You edit the plan — cut, reorder, rewrite.
86
- 4. Approve, and agents start.
38
+ ## What you get
87
39
 
88
- The orchestrator plans. It never executes and never merges. The plan stays an editable artifact so you can see _why_ the work was split that way.
40
+ - **Your agent, your model.** Works with [Claude Code](https://docs.claude.com/en/docs/claude-code), [Codex](https://github.com/openai/codex) and [pi](https://github.com/earendil-works/pi). Choose the harness and model per ticket.
41
+ - **Proof, not promises.** Agents finish by reporting the commands they ran, and Zelio checks that evidence against the worktree before the card reaches Review.
42
+ - **Review on the card.** Mention `@reviewer` for a second opinion or `@developer` to send work back. Merge from the board.
43
+ - **A safe ceiling.** 2 to 6 agents at once (your choice), because nobody can review ten diffs in parallel.
44
+ - **Take over any time.** Hand a ticket to your own terminal and resume the agent's session there.
45
+ - **On your phone.** `npx zelio-cli pair` shows a QR code. Get a push when an agent is blocked or done.
46
+ - **Several repos, one board.** Add projects and file tickets on any of them.
47
+ - **Local dictation.** Talk instead of typing. The speech model runs on your machine.
89
48
 
90
- ## Design rules
49
+ <img src="https://cdn.jsdelivr.net/npm/zelio-cli@latest/media/mobile.png" alt="Zelio on a phone" width="300">
91
50
 
92
- - **Status can't lie.** The agent doing the work owns the ticket's status. A board that drifts from reality is worse than no board.
93
- - **Assign ≠ run.** Assigning picks who, starting begins work. Accidental runs are how people stop trusting a tool that touches their repo.
94
- - **One agent per ticket.** Reassigning replaces; it never stacks.
95
- - **A worktree per ticket.** Parallel work stays mergeable, and a failed attempt retries without polluting `main`.
96
- - **The human merges.** Agents propose; you approve.
97
- - **Typed comments, not chat.** Decision, blocker, done. Free-form threads are the thing we're replacing.
98
- - **The board is the record.** Agent output lands on the ticket, so a crashed agent loses nothing.
51
+ ## Get started
99
52
 
100
- ## Agent profiles
101
-
102
- A profile is a harness, a model, a system prompt, a tool scope, and a thinking level. That's the reusable asset: `developer`, `reviewer`, `tester`, `assistant`.
103
-
104
- Thinking is part of the profile: `developer` and `tester` run at `low`, `reviewer` at `high`, and `assistant` at `low`. The planner defaults to `high` because the spec is the product. Change that default in Settings, or override it for one capture with the effort slider in the new-task dialog. `--planner-thinking` and `ZELIO_PLANNER_THINKING` still work for a process. On a model with no real `medium` level — DeepSeek Flash maps it to nothing — pi clamps upward to `high`, so `low` is the step below high that actually exists.
105
-
106
- A planning turn also gets a scope, not just a level: the panel gets ten tool calls, the new-task dialog thirty, because a chat can read across turns and the wizard cannot. The number is said in the prompt and enforced by stopping the turn, at which point the planner writes the card from what it read and flags the rest in `assumed`. Override both with `--planner-budget`, or tune each door with `ZELIO_PLANNER_BUDGET` and `ZELIO_NEW_TASK_BUDGET`; zero turns it off.
107
-
108
- Instances spawn on demand rather than idling. Concurrency is capped, because spawning is cheap and running in parallel is not:
109
-
110
- - one board-wide cap, editable in Settings from 2 to 6; it defaults to 2
111
- - the allocator reads it on every pass, so raising it lets the queued cards start without a restart
112
- - reviewers and comment runs count against the same cap, because they share the machine and the provider
113
-
114
- The cap is a product decision, not a technical one: nobody can review ten diffs at once.
115
-
116
- ## Comments
117
-
118
- A ticket's Activity tab has one comment field; typing `@` autocompletes the profiles. Mentioning `@reviewer` on a review ticket starts a read-only review in the worktree, keeps the card in Review, and posts the findings as a `review` comment addressed to `@user`. Mentioning `@developer` is a send-back: the card moves to In Progress, the agent works from the comment, replies, and reports back to Review when it is done.
119
-
120
- A comment with no mention is just recorded. On a ticket that has not started yet it is saved for the next run, so an instruction written early is not lost.
121
-
122
- Agents finish through a run-scoped result reporter, not a sequence of manual API calls. Zelio validates observed command evidence against the current worktree, records the report, and moves the ticket to Review or Blocked. Review reports retain the evidence, its limitations, and owners of any explicitly agreed later assurance gates. Passing tests is not a security guarantee, and Review never authorizes deployment. A required proof cannot be deferred as a later audit. A run that exhausts recovery without reporting is an execution that needs attention, not an inferred human blocker; its session and worktree remain available.
123
-
124
- ## Dictation
125
-
126
- The new-task box takes a microphone, and the words follow you as you speak —
127
- no service, no key, and the audio never leaves the machine. It is opt-in,
128
- because a speech model is larger than the rest of Zelio.
129
-
130
- The fast path is [Moonshine](https://github.com/usefulsensors/moonshine): a
131
- ~30M-parameter model built for short utterances, so a phrase comes back in tens
132
- of milliseconds instead of a second. It is fetched on first use (~100 MB) and
133
- needs nothing else — no Homebrew, no key. Its trade is punctuation and repo
134
- jargon, so [whisper.cpp](https://github.com/ggml-org/whisper.cpp) remains the
135
- fallback, and the better choice if you want the cleanest text:
53
+ You need Node.js 22+, git, and one agent CLI signed in (`claude auth login`, `codex login`, or pi).
136
54
 
137
55
  ```bash
138
- brew install whisper-cpp # optional; Zelio fetches that model too (~150 MB)
56
+ cd your-repo
57
+ npx zelio-cli
139
58
  ```
140
59
 
141
- `ZELIO_VOICE_ENGINE=whisper` forces whisper, `ZELIO_MOONSHINE_MODEL=base` uses
142
- Moonshine's larger model.
143
-
144
- Press **Dictate** below the description and talk: the words follow you as you
145
- speak, and settle when you pause. Press it again to stop. Words land in the
146
- field and never start the turn, so a misheard sentence is something you edit
147
- rather than something that runs. `docs/voice-notes.md` has the tradeoffs and
148
- the environment overrides.
149
-
150
- ## Harnesses
151
-
152
- Zelio doesn't bundle a model. It currently supports [pi](https://github.com/earendil-works/pi), [OpenAI Codex](https://github.com/openai/codex) and [Claude Code](https://docs.claude.com/en/docs/claude-code). You choose the harness and model; credentials stay with the harness. The adapter seam is ready for future harnesses, including ACP, but those are not supported yet.
153
-
154
- ## Requirements
155
-
156
- - Node.js 22+
157
- - git
158
- - pi, Codex or Claude Code CLI; Codex and Claude Code require a stored sign-in (`codex login`, `claude auth login`)
159
-
160
- ## Non-goals
60
+ The first run signs you in to Zelio and walks you through picking the harness and models. Change them later with `npx zelio-cli setup`. Run `npx zelio-cli --help` for every option.
161
61
 
162
- - Hosted execution. Your machine, your keys, your data.
163
- - A general-purpose chat UI.
164
- - Autonomous swarms, or agents talking to each other. Coordination happens through tickets.
165
- - Replacing your editor or your git host.
62
+ > **Heads up:** agents run with your user's permissions and are not sandboxed by default. An experimental, opt-in macOS sandbox exists, with real limits. Review what you merge.
166
63
 
167
- ## Roadmap
64
+ ## What Zelio is not
168
65
 
169
- - [ ] Board, tickets, typed comments
170
- - [ ] One profile, one harness (pi), sequential execution
171
- - [ ] Worktrees, diff review, send-back
172
- - [ ] Blocked state and notifications
173
- - [ ] Multiple profiles, concurrency caps
174
- - [x] Second harness (Codex)
175
- - [ ] Orchestrator and plan artifacts
66
+ - Not a swarm. Agents don't talk to each other. Coordination happens on tickets.
67
+ - Not a chat app, an editor, or a git host.
68
+ - Not hosted. Agents run on your machine.
176
69
 
177
- ## License
70
+ ---
178
71
 
179
- Closed source for now. All rights reserved.
72
+ **Beta.** Published on npm as [`zelio-cli`](https://www.npmjs.com/package/zelio-cli). Closed source, all rights reserved.