Long Task With Harness¶
The harness is for tasks that won’t fit in a single model context window. It makes progress durable by combining:
- A workspace directory with durable artifacts (
features.json,rexos-progress.md, init scripts) - A verification script (
init.shon Unix,init.ps1on Windows) - Git commits as checkpoints
- A session id that persists per-workspace
1) Create a workspace¶
2) Initialize the harness¶
Without a prompt, this only creates the durable artifacts + the initial git commit:
With a prompt, RexOS runs an “initializer agent” to populate features.json and adjust the init script:
3) Run an incremental session¶
The harness will:
- Run
preflight(show recent commits, progress tail, next failing feature) - Run the agent for this session
- Run the workspace init script
- If it fails, feed the failure back and retry (up to
--max-attempts) - If it passes, checkpoint commit any changes
4) Repeat until done¶
Where state lives¶
- Workspace: your code +
features.json+rexos-progress.md+ init scripts + git history - Memory:
~/.rexos/rexos.db(sessions/messages + small KV store)