πŸͺ

RayyanMasood/sentinel

πŸͺMarketplace
RayyanMasood/sentinel51 PluginsLast Updated Dec 3, 2026

Add this Marketplace

Add marketplace in Claude Code:
$/plugin marketplace add RayyanMasood/sentinel

Then open /plugin in Claude Code to pick and install its plugins.

Security check pending

Plugins in this Marketplace1

Sentinel is a Claude Code plugin that holds the plan you approved as a state machine and checks Claude's work against it, tool call by tool call. You follow the run in a band above the prompt, a pane, or a live page in your browser.

Claude works through a plan while the Sentinel dashboard follows each step

On a long task, an agent can drift from the plan, edit files nobody agreed to, say a step is done without proving it, or go round in circles. Sentinel catches each of these as it happens and tells Claude what to do instead. Its Library sets how much testing each plan asks for, from quick checks to proof that a test fails without the change. It adds no model calls: every rule is a hook on a tool call. It is a cut-down version of the belief-state idea in "Beyond Memory: Harnessing Long-Horizon Agents with Explicit Belief States" (arXiv 2610.01415).

How a Run Goes

You approve a plan in plan mode, or agree on one in the chat and type /sentinel lock. Claude declares it as states. Each state names the files it may edit and a check command that exits 0 when the state is done. From then on:

  • Edits stay in scope. An edit to a file outside the active state's files is refused. Claude can widen the scope with amend and a reason, and every amendment is logged.
  • Moving on takes proof. advance runs the state's check from the project root, through the Bash tool and your permission rules, and moves on only when it exits 0. A refusal carries the end of the check's output, so Claude can fix the failure without running the check again to read it. A state without a check needs evidence. While it drafts, Claude is told to give each state the fastest check that proves its own work and to run the whole suite once, in the last state (the fast-checks built-in).
  • A check has to be able to fail. When a state starts, Sentinel runs its check once before any edit. A check that already passes can't show the work got done, so Claude is told to make it stricter. This is the fails-first built-in, on at the Standard and Thorough weights (see Library).
  • Done means everything still passes. Before the plan completes, Sentinel runs the checks of the done states again, two at a time, on the project as it is then. A check that fails stops the others and runs once more on its own, in case it tripped over the other one. If it still fails, its state reopens and the plan goes back there, and the remaining checks wait for the next run. If it passes, the stopped checks start over. A check that keeps printing at five times the longest it has taken is stopped as stuck. Each run is written to .sentinel/final-checks.log. A check that holds only at one moment, such as one tied to a branch, can set once: it runs at its own advance and not again at the end, and the draft shows the mark.
  • Stopping halfway is caught. When a turn ends with the plan unfinished and nothing waiting on you or on background work, Sentinel tells Claude to continue, at most twice per state.

Proof Each State Was Asked For

A plan can drift from what you asked for, or pick up work nobody requested. So each state quotes the words that asked for it, and Sentinel compares them itself, with code and no model. The words must match exactly; only spacing and formatting marks are ignored.

  • What counts as a source. The plan you approved in plan mode, files from before this session, and the messages you typed. A file Claude wrote in this session doesn't count until you approve it in plan mode. /sentinel lock doesn't count as approving it, because you see the draft there and not the file's text.
  • A quote that isn't there goes back to Claude. So does one under 5 words (unless it is your whole message), one over 60, or one from a part of the plan marked out of scope. Claude gets the nearest passage and sends the plan again. You have nothing to do, and the refusal stays on that state's record.
  • A state with nothing to quote shows as Claude's addition, with its reason. On a draft it waits for you: Keep it or Take it out in the terminal or on the dashboard, and Lock opens once all are answered. /sentinel lock keeps any you haven't answered, and a plan-mode sign-off with an addition in it waits as a draft.
  • A state added during the run goes in and finishes. It stays marked as Claude's addition, and it stops for your OK only if it could involve a dependency change, CI or deploy config, a migration, or auth code.
  • A section nothing quotes gets a note. A section can be background, so this doesn't stop the plan. Sections named as context, overview, risks and similar get no note.
  • Each point you asked for is listed. On a draft, Claude lists the points you made as points: your words, with the states that deliver each one, or its reason for leaving one out. Sentinel compares each quote as it does a state's, and refuses a state name the plan doesn't have. The draft card shows them under What you asked for, with a point left out in amber, and the band above the prompt counts the ones left out. A draft that lists none says so. A state taken out of the draft takes its points with it, and a point left with no states shows as left out. The list can't change once the plan runs.

