factree
Health Uyari
- License — License: NOASSERTION
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 8 GitHub stars
Code Basarisiz
- process.env — Environment variable access in scripts/dev.mjs
- process.env — Environment variable access in src/server/cli.ts
- exec() — Shell command execution in src/server/eventlog/store.ts
- exec() — Shell command execution in src/server/git/repo.ts
- exec() — Shell command execution in src/server/git/workspace.ts
- exec() — Shell command execution in src/server/http/server.ts
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
🌱♻️ A self-improving observable software factory for Claude Code.
Factree
The software factory you actually enjoy using.
A sentence in. A proved pull request out.
Factree specs it, plans it, builds it with parallel Claude Code agents and proves every scenario. It stops only when it needs you.
Quick start · How it works · Tour · FAQ · Guide · Contribute
Five specs in progress, one taken from draft to proved. Recorded from the real app with scripted agents, so it runs faster than real ones.
Why Factree
| 📜 Everything is a spec | Requirements and scenarios you can read like a story, grounded in your code. |
| 🏁 Agents build in parallel | One agent per task, each in its own git worktree. Agents that want the same file take turns. |
| ✅ Proved, not claimed | A fresh verifier that never saw the build proves each scenario with evidence. |
| 🗂️ One repo or several | Start it in a repo, or in the folder above your repos: one spec can then change several of them. |
| 🙋 You decide, nothing else waits | No approval steps. You answer open questions and permissions, and it carries on. |
| 🔍 Nothing is hidden | Every agent's whole session is one key away: message, interrupt, stop or take over. |
| 🔒 Your repo stays yours | It runs on your machine, keeps its files in .factree/, outside git, and never merges. |
Quick start
You need Node.js 22.13+, git and a Claude Code login, plus the GitHub CLI for pull requests.
git clone https://github.com/factree-dev/factree
cd factree && npm install && npm run build
cd /path/to/your/repo
node /path/to/factree/dist/server/cli.js # `npx factree`, once it is on npm
To work across repos that sit side by side, start it in the folder above them: see Several repos.
The app opens in your browser. Type what you want built. There is no plugin to install: the app brings its own skills.
Options| Option | |
|---|---|
--port <n> |
port to listen on (default 4747, or the next free one) |
--no-open |
do not open the browser |
--max-lanes <n> |
agents that may run at once (default 6) |
--build-model <m> |
model that build agents start on (default sonnet); default means your Claude Code default |
--permission-mode <m> |
acceptEdits (default), default, auto or bypassPermissions |
--no-pr |
do not open a pull request when a build is proved |
--ask-before-commands |
ask before each shell command an agent runs |
--use-api-key |
bill ANTHROPIC_API_KEY instead of your Claude Code login |
factree check [id] validates specs; factree approve <id> approves one from a terminal.
How it works
flowchart LR
I([A sentence]) --> S[1 Spec]
S --> P[2 Plan]
P --> B[3 Build<br/>parallel agents]
B --> V[4 Verify<br/>fresh context]
V -->|all proved| PR([Pull request])
V -->|send back| B
Q{{Your decisions}} -.-> S & P
- Spec. Claude reads your code, asks at most three questions and writes requirements and scenarios.
- Plan. A planner follows your repo's own patterns and splits the spec into tasks.
- Build. One agent per task, in parallel where the plan allows, combined into one build.
- Verify. A new agent gets only the spec's behaviour and the running software, and proves each scenario.
Then Factree opens the pull request. Merging is yours.
Tour
Many specs at once, and only your decisions wait
The sidebar shows where every spec stands. Amber needs you. Each question comes with a recommendation; take it or answer in your own words.
Watch any session, step in any time
L opens the session dock: everything the agent did, your answers, and a box to message it. I interrupts, X stops, T takes it over in your terminal.
Parallel builds
Each task shows its agent, what it covers and what it waits for. A failed task is retried alone.
Every action has a key. The guide lists them all.
FAQ
Do I need to install the skills?No. The app loads them into every agent it starts. Install the plugin only to use /factree:spec and /factree:plan in your own Claude Code sessions:
/plugin marketplace add factree-dev/factree
/plugin install factree@factree
More in the guide.
I used the old plugin (0.19 or earlier)Update or uninstall it. Factree is now an app. /factree:build, /factree:review, /factree:ui and /factree:init are gone, and the old skills write a format the app doesn't use.
Agents use your Claude Code login, like your own terminal sessions. An ANTHROPIC_API_KEY in your shell is ignored unless you pass --use-api-key. Build agents start on sonnet to spend less, and second attempts use your default model. The top bar shows what agents have spent.
Commands run inside the operating system's sandbox (built in on macOS, bubblewrap on Linux). Anything that has to leave it asks you first. What agents can write.
Will it touch my branch or commit its specs?No. Agents build in worktrees, specs stay in .factree/, and Factree never merges or pushes to your branch.
Status
| Spec · Plan · Build · Verify · Pull request | ✅ working |
| Review · Monitor · Replay | 🔜 planned: see the plan |
Develop
Issues are welcome. Before a pull request, open an issue: outside code needs a contributor agreement first. Read CLAUDE.md first: it holds the architecture rules reviewers check.
npm run dev # server (restarts on change) + Vite on http://localhost:5173
npm test # node:test, no model calls
npm run typecheck
FACTREE_RUNTIME=fake npm run dev # scripted lanes: work on the UI without spending anything
The scripted planner writes one task per requirement. Point FACTREE_FAKE_PLAN at a folder to script it
instead: its design.md and tasks.md are used as the plan, each line question | recommended of itsquestions.md is asked first, and a file called fail makes the planner fail. A scripted task agent writes the
files its task touches; a task whose name contains [fail] fails until retried, and two whose names contain[clash] do not combine. The scripted branch namer reads lines like "Name branches feature/<description>"; setFACTREE_FAKE_NAMING to its report as JSON ({"type":"fix","claude_rule":"work/{id}"}), or to fail, to script it.FACTREE_FAKE_STEP_MS sets the pause between steps. A scripted agent reports the model it was given, or fake-model
when it was given none.
src/shared/ event vocabulary and the projections: lanes, race numbers, specs with their plan, build and
scoreboard; build.ts says where a plan and a build stand and which tasks may start;
pushed.ts says which branches of origin Factree pushed for a spec; work.ts where a lane's work is,
repo by repo; merge-order.ts in which order a build's pull requests are merged
(pure; used by server and UI); home.ts owns the paths of `.factree/` and its specs folder
src/server/
eventlog/ append-only SQLite log + subscriptions
git/ repo.ts (repo discovery, worktrees, diff stats),
workspace.ts (what is served: one repo, or a folder and the repos directly below it)
runtime/ the agent seam: runtime.ts (interface), claude.ts (Agent SDK), fake.ts,
session-env.ts (which credential a lane bills), off-limits.ts (paths a session may not read),
session-temp.ts (the agents' temp folder, readable unasked),
readable.ts (other folders a session may read unasked: the repos beside its own)
lanes/ service.ts (lifecycle: worktree → session → events → outcome), slots.ts (lane cap),
folders.ts (a lane's folder, with a worktree per repo: laid out, committed, measured, removed),
confinement.ts (what a lane's shell commands and edits may change),
collisions.ts + radar.ts (who holds which file, who waits), landing.ts (discard),
tasks.ts (a build of a plan: starts task lanes in order, combines what lands into one build)
specs/ parse.ts (spec reader), validate.ts (errors, warnings, vague words), watcher.ts (files -> log),
approvals.ts (draft -> approved), writer.ts (spec from a sentence),
plan.ts (plan reader and readiness check), planner.ts (the planner lane, its questions, resuming it),
task-brief.ts (what one task's agent is told), builds.ts (plan or build, retry, resume, send back),
deleter.ts (delete a spec: forget it, stop its agents, remove its folder, worktrees and branches)
verify/ verifier.ts (fresh-context verify lanes), prompt.ts (what the verifier is told)
ship/ pull-requests.ts (which repos a proved build changed, checked first, then opened in merge order),
repo-pull-request.ts (one repo's checks, push and pull request), pr-body.ts (what it says),
namer.ts (the agent that reads the written rules and picks the type), branch-name.ts (decides the name),
branch-style.ts (patterns, and the one the merged branches share), free-branch.ts (a name free on origin)
http/ JSON API, SSE stream, static UI
app.ts composition root cli.ts the `factree` command spec-commands.ts check, approve
plugins/factree/ the Claude Code plugin: skills/spec, skills/plan, skills/spec-format
src/web/ React UI (CSS Modules, tokens in theme.css): App.tsx is the shell, pages/ the stations,
standing.ts where a spec stands at each station (the words and links that connect them),
deletion.ts what deleting a spec takes with it (the confirmation's lines),
components/SessionDock.tsx the session dock, the only place Session.tsx is drawn,
dock.ts the dock's words (who, state, "No session: …") and which agent a page docks,
dockOpen.ts whether the dock is open (the person's setting, kept in the browser),
waiting.ts what waits on the person, in order, and the words that count it,
dockSeen.ts opens the dock once per thing that waits (which were seen, kept in the browser),
attempt.ts carries out an input and keeps the one line that says it failed,
in components/: WaitingCards.tsx the dock's cards and their keys, MessageBox.tsx its message box,
Notice.tsx the red line, NoSession.tsx the dock's body on a step with no agent,
panelLimits.ts how small and large the sidebar and the dock may be in a given window,
panelSize.ts the sizes the person gave them (kept in the browser),
components/PanelEdge.tsx the edge that resizes either of them,
public/logo.svg the logo, the same file as docs/logo.svg (a test keeps them equal)
scripts/ dev.mjs (`npm run dev`), version-bump.sh (CI: a plugin change bumps its version and the README badge)
docs/ handoff.md (the plan), design/ (the UX target), guide.md (the full reference), logo.svg,
and the README's recording and screenshots
tests/
Every view is a fold over the event log (src/shared/lanes.ts), which is what will make replay possible.
License
Business Source License 1.1: the source is public, and local use is free.
| Use | |
|---|---|
| On your own computer, at work included | Free |
| Anywhere, for a noncommercial purpose | Free |
| Trying it out, development and testing (non-production use) | Free |
| Commercial production use in CI, on a server or in the cloud, or as a service | Needs a commercial license: open an issue |
Each version becomes MIT four years after its release. Versions up to 0.20.0 stay MIT. This table is a summary; the
LICENSE is what counts.
If Factree saves you an afternoon, give it a ⭐
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi