Skip to content

Repository files navigation

Local Factory

Run coding agents on your repos and merge only what passed a check.

You describe a change. Codex, Claude, or OpenCode builds it in its own Git worktree, the factory runs your tests, and you review the diff.

A finished task with a passing check

An agent asking a question

The diff

Why

  • The factory runs the check itself, tied to the exact files the agent produced.
  • Screenshots and a running app to try before you merge.
  • One sandbox, approval flow, and time limit for every agent.
  • Roll back, merge, open a pull request, or revert from the task.
  • Runs on your machine with your existing agent sign-ins.

Stack

Bun, TypeScript, SQLite, React, Tailwind, Vite, Git worktrees, macOS sandbox-exec.

Interface components use Beautiful UI, adapted to the app.

Run it

Needs macOS, Bun 1.2.10+, Git, and codex-cli 0.154.0. Sign in to the agents you use.

git clone https://github.com/nmbrthirteen/local-factory.git
cd local-factory
bun install
bun run dev

Open http://localhost:4310 and connect a repository.

Limits

  • macOS only
  • Codex is required, since setup and checks run in its sandbox

Docs

Usage · Harness · Status · Design · Contributing · Security

License

MIT

About

Run coding agents on your real repos in isolated Git worktrees, then review and merge what they built

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages