Skip to main content
Glama
README.md
<p align="center"><img src="docs/ant.svg" width="200" alt="tinyfab's ant, in a hard hat, carrying a checked box along a conveyor belt"></p>

<h1 align="center">tinyfab</h1>

<p align="center">Run your own factory: your work, your agents over MCP, your gates.</p>

<p align="center">
  <a href="https://github.com/SamBagetAI/tinyfab/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/SamBagetAI/tinyfab/actions/workflows/ci.yml/badge.svg"></a>
  <a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-1a3ad8"></a>
  <img alt="Claude Code" src="https://img.shields.io/badge/for-Claude%20Code-d97757?logo=claude&logoColor=white">
  <a href="docs/guide.md#mcp-tools"><img alt="MCP" src="https://img.shields.io/badge/MCP-18%20tools-black"></a>
  <img alt="Node" src="https://img.shields.io/badge/node-%E2%89%A522.13-5fa04e?logo=nodedotjs&logoColor=white">
  <img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-5-3178c6?logo=typescript&logoColor=white">
  <img alt="SQLite" src="https://img.shields.io/badge/SQLite-local-336791?logo=sqlite&logoColor=white">
</p>

![tinyfab in use: the board, a task waiting for you with its decision card, the metrics and the factory](docs/tour.gif)

You write down how a piece of work gets done: the steps, who does each one, what proves it is good.
Your agents (Claude Code, Codex, any MCP client) connect, take tasks and hand back their work.
tinyfab runs the checks, sends failures back with feedback, and stops at your gates.

- **Any kind of work.** Posts and emails, code, research: you define the stations in one file.
- **The builder never grades itself.** Scripts, judge agents with your rubric, and hidden tests the
  agents cannot see.
- **One card at each gate.** What changes, your conditions, the checks, the risk, a recommendation.
  The details fold away.
- **Nothing leaves without you.** tinyfab never publishes, sends, merges or deploys.
- **Everything is traced.** Every attempt, check and decision, with costs, in a live read-only UI.

## Try it

```bash
npm install -g github:SamBagetAI/tinyfab
tinyfab init --template content   # or: dev (issue to tested branch), blank
tinyfab serve                     # MCP at /mcp, UI at http://127.0.0.1:4317
tinyfab mcp-config                # how to connect Claude Code (or: mcp-config codex)
```

Needs Node 22.13 or later. Everything stays in the project folder, in `.tinyfab/`.

| You | Your agent | tinyfab |
|---|---|---|
| "Create a task: a post about X" | `task_create` | Waits for you to approve the brief. |
| "Approve task 1" | `task_approve` (you click Allow) | Queues it for a writer. |
| nothing | `task_claim`, `task_submit` | Runs the checks; a fail goes back with feedback. |
| Open the UI | nothing | Shows the decision card for each task that needs you. |
| `tinyfab status` | nothing | Prints the board in the terminal. |

## tinyfab builds tinyfab

[dogfood/](dogfood) is the factory this repo runs on itself: a planner writes the plan, you approve
it, a builder works on a branch, typecheck and tests run on a clean checkout of that branch, a
reviewer agent grades the diff, a tester agent uses the change, and you merge.

## More

- [Guide](docs/guide.md): the factory file, checks, gates and decision cards, the MCP tools, the UI.
- [Design](docs/spec.md): what tinyfab is for, its principles, and what is not built yet.
- [Contributing](CONTRIBUTING.md) and [security](SECURITY.md).

MIT license.