Sentinel keeps its own copy of each source, so later edits to a file change nothing. Only the messages a quote uses are written to disk or shown on the page. /sentinel source prints the saved copy with each quote marked. This is the quote-the-source built-in, on at every weight.

Your OK, or Hands-Free

A state waits for approval; the user goes hands-free and Claude makes those calls, each listed for later

A state can wait for you. With wait: "before" you approve the approach first, as for a design or a risky change: Claude calls propose and stops, and its edits there are refused until you answer. With wait: "after" you review the finished work, as before a publish. You answer in the chat or on the dashboard. If a later fix sends the plan back along a loop, a finished state you already reviewed keeps your earlier review while none of its own files has been edited since. Sentinel says so in its reply and names the files edited elsewhere. A state with no files of its own, and a review passed hands-free, ask again.

Questions are held too. Claude can ask you something only after it declares a breaking change (a public API, an unplanned migration, deleting data, a new dependency, auth, secrets, CI or deploy), when the active state waits for you, or within 15 minutes of your last message, when you're most likely still there. Hands-free, all questions are held. Everything else it decides itself and records with decide. Only a decide of Claude's about the check can excuse it from the fails-without-change rerun. One about something else does not, and neither does your approval of a stop.

When the work waits on something outside, such as a locked machine or someone's reply, Claude files a blocked report that names what is needed. It shows as "needs you" on the status line, the band and the dashboard, Sentinel stops telling Claude to continue (hands-free too), and questions stay held. Reply in the chat or press It's ready, go on in the dashboard, and Claude goes on.

When you want to step away, go hands-free: type /sentinel hands-free, press Go hands-free in the dashboard, press Lock and go hands-free on the draft, or press Approve and go hands-free on a state that waits for you. Claude then makes the calls that would have waited for you (a proposal, a review of its own work, a breaking change, a question), picks what it would recommend, and goes on. The dashboard lists each one under "Decided without asking you", and each task page shows its own. A state Claude is stuck in can be skipped and left for you, unless a later state builds on it; then the run stops and waits. /sentinel hands-free off or Turn off on the dashboard hands the calls back.

Skills and Other Plugins During a Plan

While a plan runs, a skill runs only when the plan lists it or you name it.

  • The plan lists it. While drafting, Claude can put skills on a state, for that state, or on the plan, for every state. They are written as the Skill tool names them, such as impeccable:impeccable. The draft card and each state's page show them, so you approve them when you lock. They can't be added once the plan runs.
  • You named it. A skill goes through once a message you typed names it as a whole word: its full name, its plugin (impeccable) or its own name (ponytail-audit). Your messages are kept across a restart, so a skill you named stays allowed.
  • Anything else is refused. Claude is told to go on without it, or to stop and say so if the state can't. The refusal goes in the plan log. A helper's call is checked against the state it works on. A /skill you type yourself runs as usual, and with the plan paused or finished every skill runs.

Notes other plugins send after an edit, such as impeccable's design findings, are held the same way. A note from a PostToolUse hook reaches Claude only when it names a skill the state may use or a plugin you named. A held note goes in the plan log with its first 200 characters. The hooks still run; Claude just doesn't read what they send. Notes at session start or when you send a prompt, and a Stop hook's reason, are left alone.

When Claude Goes in Circles

