@letta-ai/cruise-code
v0.1.0-alpha.1
Published
Letta Code evidence-first coding workflow for implementation tasks, UX handoffs, checks, verdicts, and reports.
Readme
CruiseCode
CruiseCode is an evidence-first coding workflow mod for Letta Code.
It turns implementation tasks and UX handoffs into verifiable contracts, evidence, verdicts, and reports.
No evidence → no verifiedWhat it adds
| Command | Purpose | Best used when |
| --- | --- | --- |
| /code-cruise "task" | Creates a run and Evidence Contract | You are starting a coding task that should be traceable |
| /code-cruise --verify-only | Verifies the current git diff with available checks | You already changed code and want evidence/reporting |
| /code-cruise --resume | Shows the active run | You want to continue or inspect the current run |
| /code-cruise --handoff <file> | Creates a run from implementation-handoff.json | You are continuing from a UX/product handoff |
| /code-plan [task] | Creates or updates the Evidence Contract | The task criteria or checks need to be clarified |
| /code-check | Collects git/check evidence | You want proof before claiming progress |
| /code-status | Shows run state, evidence, blockers, and next action | You need a readable dashboard |
| /code-report | Generates report.md | You need a handoff or verification summary |
Core idea
CruiseCode separates workflow state from verification judgment.
phase = where the run is in the workflow
verdict = what the evidence says about trust/completionA run can be complete enough to report but still not be verified. That distinction is the point.
Storage
CruiseCode writes project-local state under the current working directory:
.letta/cruise-code/
config.json
active.json
runs/
<run-id>/
run.json
plan.json
ledger.jsonl
evidence/
index.json
git-status.txt
git-diff-stat.txt
git-diff.patch
typecheck.txt
test.txt
lint.txt
build.txt
report.md
lesson-candidates.jsonThis repository does not include local run state or evidence artifacts.
Installation
Install the published package from Letta Code:
letta install npm:@letta-ai/cruise-codeThen reload active Letta Code sessions:
/reloadVerify commands are available:
/code-cruise helpFor local development from this repository:
git clone https://github.com/letta-ai/mods.git
letta install ./mods/packages/cruise-codeUse CruiseCode from a project directory, not from your home directory:
/code-cruise "Fix login redirect after expired session"Development
The public package is intentionally small:
MOD.md
README.md
README.ko.md
mods/index.ts
package.jsonFor a quick source/package check:
tmp=$(mktemp -d)
cp mods/index.ts "$tmp/mod.mjs"
node --check "$tmp/mod.mjs"
rm -rf "$tmp"
npm pack --dry-runCruiseUX handoff
CruiseCode is designed to pair with CruiseUX.
CruiseUX → UX framing, research, interview, ideation, spec, review
CruiseCode → implementation, evidence, checks, verdict, reportThe intended handoff file is:
implementation-handoff.jsonCruiseCode preserves original UX acceptance criteria such as ux-ac-001 as ux_ref, so reports can connect UX intent to implementation evidence.
muscle-memory integration
CruiseCode can cooperate with muscle-memory without taking over skill management.
CruiseUX → writes UX intent and implementation handoff
CruiseCode → writes evidence, verdict, report, and reusable lesson candidates
muscle-memory → distills/deduplicates/sanitizes/publishes skills when a lesson is actually reusable/code-report writes lesson-candidates.json next to report.md and adds a Reusable Lesson Candidates section to the report. These are not skills. They are reviewable hints for muscle-memory or a human reviewer. CruiseCode does not write to the skill shelf, publish Custom Skills, or decide whether a lesson deserves graduation.
Recommended conservative muscle-memory defaults while dogfooding CruiseCode:
MM_REFLECT=staged
MM_CAPTURE=off
MM_PUBLISH=offSafety
Mods are trusted local code. Review the source before installing third-party mods.
This mod performs local filesystem writes under the active project’s .letta/cruise-code/ directory and runs local git/check commands only when invoked by the user. It has no startup side effects and does not run background timers by itself.
Do not commit private CruiseCode run state, evidence files, .env files, credentials, local diagnostics, or private project logs.
If a mod breaks startup or command handling, recover with:
letta --no-mods
# or
LETTA_DISABLE_MODS=1 lettaThen remove or edit the mod package and run /reload.
See MOD.md for the agent-facing behavioral contract.
