lilcaddie evidence add <kind> <summary> [--data <text>] | Records evidence for the current phase |
lilcaddie observe --kind <kind> [--cwd <dir>] [--timeout-ms <n>] -- <command> | Runs a command and records what it did: evidence lilcaddie saw itself |
lilcaddie output set <key> <value> | Sets a declared output of the current phase |
lilcaddie decide <question> --chosen <text> --rationale <text> --reversibility two-way|one-way | Records a decision. Also takes --confidence and --option |
lilcaddie memory add <content> [--kind <kind>] [--scope <scope>] [--key <key>] [--tag <tag>] | Keeps a lesson for future sessions |
lilcaddie work add <goal> [--loop <loop>] [--after <work-id>] | Files a piece of work in the queue; --after holds it back until that work is done. Filed by an agent it is a proposal, which nobody can take until a person accepts it |
lilcaddie work list [--ready] [--all] | The queue, oldest first: what is ready to take, what waits on what, and who holds what |
lilcaddie work claim <work-id> [--by <name>] [--minutes <n>] | Takes a piece of ready work for a time (four hours unless you say, a day at most); a claim that runs out frees the work. Claim again to keep it longer |
lilcaddie work start <work-id> [--minutes <n>] | Human only. Claims a piece of ready work and makes a git worktree for it in a new folder beside the repository, on a new branch work/<work-id>, with the repository’s hooks switched off |
lilcaddie bundle export <run-id> [--out <file>] | Writes one run’s record to a file: its ledger events, each with its hash, without tool calls and prompts |
lilcaddie bundle verify <file> | Checks a bundle and changes nothing: every event as it was hashed, and a person’s actions signed by a key this project enrolls. Exit 2 if it does not hold. A bundle shows its events agree; it is not proof they happened |
lilcaddie bundle import <file> | Records here, as one event, that a bundle that holds was shown. lilcaddie work done <work-id> --bundle <file> closes work on one whose run completed |
lilcaddie claim on [--command <command>] / lilcaddie claim off | Human only. Makes each commit made while a run is live name that run, with the line LilCaddie-Run: <run-id> in its message, through git’s own prepare-commit-msg step; off takes it out. A step already there is kept and still runs first |
lilcaddie claim add <message-file> | What git’s step runs for each commit. Adds the line for the live run, does nothing without one, and always exits 0 |
lilcaddie bundle attach <run-id> | Human only. Keeps a completed run’s record in the repository’s history under refs/lilcaddie/runs/<run-id>, naming the commits made since the run started. No branch is changed and nothing is pushed |
lilcaddie bundle check <range> [--strict] | For each commit in the range that claims a run: verified, missing, invalid or unnamed. Exit 2 on missing or invalid, and on unnamed with --strict. Changes nothing |
lilcaddie case freeze <run-id> | Keeps a completed run as a case in .lilcaddie/cases/: its goal, the loop that judged it, and how each gate came out |
lilcaddie case replay <case-file|run-id> [--rounds <n>] [--timeout-ms <n>] [--any-tree] -- <command> | Human only. Does the work of a frozen case again: starts a run of the same loop with the same goal, starts your command (what starts your agent), and judges the run’s gates itself after each round. Prints each gate’s failures the first time and this time. The command changes the checkout it runs in, so replay in one made at the case’s commit; this project’s record gains no run. Exit 2 if the replay did not complete. One replay is one sample |
lilcaddie checkout | Says which session holds this checkout and when its claim runs out, where the project lets one session at a time write ("checkout": {"oneWriter": true} in .lilcaddie/config.json) |
lilcaddie checkout release [--note <text>] | Human only. Ends the claim a session has on this checkout, so that the next session to write takes it |
lilcaddie guard [--hours <n>] | Says whether the guard on an agent’s actions refuses or only records ("guard": {"mode": "monitor"} in .lilcaddie/config.json), and lists what it would have refused in monitor mode, newest first: 24 hours unless told, 672 at most |
lilcaddie files | Lists the files agents have reserved in this checkout, the earliest first: another agent’s write to them is refused until the reservation runs out or is released |
lilcaddie files reserve <glob>... [--minutes <n>] [--note <text>] | Reserves files, for an hour unless you say (a day at most). An agent holds them under its own name, a person under human. A glob another agent holds is refused |
lilcaddie files release [<glob>...] [--of <agent>] [--note <text>] | Ends reservations: the globs named, or all. An agent ends only its own; a person ends anyone’s, and --of names whose |
lilcaddie work release <work-id> [--note <text>] | Gives claimed work back to the queue, for another to take |
lilcaddie work accept <work-id>... | Human only. Accepts work an agent proposed, so that it may be taken; several ids accept several at once. Read each goal first: it is what the next session is told to do |
lilcaddie brief | Catches you up in a few lines, made to be read on a phone: what needs you and the command that answers it, what is running, what ended since the last brief. Also says when a harness used here has no hooks installed, and when more than one session is typing into one checkout |
lilcaddie run --from-queue [--pieces <n>] [--at-once <n>] [--loop <name>] | Human only. Drives accepted work from the queue instead of one run: oldest first, each piece in the sandbox on a copy and a branch of its own (sandbox/<work-id>), 3 pieces unless told and 12 at most. A piece whose run completes is marked done; any other is given back with a note. --loop is the loop for a piece that names none. --at-once drives that many at the same time, 4 at most, each in a container and on a record of its own. It accepts nothing and merges nothing |
lilcaddie run --own-record --loop <name> --goal <text> | Human only. Drives the run on a new, empty record of its own, not the repository’s in the sandbox, so that another run of this repository can go beside it. Its record comes back as a bundle. One that stops for you is kept: lilcaddie sandbox kept lists it |
lilcaddie sandbox kept | Lists the runs of this repository that stopped on a record of their own and have not ended: the run, where it stood when last seen, and the branch its work is on. Changes nothing |
lilcaddie approve --kept <run-id> | Approves a run that stopped on a record of its own; status, brief, reject, resume, repin and abort take --kept too. Each runs in a container that has that record, a copy of the branch the run’s work is on, no network, and for an answer your key. An approval is of that branch at the commit it is at. status and brief read; the rest are human only |
lilcaddie run --kept <run-id> | Human only. Drives such a run on once it is active again: on a copy of its branch, with the record it stopped on. Its work comes back on the same branch. When it ends its record is removed, and a piece of work it was taken for is marked done on its bundle |
lilcaddie device listen [--device <name>] [--hours <n>] [--host <name>]... [--port <n>] | Human only. Before you leave: keeps the page on which an enrolled device approves open for 8 hours (--hours, 24 at most). Each time the device opens it, it shows the run that waits then and signs that one run, up to 12. Only where the record is kept in the sandbox, and only for a run with no question waiting |
lilcaddie away [--host <name>]... [--port <n>] [--no-view] | The one command to run before you leave the machine. Checks what working from a phone rests on, starts the viewer under the names your phone reaches it by with a key that stays the same, and keeps watch until stopped: once a minute it looks at this repository’s run and at your usage limits, and sends the notices nothing else can, because they are about nothing happening. Every five minutes it asks for the heartbeat address in your notify.json. It changes nothing in the repository |
lilcaddie notify test | Sends one notice that says only that it is a test, to the address in your notify.json, whatever kinds it asks for and whatever the hour, and says whether the address took it |
lilcaddie report [--hours <n>] [--out <file.md>] | What happened here over the last day (or --hours), as one page to read in a chat: what is worth a look, how the runs came out, which checks failed, who worked and what it used, what was refused. Counted from the record. --out also writes it to a Markdown file in the repository, over an earlier report and nothing else |
lilcaddie work done <work-id> [--run <run-id> | --bundle <file>] | Marks work done: an agent by naming a run of this record that completed, a person without one |
lilcaddie work drop <work-id> [--note <text>] | Human only. Takes work off the queue: it will not be done |
lilcaddie usage [--run <run-id>] | Tokens used, by run and by phase, added up from what the hooks recorded. Read from Claude Code transcripts only, so work in another harness shows as not counted; a guide to cost, never evidence |
lilcaddie demo [--keep] | Runs one small loop in a temporary folder and prints each step as the command you would type and what lilcaddie answered. Sets nothing up and touches nothing where you are; --keep leaves the folder to look at |
lilcaddie rehearse <loop> [--phase <phase-id>] | Judges one phase’s gates on the working tree as a run would now, without a run: the first phase unless you name one. Runs the phase’s commands and custom gates for real; records no run, gate result or evidence, only that the command was called. A gate that asks for evidence, an output or an approval fails and says what a run will be asked for. Exit 2 if a gate fails |
lilcaddie gate test <gate> [<case>] | Tries a custom gate on its cases, the JSON files in .lilcaddie/gate-tests/<gate>/, without a run: each says what the gate is given (options, a tree of files, outputs, evidence) and what it should answer (expect). Exits 2 when one is not answered as expected. Records no result |
lilcaddie ci --loop <loop> --base <ref> [--trust-base] [--summary <file>] | For a CI job. Judges the checkout by a loop’s command, file and grep gates, and only if its loops, gates, policy and approvers are exactly those of <ref>: a change cannot alter what judges it. Records nothing. --trust-base lets it run where nobody has run lilcaddie trust; --summary appends the verdict to a file such as $GITHUB_STEP_SUMMARY |
lilcaddie land (<branch>... | --from-queue) --onto <base> --loop <loop> [--prepare <command>] | Human only. Combines finished branches (sandbox/<work id>, work/<work id>) on a base in a scratch worktree, judges the combination with a loop’s command, file and grep gates, judges halves of a combination that fails to find which branch breaks it, and leaves one new branch landing/<time> of the ones that pass together. Moves no branch: you take it with git merge --ff-only. --prepare runs a command once in the scratch worktree first, such as the one that installs dependencies; --from-queue takes the finished work in the queue, 12 at most. Exits 1 when a branch is left out |
lilcaddie memory list [--all] [--stale] [--limit <n>] | Lists every memory later sessions are shown, newest first. --all adds those replaced or retired; --stale keeps those whose files have changed since |
lilcaddie memory retire <memory-id> --reason <text> | Human only. Stops a memory being shown to later sessions. It stays in the record, with your reason |
lilcaddie memory recall [<query>] [--scope <scope>] [--limit <n>] | Searches what earlier sessions learned |