Health drops as the same test fails; Sentinel marks the run stuck, sends a note, and the run recovers

Sentinel labels each tool call by whether it moved the work forward. A new read or command counts as progress however many come in a row; reading the same thing again is a repeat. Reads and commands are compared without the times in their output. Over the last 8 calls it works out a health score, H = 1 βˆ’ pΒ·max(S, R): S is the share of calls that made no progress, R the share that repeated an earlier call, and p how much the last check failure weighs (fully when it is the same failure as before). An edit loses its credit when the next check fails the same way. Any failure already seen during the current visit to a state counts as the same failure, so bouncing between two failures shows. Going back to an earlier version of a file counts as a repeat only when a failing check ran on that version. After 6 edits with the check not run while it fails, further edits count as no progress, and the note says to run the check. Each check run Claude starts records how long it took.

At H ≀ 0.25 the run is stuck. Claude gets a note that names the pattern (cycle, drift or static), the file version it went back to and the failure that keeps coming back, with what to try next. The dashboard turns red and offers a field for your own hint, which reaches Claude with its next tool result, and a Pause button. The stuck mark stays until the check result changes, either a pass or a failure not seen before. While health stays at or below 0.25, a further note comes 8 calls on. The notes don't push Claude to escalate, though Claude can after two of them.

A stuck look is a second opinion on a stuck mark. When a mark is still stuck at its second note, Sentinel starts the same read-only Opus overseer (described below) with one question: is the run really stuck? It answers WRONG or FINE. On WRONG, Claude hears what to try and you get a toast. On FINE, the stuck mark is lifted, no more stuck notes come until Claude enters the state again, and Claude hears so. There is one stuck look per stuck mark. It never starts beside another running look (it starts at the next note instead), and it uses up no time mark. If the overseer is switched off on the Library page, no stuck look starts either.

There are two layers because each covers a weakness of the other. The detector judges every call from tool calls alone and costs nothing, but it can misread honest work, such as a long search that reads many files without changing any. The overseer is a model that reads the code and costs a look, so it runs only where the cheap signal has said stuck twice, or when a state runs long.

A state can also drag on with nothing going in circles, so Sentinel watches the time as well. When a state's working time passes 30 minutes, then 1, 2 and 4 hours, Sentinel starts an overseer: a read-only Opus agent that looks at the evidence from outside while the run goes on. The time note and the overseer's prompt also say how long the check runs took, for example "14 check runs, 41 min in all, about 3 min each". It answers FINE, FASTER or WRONG. FINE goes in the dashboard's log. FASTER and WRONG also reach Claude with its next tool result, or start a turn if Claude has stopped by itself, and you get a toast. Nothing stops the run, and time spent waiting on you doesn't count. If the agent can't start, Claude gets the same facts as a note. It is the overseer built-in, on at every weight: switch it off on the Library page or with /sentinel off overseer, and the log still notes the time but no agent starts.

A look runs on Opus for several requests. In a small test repo, one took 4,000 to 8,000 tokens of output, 120,000 written to the cache and 280,000 to 460,000 read from it. A state run by a member gets no overseer yet, and an overseer ends with the session that started it. In a terminal you may see one dim line such as Prompt dropped by a hook: overseer: fine, which is Sentinel keeping the agent's own report out of the chat. Every look is kept in .sentinel/run.json under looks: why it started (time or stuck), what it said, and the minutes until the state moved on.

The System Map

Experimental: the System tab says so too, and has no switch.

