sous
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 6 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
A software factory for coding agents, on your machine. Agents do the work, the graph decides what happens next.
Agents do the work. The graph decides what happens next.
A software factory for coding agents, on your machine.
sous runs your software development flow with coding agents: implement,
review, fix, merge, or any step you write. The flow is a deterministic graph
in YAML, like a GitHub Actions workflow, so the agents do the work and the
graph decides what happens next.
CLI first, with an optional live UI. Runs locally with the claude orcodex CLI you already have; not a hosted service. A run is either steered from a
session with sous run, or started in the background by sous watch
once its issue carries sous:ready, set by a human or by /sous-plan.
What it looks like
A flow is a graph of steps. This is the starter's task flow, shortened;
the full file also brings main in and
reviews the whole branch before the merge.
# .sous/flows/task.yaml, shortened
allowedLabels: [type:task, type:bug] # which issues this flow accepts
entry: init
steps:
- id: init # a module step: plain TypeScript, no agent
uses: init
routes:
- to: implement
- id: implement # an agent step: the flow names agent and model
uses: implement
agent: { kind: claude, model: claude-opus-5-5 }
with:
task: ${{ ctx.work.ref + " " + ctx.work.title + "\n\n" + ctx.work.body }}
divergence: "" # the full file passes check-issue's findings here
routes:
- to: review
- id: review
uses: review
agent: { kind: claude, model: claude-opus-5-5 } # or a second opinion: { kind: codex, model: gpt-5.5 }
with:
diffRange: '${{ steps.implement.commits[0] ? steps.implement.commits[0] + "^..HEAD" : ctx.baseBranch + "...HEAD" }}'
criteria: ${{ ctx.work.body }}
routes: # ordered, first match wins
- to: merge
when: res.ok
- to: blocked # three rounds, then a human
when: steps.review.visits >= 3
- to: fix
else: true
- id: fix
uses: fix
agent: { kind: claude, model: claude-opus-5-5 }
resume: ${{ steps.fix.session ?? steps.implement.session }} # continue the agent's session
with:
input: ${{ steps.review.log }}
inputKind: review
routes:
- to: review # a loop is just a route back
- id: merge # squash onto the base branch, label, close the issue
uses: merge
with:
baseBranch: ${{ ctx.baseBranch }} # the baseBranch setting in sous.yaml
mergedLabel: sous:merged
routes:
- to: done # done and blocked are the only exits
One issue goes through it like this:
# in Claude Code: spec + sub-issues
> /sous-plan 57
# the rest runs without you
$ ./sous run 57
$ ./sous status 57
# optional: watch it live
$ ./sous ui
# or leave the queue to the daemon
$ ./sous watch

