levi-gear 0.3.0 → 0.4.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/README.md +13 -3
- package/package.json +2 -2
- package/usecases/_run-rules.md +14 -3
package/README.md
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
# levi-gear
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Gather a whole software team into your terminal.** levi is an agentic kit that breathes a complete crew into your AI coding tools: a product manager, a teamlead, a developer, a designer and a QA engineer, each with a clear craft and a clear territory. Write a workflow once, and it comes alive in Claude Code, Codex and GitHub Copilot alike.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Why levi
|
|
6
|
+
|
|
7
|
+
- **One kit, three tools.** A usecase is written once and installed as native skills and subagents for Claude Code, Codex and GitHub Copilot.
|
|
8
|
+
- **A team, not a lone assistant.** Five role agents, each owning only its own files, pass work to one another through plain files in a shared work folder, so every hand-off leaves a trail you can read.
|
|
9
|
+
- **Craft from idea to release.** Seven ready usecases carry work from a vague idea to a verified result: brainstorming, spec writing, design, test-first feature building, bug fixing, code review and test scenarios.
|
|
10
|
+
- **Tests that cannot be bent.** In `create-feature` and `fix-bug` the tests come first and are locked, and QA writes its test cases from the spec alone, so the code is fixed until the proof passes.
|
|
11
|
+
- **Ask once, then run alone.** All questions are gathered up front; afterwards the run proceeds without you, picks cheap-to-change options on its own and lays them out in a closing report so you can change any of them.
|
|
12
|
+
- **A run that outlasts the quota.** When the 5-hour usage window runs dry, the run resumes itself once it refills, with its context kept, instead of stopping half-way.
|
|
13
|
+
- **Quiet until called.** levi never acts on its own; a prompt without the levi command is handled by your tool as usual. `/levi <request>` routes a request, in any language, to the best matching usecase.
|
|
14
|
+
- **Your files stay yours.** Everything installed is a plain file in your repository. `levi update` refreshes only what you did not touch and never overwrites your edits.
|
|
15
|
+
- **Featherlight.** No runtime dependencies; Node.js 18 or newer is all it asks for.
|
|
6
16
|
|
|
7
17
|
**Full documentation: [docs/](docs/README.md)**: installation, usage, updating, the CLI reference and more.
|
|
8
18
|
|
|
@@ -55,7 +65,7 @@ Each agent does only its own role's work and writes only the files it owns; work
|
|
|
55
65
|
|
|
56
66
|
Some usecases are also a role's skill: `spec-writing` for the PM, `design` for the designer, `code-review` for the teamlead and `generate-test-scenarios` for QA. They are installed with every install, and the agent follows that skill's guide whenever it gets that kind of task, from any usecase. A usecase declares this with `skill-for`, `skill-when` and `skill-guide` in its `SKILL.md`.
|
|
57
67
|
|
|
58
|
-
The usecase's skill or workflow runs the team: it calls each member in turn. The PM only decides who owns each task and records it; the workflow follows that. Members hand work to each other through files in a work folder (`docs/levi/<slug>/` by default): `spec.md`, `status.md`, `docs/designs/`, `architecture.md`, `tasks.md`, `review.md`, `test-plan.md`, `test-report.md`. On Codex, every installed skill also gets a small `scripts/codex-run-state.mjs` helper; long runs record `run.json` in that work folder so they can resume after an interruption. The shared rules live in `agents/_team-protocol.md`, which is appended to every team agent. Every usecase also follows the run rules in `usecases/_run-rules.md`, appended to each installed `SKILL.md`: all questions are asked up front, cheap-to-change choices are picked and reported at the end, and a run that hits the 5-hour quota resumes itself ([docs/unattended-runs.md](docs/unattended-runs.md)).
|
|
68
|
+
The usecase's skill or workflow runs the team: it calls each member in turn. The PM only decides who owns each task and records it; the workflow follows that. Members hand work to each other through files in a work folder (`docs/levi/<slug>/` by default): `spec.md`, `status.md`, `docs/designs/`, `architecture.md`, `tasks.md`, `review.md`, `test-plan.md`, `test-report.md`. On Codex, every installed skill also gets a small `scripts/codex-run-state.mjs` helper; long runs record `run.json` in that work folder so they can resume after an interruption. The shared rules live in `agents/_team-protocol.md`, which is appended to every team agent. Every usecase also follows the run rules in `usecases/_run-rules.md`, appended to each installed `SKILL.md`: all questions are asked up front, cheap-to-change choices are picked and reported at the end, and a run that hits the 5-hour quota resumes itself with its context kept ([docs/unattended-runs.md](docs/unattended-runs.md)).
|
|
59
69
|
|
|
60
70
|
## Update
|
|
61
71
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "levi-gear",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Summon a whole software team (PM, teamlead, developer, designer, QA) into Claude Code, Codex and Copilot: test-first workflows that run unattended, outlast the quota and never trample your files",
|
|
5
5
|
"bin": {
|
|
6
6
|
"levi": "./bin/levi.js"
|
|
7
7
|
},
|
package/usecases/_run-rules.md
CHANGED
|
@@ -25,14 +25,25 @@ Applies to every run with more than one stage. You are on Claude Code, Codex or
|
|
|
25
25
|
|
|
26
26
|
1. At every stage boundary (after a stage, before dispatching the next agents, before each build round) run `node scripts/quota-check.mjs check --tool <claude|codex>` from this skill's folder and read its JSON. `atThreshold` means 95% or more of the 5-hour window is used.
|
|
27
27
|
2. **Usage unknown** (`status: unknown`: Claude Code without the statusline bridge, API-key billing, Copilot): arm the resume job once, right after the opening questions are answered, and keep it until the run ends.
|
|
28
|
-
3. **At the threshold:** finish the step in progress, make sure the checkpoint is written (Codex: `run.json`; the work folder holds the rest), and arm the resume job if it is not armed. Then keep working; the job matters only if the limit really interrupts the run.
|
|
28
|
+
3. **At the threshold:** finish the step in progress, make sure the checkpoint is written (Codex: `run.json`; the work folder holds the rest), write the handoff report (below), and arm the resume job if it is not armed. Then keep working; the job matters only if the limit really interrupts the run. The report is always the single file `docs/breakpoints/handoff.md`; each time the threshold is reached it is overwritten whole, never appended to and never written anywhere else.
|
|
29
29
|
4. **Arming** the job, with this exact prompt: `I ran out of quota a moment ago and the run was interrupted. Please continue the process or workflow you were running.`
|
|
30
30
|
- *Claude Code:* `CronList` first, to avoid a duplicate; then `CronCreate` (load it with `ToolSearch` if it is deferred), recurring, cron `7 */2 * * *`, with that prompt.
|
|
31
31
|
- *Codex, when this session has a scheduled-task tool* (the Codex app lists such tasks under "Scheduled"): list the existing scheduled tasks first, to avoid a duplicate, then create one that repeats every 2 hours with that prompt, attached to this thread.
|
|
32
32
|
- *Codex, without such a tool:* `node scripts/quota-check.mjs cron-arm --session <sessionId from check> --project <project root> -- <the approval and sandbox flags of this session, for example --full-auto>`. It writes a crontab line every 2 hours; the line does nothing while the quota is used up, removes itself before it resumes the session, and puts itself back if the resume fails. Pass on its `warning` to the user.
|
|
33
33
|
- *No way to arm* (no scheduler tool, Copilot): tell the user in your next message that the run will not resume on its own, and go on.
|
|
34
|
-
|
|
34
|
+
**Handoff report.** Exactly one file, `docs/breakpoints/handoff.md` (create the folder if missing). It is overwritten whole every time it is written: the previous content belongs to an earlier interruption and is replaced, except that unfinished items from it that are still unfinished must be carried into the new one. It must be enough on its own: the next session may be this same session, or another agent on another coding platform, and it will read only this file, with no chat history, no skills and no scheduler. So write it from scratch for a reader who knows nothing, in the user's language, with only what is true now, no filler, no references to "above" or "as discussed", and every path relative to the project root. Sections, in this order:
|
|
35
|
+
- *Status line:* the first line, `Status: interrupted | complete`, then the date, time and the usage reading (`usedPercent`, `resetsAt`).
|
|
36
|
+
- *Goal and request:* the original request in the user's words, the usecase and its arguments, and the answers given in the opening questions.
|
|
37
|
+
- *Project context:* what the project is, the stack, the branch, how to build and test it, and the files and folders an agent must read first (specs, plans, designs, `AGENTS.md`/`CLAUDE.md`, the work folder).
|
|
38
|
+
- *Progress:* a stage table with status `done`, `in progress` or `not started`, each with a one-line result; for `in progress`, exactly where it stopped and what remains in it.
|
|
39
|
+
- *Done:* the deliverables made so far (path, what it is, whether it is verified), decisions taken and why, and the commands run with their result (tests, builds, checks).
|
|
40
|
+
- *Next steps:* the ordered list of what is left, concrete enough to execute, and the first action to take. Say how to skip finished work.
|
|
41
|
+
- *State of the work:* files created or changed and not yet committed, anything half-written or inconsistent, and where checkpoints live (`run.json`, `choices/`, other work-folder files).
|
|
42
|
+
- *Open items:* parked questions with the assumption used meanwhile, known problems, risks, and the choices made so far (link to `choices/`).
|
|
43
|
+
- *How to continue:* commands to verify the current state, and the continuation steps as plain instructions that do not depend on any one tool.
|
|
44
|
+
Never put secrets or credentials in it. Mention the path in your next message to the user.
|
|
45
|
+
5. **When that prompt arrives, the job has fired and you are the resumed run.** Find what was interrupted (Codex: a `docs/levi/*/run.json` that is not complete; Claude Code: your own context and the work folder; for a Workflow run, stop the old run and continue it with `resumeFromRunId`) and continue from the recorded stage without repeating finished stages; read `docs/breakpoints/handoff.md` first when it exists. If nothing was interrupted, delete the job and say there is nothing to resume.
|
|
35
46
|
- *Claude Code:* run `check`. When usage is known and below the threshold, delete the job (`CronList`, then `CronDelete` the one with this prompt); when it is at the threshold or unknown, keep it.
|
|
36
47
|
- *Codex with a scheduled-task tool:* the same as Claude Code: delete the task when usage is known and below the threshold.
|
|
37
48
|
- *Codex with the crontab job:* nothing to delete; the crontab line already removed itself.
|
|
38
|
-
6. **When the run ends** (done, blocked or stalled), remove the job: Claude Code `CronDelete`; Codex delete the scheduled task (when the tool cannot delete, name the task in the final report so the user removes it from the Scheduled list; a firing that finds nothing interrupted only says so), or for the crontab job run `node scripts/quota-check.mjs cron-disarm --session <sessionId>`.
|
|
49
|
+
6. **When the run ends** (done, blocked or stalled), if `docs/breakpoints/handoff.md` exists, overwrite it with `Status: complete` and what is left (nothing, or the parked items) and name the file in the final report, then remove the job: Claude Code `CronDelete`; Codex delete the scheduled task (when the tool cannot delete, name the task in the final report so the user removes it from the Scheduled list; a firing that finds nothing interrupted only says so), or for the crontab job run `node scripts/quota-check.mjs cron-disarm --session <sessionId>`.
|