Beside the plan, Sentinel keeps a picture of the project: its parts, the people who use it and the lines between them. Claude draws it. Sentinel sets what each part shows, and checks it against git.

  • Claude draws, Sentinel sets the status. In define, Claude sends the drawing as system and names the parts each state builds as parts. A part then shows one of: Not built, Already there, Will change, Claude is here, Untested, Tested, Changed since test, Check failing or Needs you. Claude can't mark its own work: a part is Tested only when its state's check passed and the part's files changed since the state started. A state with no check proves nothing, so a part it builds shows Untested. A part whose files are already in the project when the plan is locked shows Will change until its state starts, and Already there if the state leaves it alone; a part with no files yet shows Not built. A group takes a colour from its parts. Red means a check is failing and amber means something needs you. Blue means Claude is inside, and green means every part is Tested.
  • The lines are Claude's drawing. Nothing checks them against the code, and the part's panel says so. A drawing with a gap (a state that builds no part, a part nothing builds and no file backs, a part whose state has no check) gets a note on the draft, in the run's log and on the System tab. These notes never stop a lock.
  • Outside parts are things the code relies on that aren't in the repo, such as a store, a queue or a service. Each shows its evidence: Seen in code (a file and the text in it, which Sentinel finds), Said by you (your quote, compared like a state's) or Guessed (Claude's reason, drawn dotted, and the draft asks you to confirm or remove it). They get no Tested mark and are left out of the counts.
  • Three files in .sentinel/. system.json is the map, sorted by id so a merge conflict reads well. Sentinel writes it and never commits it. marks.json holds each part's last proof, and plans.json has one line per finished plan. The last two stay out of git. A map file that can't be read, such as one with merge conflict markers, is not used and not written over. Sentinel says so at session start, in the status reply and in /sentinel system, and the saved marks stay.
  • It stays current without a model. Each part records the commit it was drawn at. At session start, when the System page opens and while a plan is drafted, Sentinel compares the map with what git says changed since. A part whose files changed shows Changed since drawn, with git's reason, and a draft that names one tells Claude to reread it. Changed since drawn (the picture may be out of date) and Changed since test (the proof is out of date) are separate marks. A part a state built is not marked for the files that state wrote, because the plan drew it for them. The mark comes back if those files change again. With no git repo, the page says nothing could be compared.
  • Redraw this area and It's fine. Redraw asks Claude to reread the area, and ends with a question in the dialog: keep the new drawing, which also marks it as drawn today, or keep the old one. It's fine clears the mark until the area's files change again, on this machine. Neither happens on its own.
  • A project that already exists gets its map one plan at a time. Claude draws only the parts the plan touches. Sentinel lists the other top-level folders with their file counts as Not mapped yet, and the endpoint keys in .env.example (names ending in _URL, _HOST or _ENDPOINT) that no outside part names as Not placed yet. Only the keys are read, never the values.
  • Approval stops and dropped parts ask in the real dialog. A state that waits for you, and a part Claude wants to drop, open a question in the terminal. A typed message to Claude doesn't answer it; the page's buttons do, and so do the dialog's options. Close it with Esc and the band above the prompt keeps an Answer button that asks again, for these and for keeping a redraw. With no dialog (claude -p, or a session that can't show one), a stop passes only through the page's buttons or hands-free, and the reply tells Claude to stop its turn until then.

The System tab on the dashboard shows the map at four levels: Overview, Areas, Parts and Tasks (each part tagged with the tasks that build it). Its views are All, Testing (which parts are proved) and Changes (the drawing against what you signed off), as Boxes or as an Outline on narrow screens. Past plans are listed newest first, and pointing at one lights the parts it built.

Library

The user picks the Thorough weight, ticks one of Claude's suggestions on the draft, switches an instruction off for that plan and locks it; Claude then reads its instructions for the first state

The Library holds what Sentinel adds to every plan: instructions, which are short texts Sentinel hands Claude at set moments, and flows, which are states that go into the plan itself. Sentinel ships built-ins of both. You switch any item on or off, write your own, and pick a weight that decides how much testing the built-ins ask for.

Weights

WeightForWhat the built-ins ask
Lightquick work where speed matters more than proofthe fastest check that proves each state
Standard (default)most worka failure list before the code, a check that fails before the work, every new test made to fail once
Thoroughwork that has to be rightStandard, plus a rerun of each check without the code change, an end-to-end run at the end, and no test deleted without a mutation run