The same run in sous ui on localhost: implement is done and review is
running, with each step's agent, model and duration.
Why sous
- Local-first. Like GitHub Actions, for agents, on your machine. Flows
are YAML, steps are reusable units, routes make a graph. - Agentic core, deterministic shell. The agent works in a worktree and
answers with one JSON envelope. The executor renders, evaluates and
routes; it never asks the agent what happens next. - Quality gates. Evals judge the work, not the agent's word. A failed
eval retries in the same session with the log; after the cap the run
stopsblockedinstead of guessing. - Multi-model. Each step names its agent and model, so Claude can
implement and Codex can review. - Resumable. A blocked run keeps its worktree. Fix it by hand, run the
same command, and it continues at that step's eval. - Steered or unattended.
sous runtakes one issue through its flow
while you watch;sous watchworks the queue ofsous:readyissues on
its own, one at a time. - One repository or several. Most projects run their own factory in
.sous/. A home repository runs several with one engine and one daemon,
each from its own tracker or all from a shared planning one.
Every visit is recorded, every step can be tested alone with fixed inputs,
the /sous-run skill drives it from a Claude Code session, and the tracker
is GitHub, beads, local files or a module of your own. The
homepage has the longer list.
Quick start
Once per machine: Node 22, gh auth login, and claude or codex on thePATH.
Guided, recommended. Paste this into Claude Code at the repository root:
Install the sous-setup skill into this repository and run it: copy the folder
skills/sous-setup from https://github.com/sousfactory/sous into .claude/skills/,
then invoke /sous-setup.
/sous-setup asks whether sous serves one repository or several and which
tracker holds the work, installs and inits sous-factory, then adapts the
check commands, sous.yaml, the flows and the plan prompt with you, every
edit shown as a diff before it is written. It ends with validate and a
smoke run command, skips what is already done, and offers /sous-migrate for
a development-loop skill the repository already has.
By hand. From the repository root:
npm install -D sous-factory
npx sous init # copies the starter into .sous/, installs it, adds /sous-plan and /sous-run
cd .sous
./sous validate
./sous run <issue> --flow bench # smoke test, touches nothing
init prints a checklist: the check commands in.sous/steps/verify/eval.ts, sous.yaml, the flows' models and labels,
the ADAPT notes in .sous/prompts/plan.md. In sous.yaml it writes thetracker: block, which says where the issues live; check it:
tracker:
type: github # github, beads, local, or a module of your own
repo: acme/web # the issues' repository, read from origin at init; never guessed later
shared: false # true on a planning tracker several repositories share
labels: sous # the prefix of sous:ready, sous:running, sous:blocked
On a shared tracker each issue carries a repo:<name> label naming the
repository that runs it; on a repository's own tracker none is needed.
Daily use:
/sous-plan <issue> # in Claude Code: spec, sub-issues, commit on GO
./sous run <issue> # claims the issue, builds, reviews, merges, closes
./sous status [<issue>] # the factory overview, or one issue's facts + timeline; --json for both
./sous graph task # the flow as a diagram
./sous ui # live, at http://127.0.0.1:4680 (uiPort in sous.yaml)
./sous watch # unattended: runs issues labelled sous:ready, one at a time
sous run <issue> # the same from a global engine (npm install -g sous-factory), in a home repository or any .sous/
sous run <name>#<issue> # in a home repository: the issue of entry <name>'s tracker, when several hold the number
A run that cannot go on stops blocked: the issue gets a comment saying
where and why, the worktree stays. Fix it by hand and run the same command;
the run continues at that step's eval. The manual's
first run walks through what happens in
between.
How it works
A step is a folder with a step.yaml: declared inputs and either a
prompt, where an agent does the work (implement, review, fix above),
or a TypeScript module (init, merge). An agentic step can add aprepare, which decides when the agent runs (always, only if the eval
fails, never), and an eval, which judges the result with { ok, log }.
A flow wires steps into a graph, as the YAML above does. Each entry
names its step, its inputs, the agent and model, and ordered routes with
conditions. done and blocked are the only exits; a loop is just a route
back.
The executor owns the loop. The agent sees only a rendered prompt and
its worktree, and hands back a fixed envelope. Judging happens outside the
agent, so a confident agent cannot approve its own work.
flowchart LR
subgraph entry["one flow entry"]
direction LR
P["prepare<br/><small>module, optional</small>"] --> A["agent<br/><small>in the worktree</small>"]
A --> E["eval<br/><small>{ ok, log }</small>"]
E -- "fail, retry ≤ max" --> A
end
E -- "routes, first match wins" --> N["next entry"]
E -. "cap reached" .-> B[blocked]
What this buys. Every decision that routes a run is a condition in YAML
you can read, test and replay. Every judgement call lives in one prompt
with one schema. A flaky agent cannot skip review, cannot merge, and cannot
touch anything outside its worktree, because it was never given those
tools.
Writing a step of your own is a step.yaml and a prompt, a module or a
shell command; the manual's add a step
shows a module step, a shell step, a prompt step with an eval, and a
prepare that decides when the agent runs.
What's in the box
| Part | What it is | Where |
|---|---|---|
| Engine | Executor, CLI, trackers, sandbox, run record. Ships no steps. | npm sous-factory (packages/core) |
| Starter | One project layout for a repository tracked on GitHub or in bd: flows, steps, skills and prompts. sous init copies it into .sous/. |
starters/default, shipped with the engine |
| Project | sous.yaml, flows/, steps/, skills/, prompts/: the factory of one repository, yours to edit. |
.sous/ in your repository |
| UI | sous ui, a live run viewer. |
bundled with the engine (packages/ui) |
The starter wires Matt Pocock's engineering skills into three flows:task takes one issue through implement, review, fix, sync and merge;feature delivers a parent issue sub-issue by sub-issue, then reviews the
branch as a whole; bench is a smoke test that touches neither the issue
nor the code. Its README lists every flow,
step and skill. Keep its steps, replace some, or start from an empty.sous/ with flows of your own. The engine never imports the project; it
loads your steps, flows and tracker from .sous/ at run time.
What sous init leaves in a repository:
your-project/
├── .claude/skills/sous-plan/ # the planning skill, installed by init
├── .claude/skills/sous-run/ # the run skill: status, start, blocked, report, from a session
├── specs/<id>-<slug>/spec.md # written by /sous-plan (specsDir, ../specs from .sous)
└── .sous/
├── sous.yaml # settings: the tracker: block, baseBranch, branch, lifecycle, dirs
├── sous # wrapper: npx sous
├── package.json # depends on sous-factory; node_modules/ lives here
├── flows/ # task.yaml, feature.yaml, bench.yaml
├── steps/ # init, plan, next-work, implement, review, fix, verify, merge, …
├── skills/ # vendored skills and sous-plan; INSTALL adds the engine's sous-run
├── prompts/plan.md # what /sous-plan follows
├── templates/ # the shapes the prompts write: spec.md, child.md, task.md
├── test/ # the project's step and flow tests
├── worktrees/<branch>/ # the run's worktree (gitignored)
├── logs/<id>/ # agent logs (gitignored)
├── runs/<id>/ # session.json, events.jsonl (gitignored)
└── locks/<id>.lock # one run per issue; runs on different issues go in parallel
locks/repo.mutex # the one run working on the shared checkout (merge) at a time
Documentation
- The manual: getting started, concepts and reference,
how-tos. - The starter: its flows and steps, with a
README per step. - sous ui: pages, status mapping, architecture.
skills/sous-setup: the guided setup.skills/sous-migrate: port an existing
development-loop skill into a flow.- Contributing: build, verify, release.
Support
- Questions about a step, a flow or a run:
Discussions, Q&A. - Bugs and feature requests:
issues. A bug
report wants thesous-factoryversion and the output of./sous status <issue>. - Security problems: a
private advisory,
see SECURITY.md.
One maintainer reads all of it, usually within a few days. The details are
in SUPPORT.md.
Maintainers
Built and maintained by Alexander Heerens.
Development is sponsored by Inauditech, which
also helps teams adopt sous.
License
MIT.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi