01
The whole system, on a loop
liveYou hardly prompt the agent anymore — a loop does. Each lap it reads state from disk, decides the next step using your three layers of context, runs it in a fresh context, then writes progress and goes again until done.
① State — lives on disk, not in the model
▢ ~/.sentigent/loops/<id>.json
goal: ship the CSV export steps: [x] write parser verified [x] add tests verified [ ] wire the CLI pending position: 2 attempts: 0
Read fresh every lap. A crash or session limit is just a pause — nothing lives in the model's context.
→reads state
+ 3 layers
+ 3 layers
② Decide — act or ask, as you would
◆ the loop decides the next move
reads Profile · Plan · Policy next: "wire the CLI" act: true # confident → go ── or ── ask: "push to prod?" # dangerous → you
Confident → it acts. Force-push, prod DB, secrets → it always stops and asks you.
→fresh
context
context
③ Act & verify — a fresh run, full tools
⟨⟩ fresh claude -p · runs the step
$ wire the CLI $ pytest -q 3 passed → step verified ✓ # fail → self-repair retry
Nothing counts as done until it passes your check. (Many steps can run in parallel — roadmap X1.)
↺ write progress to disk → next lap reads it fresh → repeat until every step is verified
all steps verified → FAP score, the loop stops
dangerous call or no progress → human gate — you approve & resume
02
The run loop, up close
livePlan
goal + steps + done-criteria, saved to disk
→
Act
does one step in a fresh context
→
Verify
re-runs your tests / build
✓ passed
go to next step →
✗ failed
self-repair retry, then verify again
? blocked
the clone decides: continue or ask you
Resume
crash, limit, or new session → reloads from disk and keeps going
↺
Repeat
until every step is done & verified
03
The three layers of context
👤
Individual · Profile
What you would do
your standards + push-vs-ask judgment — written up as a steering file it can re-read
📋
Project · Plan
What this work requires
the goal, the plan, done-criteria, and this repo's conventions
🛡️
Org · Policy
What everyone is allowed to do
hard rules + a governed catalog of tools/skills the team may use
every decision blends all three → decide = Profile · Plan · Policy
04
How it decides: act, ask, or never
liveThe clone (soft judgment)
- Confident it knows your call → does it, in your voice
- Unsure → pauses and asks you (and learns from your answer)
- Confidence bar is learned per category — it rises where you've overridden it before
The policy wall (hard, deterministic)
- force-push, prod-DB, secrets, rm, external sends
- Always stop for you — regardless of confidence
- The clone can never clear these on its own
05
Free and open source — every layer
Live today — free, local
Individual + Project
- The loop, the clone, FAP — on your machine
- Your Profile + per-project Plan & guardrails
- Auto-written steering file (AGENTS.md)
- MIT · nothing leaves your computer
Building — free, self-host
Org · Policy
- Org rules enforced across every agent
- Capability registry (approved skills · MCP · tools)
- Trace & audit · budgets · approval inbox
- Team-shared profiles & an org knowledge base