Thorough is slower: fails-without-change runs a state's check up to twice more, in a scratch copy of the project.

Built-Ins

NameWhenKindOn at
depth-before-sizewhile Claude drafts a plantoldStandard, Thorough
quote-the-sourcewhile Claude drafts a planSentinel checksLight, Standard, Thorough
fast-checkswhile Claude drafts a plantoldLight, Standard, Thorough
failure-listas a state startstoldStandard, Thorough
fails-firstas a state startsSentinel checksStandard, Thorough
break-it-oncebefore a state closestoldStandard, Thorough
fails-without-changebefore a state closesSentinel checksThorough
prove-end-to-endbefore the plan completestoldThorough
measure-before-deleteevery turntoldThorough (needs a mutation-testing tool)
overseerwhile a state runs long or stays stuckSentinel checksLight, Standard, Thorough
sources-firstwhile Claude drafts a plantoldoff; switch it on for projects with a spec and designs
state-settingswhile Claude drafts a plantoldoff; see Settings per State
state-workflowswhile Claude drafts a plantoldoff; see Workflows in a Step
close-phase (a flow)at the end of a planflowoff

"Told" means Claude reads the text: start and close texts arrive with the state, final texts at the lock and with the last state, and draft and every-turn texts in the system prompt. "Sentinel checks" means Sentinel acts itself. quote-the-source compares each state's quote with its sources (see Proof Each State Was Asked For). fails-first runs the check once before any edit. fails-without-change reruns a passing check in a scratch copy that has the state's test changes but not its code changes, and refuses the advance if it still passes, until Claude tightens the check or records why with decide. Every told block ends by saying the project's own rules (such as CLAUDE.md) win where they differ. A start or close instruction that doesn't fit a state is skipped with decide, naming it in skip by name or title; several go in one call, separated by commas. break-it-once is bounded: once per new test, by hand, about 10 minutes (30 at Thorough), with no mutation harness. A state that adds no test has nothing to break, and one that writes no logic has nothing for failure-list.

depth-before-size asks Claude for answers to "what would an expert do here", listed as depth on the draft. The ones Claude recommends start ticked. Untick what you don't want on the dashboard and lock, or type /sentinel lock to take the ticked ones, /sentinel lock <id> <id> to take only those, or /sentinel lock none for none. A state that only an unticked answer names comes out.

Settings per State

Experimental, and off until you turn it on. The switch is the row marked Experimental under the weights on the Library page, for this project, the preset in use or every project. It is there for testing. No weight turns it on, Claude can't, and a plan reads it when it is drafted, so flipping it mid-run changes nothing in a running plan. With it off, Sentinel drops these fields from what Claude sends, says so once, and the plan runs as it did before.

With it on, a plan can differ from its one weight where a state calls for it:

  • A per-state weight: a state names weight, with a reason or your own words. It moves fast-checks, failure-list, fails-first, break-it-once and fails-without-change, plus your own start and close instructions that list weights. Everything else stays plan-wide, and a switch you flipped by hand beats any weight.
  • An addition: a state names adds, Library instructions that fire per state, each with a reason. Sentinel refuses an unknown name, a plan-wide instruction and one you switched off by hand. One that is off only because of the weight can be added.
  • A skip: Claude can skip a told instruction that makes no sense for a state with decide, naming it in skip with a reason (to names a member's state). Sentinel refuses a name that isn't told at that state, and lists what can be skipped there. The ones Sentinel checks still run. A skip shows under Decided without asking you, and as βˆ’1 on the state's Map card.
  • The plan's own settings: settings sets the plan's weight or turns an instruction on or off, each with a reason or your own words.

A stricter setting applies with its reason shown. A looser one waits for you: the draft card lists what differs, one row for each reason, with Keep and Use Standard, or Remove on an addition, and the band above the prompt asks the same. Hands-free, nobody is there to answer, so a state's lighter weight goes through and shows under Decided without asking you. Lock and go hands-free does the same for the plan's own settings, which don't change once a plan runs. Words you typed count as your answer, once Sentinel has found them in your messages. For anything looser that takes at least 5 words that name it, and a state's row keeps a button to take it back, since Sentinel compares words and not what they mean. If you lock with one unanswered, the plan runs without it. A state added mid-run takes the plan's weight unless it names a stricter one.

Each state's Map card and task page show its weight, its additions and its skips (see The Dashboard). A member agent running a state doesn't get Sentinel's rerun without its changes, so it is told to check that itself and say so.

Workflows in a Step

Experimental, and off until you turn it on. It is the second row marked Experimental under the weights on the Library page, and it works like the first: no weight turns it on, Claude can't, and a plan reads it when it is drafted. With it on, Claude may give one step a workflow: { agents, model, why }, meaning up to that many agents, on that model at most, for a step whose reading, judging or measuring splits into many independent parts. It should take more than about an hour, and no part may need another part's result. A step with a workflow lists no files, since its agents only read, and Sentinel refuses one that does. agents is a whole number from 1 to 50 and model is haiku, sonnet, opus or fable. You approve the workflow on the draft, where it shows a cost estimate, and it can't change once the plan runs. With the switch off, Sentinel drops the field from what Claude sends and says so once.

A workflow is a script that starts the agents, so its fan-out and any checking stage run the same way each time, and the results come back to Claude as one answer instead of filling the conversation. For two or three lookups, Claude's ordinary subagents are simpler, which is why Claude proposes a workflow only for many independent parts. A flow adds steps to the plan, each with its own check; a workflow works inside one step, and only that step's check proves its result.

A plan with a workflow is always drafted, even after you approve it in plan mode. The draft card lists each workflow under "Workflows Claude proposed": the step, how many agents on which model, Claude's reason, and the estimate, for example "about $12.80 (up to $24.80)", with the share of your week once Sentinel has a weekly price. The estimate is the agent count times what one agent on that model typically cost (and at the 90th percentile) over 401 measured subagents; it's an API price, and the spend isn't capped. Press Keep to approve it or Run it normally to drop it, on the card or in the band above the prompt, which asks about each workflow nobody kept. Only Keep approves a workflow: /sentinel lock or Lock and go hands-free without it runs the step normally, and the lock reply says which steps run their workflow. Keep stands while Claude's revisions leave the workflow the same, and goes when they change it. The approved step's start tells Claude the limits, that Sentinel holds each agent to them as it starts, and that Sentinel adds a line to each agent's prompt.

While the plan runs, a Workflow call goes through in a step with an approved workflow. In any other step Sentinel holds it until you name a workflow in a message, and the plan log says so. Each agent the workflow starts is tied to its step. Sentinel counts them across every run in the step and refuses the one past the approved number. An agent that names no model, or a dearer one, runs on the approved model, and the plan log says so once per run. The step lists no files, so every edit its agents try is refused, even after Claude moves on to a step that allows the file. Each run's tokens, cost and requests per agent are kept as its agents answer. Auto-continue doesn't push while a workflow runs, however long it takes, as its result wakes the conversation. The step may load the workflow-authoring skill without your naming it, and it never goes to a member agent. A workflow you name yourself in a step without one runs with no cap or model limit, and its spend is kept too. Shell commands an agent runs aren't checked, as for any agent.

Your Own Instructions

An instruction is a JSON file named after it, in .sentinel/instructions/ (this project, committed), ~/.sentinel/presets/<name>/instructions/ (a preset) or ~/.sentinel/instructions/ (every project):

{
  "description": "Dashboard changes hold at every width.",
  "at": "start",
  "files": ["web/**"],
  "text": "Check dashboard changes at 390, 860 and 1440 px, in light and dark."
}

at is draft, start, close, final or always. files limits a start or close instruction to the states that edit them. weights lists the weights that turn it on (light, standard, thorough); with no list it is on at every weight, and it keeps your switches either way. Ask Claude for one in the chat or from the dashboard, write one in the dashboard's editor, or copy a built-in and change it; a file with a built-in's name takes its place.

Switches

Edit and Write can't touch .sentinel/library.json, ~/.sentinel/library.json or a preset's library.json, so Claude changes the switches only through Sentinel, at your word (below). A shell redirect isn't caught, as with .sentinel/parallel.

Changes at your word. Ask in the chat, such as "turn the overseer off for this project", and Claude makes the change. It sends the plan tool the words you'd type after /sentinel (off overseer) with a quote of your message, and Sentinel runs the same code the command runs. While no plan runs, Claude is told each item's name and switch, so you can name one as the Library page does. The quote has to be in your last typed message, word for word, and name what it changes. A weight change also needs the word "weight", and no preset needs the preset's name or "preset", so "the standard library" or "none of these" doesn't count. Turning something on needs its name and one more word. A change that can loosen the rules (off, a lighter weight, a weight for the preset or every project, mcp drop, or a change of preset) needs five of your words or your whole message. A change for the preset in use or every project needs your words to name that place: the preset's name, "preset", "every project" or "everywhere". A toast says Claude ran the command. The reply ends with the command that undoes it, such as Undo: /sentinel on overseer, or says there is none. No command takes a switch or weight out, so a place that had none of its own has no undo, and neither does a weight that cleared that place's switches. While a plan runs, the change counts from the next plan.

Claude can run on and off, weight, preset <name> and preset none, preset new and move, mcp add and drop, and flow discard. These stay yours: trust and flow save, since both let shell commands run; preset delete, since it can't be undone; import; and the switch for settings per state. An answer you pick in one of Claude's question dialogs doesn't count as your words, so type the ask.

A weight and switches can sit in three places, and the closest one wins:

  1. This project: .sentinel/library.json, committed, so a team shares it.
  2. The preset in use, if the project names one (see Presets).
  3. Every project: ~/.sentinel/library.json.

For each item the project's switch counts first, then the preset's, then every project's, then the weight. The weight is the closest place's that picks one, and it puts aside the built-in switches farther out. Picking a weight clears that place's own switches for the built-ins; your own items keep theirs, and they are on unless you switch them off. A flow that is off doesn't add itself by its rule, but you can still add it by hand.

On the Library page, Change for picks the place a switch or weight goes to, and says what it reaches, such as "Reaches every project that uses game-dev". Each row says what decided it when that is a place farther out, such as "Off here, from game-dev". The commands take preset or everywhere at the end for the same.

A plan keeps the set it was locked with. While you check a draft, the dashboard's "Instructions for this plan" changes that plan's copy, and "Also make it this project's default" writes it to the project's switches when you lock.

A file Sentinel didn't save on this computer, such as one from a clone, stays off until you read it and type /sentinel trust <name> or press Trust on the dashboard.

Flows

Claude drafts a flow, the user saves it, then adds it to a draft plan from the list view

A flow is a set of states you define once and add to plans: a review before a publish, a database snapshot before a migration, lint and type checks at the end. Each flow is a JSON file named after it. Project flows live in .sentinel/flows/ and are committed with the code. A preset's live in ~/.sentinel/presets/<name>/flows/ and show only in projects that use it. Flows in ~/.sentinel/flows/ work in every project. When two places have one of the same name, the closest wins.

{
  "description": "Test the state, then wait for my review.",
  "when": { "at": "after", "files": ["src/**"] },
  "states": [
    { "id": "tests", "label": "Tests pass for {{state.id}}", "check": "npm test -- {{state.files}}" },
    { "id": "look", "label": "You review {{state.label}}", "wait": "after" }
  ]
}

States take the same fields as a plan's. Tags fill in from the state the flow goes beside: {{state.id}}, {{state.label}}, {{state.files}} (as quoted globs in a check) and {{plan.title}}.

Getting one. Ask Claude for a flow in the chat, or press Ask Claude for a flow on the Flows tab of the dashboard's Library page. Sentinel checks it the way it checks a plan and holds it until you choose where it goes, or Discard: from the band above the prompt, the Library page's Save to, or /sentinel flow save project|preset|everywhere and /sentinel flow discard. Instructions Claude drafts are kept the same way. You can also write the file by hand, use the dashboard's editor (New flow), or tick tasks of any plan in the List view and press Make a flow of them.

Adding one. While you check a draft, /sentinel add review after api puts the flow in after the state api (start, end and before <state> work too). In the dashboard's List view, press the dashed square where it should go, pick a flow and press Add here. Its states go in as a group named after the flow, with ids of their own (review-tests). /sentinel drop review, or Remove on the group, takes it out. Only you add and remove flows, and they stay put when Claude revises the draft.

Rules. A flow with when adds itself to each new plan Claude sends after a sign-off: after or before each state that edits the listed files, after or before every state when there are none, or once at the start or end. A rule adds a flow once per plan, and leaves drafts being revised and locked plans alone. A rule puts shell commands into plans nobody reads first, so it runs only from a flow file Sentinel saved on this computer that hasn't changed since. A flow that came with a clone, or that you or Claude wrote, can't be added, by hand or by its rule, until you read it and type /sentinel trust <flow> (or save it from Edit on the Library page), since its checks are shell commands.

Presets

A preset is settings that several projects share: a weight, switches, needed MCPs, and instructions and flows of its own. It is a folder, ~/.sentinel/presets/<name>/, laid out like .sentinel/: library.json, instructions/ and flows/. A project uses one by naming it as preset in its .sentinel/library.json. Nothing is copied, so the preset sits between This project and Every project (see Switches), and the project's own settings still win. Sentinel ships none. The commands are in the Commands table.

Choose. Press Change (or Choose a preset) on the Library page's Preset line. Each preset shows its weight, switches, what only it has, its MCPs and what using it would turn on or off here. Use it or pick No preset, or type /sentinel preset <name> or preset none. Either one changes only the one line in .sentinel/library.json and leaves nothing behind; choosing the old one again is the undo. A preset's own instructions and flows show only in projects that use it.

Claude picks a preset. While no plan runs, Claude is told which presets this computer has, what each one sets and which one this project uses. When it drafts a plan after your sign-off and another preset fits the work better, it names that preset with a one-line reason, such as backend for API work. Sentinel points the project at it, as /sentinel preset backend does, and builds the draft on it. The draft card says "Preset: backend, Claude's pick: the plan is API work. Was: none.", the plan's Decided list records it, and a toast gives the command that puts the old preset back. A plan you signed off in plan mode locks at once with no draft card, so there the toast and Decided show the pick. A pick that turns something off or lowers the weight is refused on Claude's reason alone: Claude asks you, then sends it again with your words naming the preset, checked as above. If the plan is refused after the pick, as when a server the preset needs isn't connected, the project goes back to the preset it had. A draft you reset or replace later keeps the project on the picked preset.

Make one. New preset (/sentinel preset new <name>) starts empty and is used here at once, and Change for moves to it, so what you switch or save next goes into it. Make one from this project (/sentinel preset move <name>) moves this project's own weight, switches, needed MCPs, instructions and flows into a preset, new or existing, and then uses it. Where the preset sets the same thing, this project's choice replaces it, so nothing changes here. Sentinel writes the preset first and clears the project after, so a failure leaves a copy behind and never loses anything. While a preset is in use, the button reads "Move this project's settings into game-dev". The moved settings leave .sentinel/ in the repo, so teammates get them by using the preset.

Change one. With game-dev in use, pick game-dev in Change for, or press Change game-dev in its details. A change there reaches every project that uses it.