The Foundry's forge hand: a cheerful figure made of spaghetti, in a leather apron with a </> on it, holding a hammer

Source available · free to self-host · runs on your own machine

Your own AI coding factory: from GitHub issue to merged code

Put one label on a GitHub issue, or press + New change and say what you want in your own words. Spaghetti Code Foundry asks the open questions, plans, codes, tests, reviews and merges the change with Claude Code and Codex, and asks you only when it has to.

git clone https://github.com/MeloMar-IT/spaghetti-code-foundry.git
cd spaghetti-code-foundry
npm install && npm run build && npm link
scf ui      # web UI at http://localhost:4777
Today in the Simple view in the Hearth layout: what needs you, what is being built, what is ready to check, and help
Today shows first what waits for you, with one button each.

How it works

  1. Ask for a changePut Factory_go on a GitHub issue or a whole epic. Or press + New change, write what you want in one box and press Make a plan.
  2. Questions firstThe Foundry asks its open questions up front. Answer them, or take its suggestions (/defaults on GitHub).
  3. Plan, build, checkEach change gets a plan with a risk score and checks you can try, a review of the plan, code on its own feature branch, tests and a code review by a second model.
  4. Delivered, once a day to mainFinished changes merge into develop. Once a day you get one pull request from develop to main to merge.

Why teams use it

  • Hands-off, with you in control

    Every plan gets a risk score from 0 to 100. Risky plans wait for your approval; changes that are too big are split into smaller ones.

  • Plans you can check

    The plan keeps what you asked apart from what it assumed, and you can correct an assumption before anything is built. It writes checks you can try: Works, or Not quite to send it back.

  • Always clear what happens next

    Today shows what waits for you. Each change shows five phases: Understand, Plan, Build, Check and Deliver. Releases shows when each epic will be finished.

  • Not only for developers

    The Simple view shows your projects in plain words: questions as cards, results to check, and a guide that sets up a first project. No logs, branches or costs.

  • Ask Foundry

    The help assistant in the app explains, in your own words, how the Foundry works and what your work is doing. It changes nothing unless you confirm.

  • Several changes at once

    Runs lock the parts of the code they change, so changes in different areas are built in parallel without merge conflicts.

  • Two agents, any model

    Steps run on Claude Code or the Codex CLI, on Anthropic, OpenAI or local models such as Ollama and LM Studio. One vendor's model reviews the other's work.

  • Your own flows

    Work is described as flows: YAML pipelines of agent steps, shell steps, approvals and branches. Edit them visually, reuse blocks, or let any AI assistant write one.

  • Safe by default

    Every run works in its own copy of the code. Pushes to protected branches and pushes that contain secrets are blocked. Safe points show the recent versions that worked, with Restore.

  • Costs in bounds

    A dashboard of costs, and spending limits per run, per day, per issue, per month and per workspace.

  • Teams on one machine

    Users see only their own work. Workspaces keep teams apart on one shared Mac: every step sandboxed, with their own credentials.

  • Ten layouts

    Hearth is the default, with nine more to choose from, light or dark. Five looks can set the colours and type. Each person picks their own under Appearance.

All features, with screenshots

Built for the way you already work

The Foundry follows gitflow: each change on its own feature branch, merged into develop when it is done, and one release pull request a day to main. It reads your issues, comments on them, and labels them so you can follow every change on GitHub too.

It runs on your own Mac, with your own accounts for Claude Code, Codex and GitHub. Your code and your keys stay with you.

How the daily release works

Releases: the progress and expected finish of each epic
Releases: how far each epic is, and when it will be finished.

Frequently asked questions

What is Spaghetti Code Foundry?

A source-available AI coding factory that runs on your own machine. It runs flows: pipelines of steps that code, test, review and ship changes with AI coding agents. Its main use: put one label on a GitHub issue, or press + New change and say what you want, and the Foundry asks the open questions, plans, codes, tests, reviews and merges the change.

Do I need to be a developer?

No. The Simple view shows your projects in plain words: what you want to build, the questions as cards with a suggested answer, and results to check with This is good or Something is not right. It shows no logs, costs, branches or flow names. Get started walks you through a first project, and the Help page explains the words. Someone has to install the Foundry and set up Claude Code once; the setup check says what is missing.

How do I know it built the right thing?

The plan keeps what you asked apart from what it assumed, and you can correct an assumption before anything is built. It also writes checks you can try, each with what you should see; mark them Works or Not quite, and Not quite sends the change back with your words. Each project lists its recent versions that worked, and Restore takes the code back to one of them as a normal, reviewed change. See checks to try and safe points.

Which AI agents and models does it use?

Steps run on Claude Code or OpenAI's Codex CLI, on Anthropic, OpenAI or local models (Ollama, LM Studio). Routing rules pick the model per step, with fallbacks when a model hits a limit. See choosing models.

What do I need to run it?

Node.js 20 or newer and git, Claude Code logged in, and the GitHub CLI (gh) logged in for the GitHub flows. The Codex CLI, Ollama or LM Studio and Docker are optional. It is built and used on macOS. See how to install it.

Does my code leave my machine?

The Foundry runs on your own machine and works on a copy of your repository for every run. The agents it starts use the AI providers you configure, the same way they do when you use Claude Code or Codex yourself. A local project without GitHub stays on the machine unless you turn on pushing.

How do I stay in control of what it changes?

Every plan gets a risk score; risky plans wait for your approval. Pushes to protected branches and pushes that contain secrets are blocked, and all work lands on develop first. You merge one pull request a day to main. Autonomy levels set how far runs may go, per repository and per flow. See keeping your code and secrets safe.

Can several people or teams share one Foundry?

Yes. An admin adds accounts; users see only their own work. Workspaces keep teams apart on one shared Mac: each team sees only its own repositories and runs, every step of its runs is sandboxed, and each workspace can have its own limits. See users and roles and workspaces.

Why is it slower than asking Claude Code or Codex myself?

It does more for each change, and it waits. The default flow plans before it codes, runs your tests at several points, has Codex review the code, and merges only a version that passed. It also waits for your answers and approvals, for a free test slot, for other changes to the same code, and for usage and spending limits. A direct session can be quicker because you decide what to skip, and you answer at once. The Foundry is for work you do not want to watch. See why a change takes longer, and how to make it quicker.

Can I change how it looks?

Yes. Appearance offers ten layouts, light or dark, and a compact density. Hearth is the default; the others are Launchpad, Storyboard, Workbench, Studio, Fieldnotes, Signal, Playroom, Concierge and Atlas. Current is the interface without a layout. There are also five looks (Calm, Midnight, Friendly, Editorial and Bento): choose My look to use yours inside a layout. Each person picks their own.

Can I write my own pipelines?

Yes. Flows are YAML files you edit visually or as text, with a block library of reusable steps. Any AI assistant can write one for you from the flow format reference. See how to write a flow.

What does it cost?

The Foundry itself is free to use and self-host under the Functional Source License (FSL-1.1-MIT): you may use and change it for anything except a competing commercial service, and each version becomes MIT two years after its release. The name, "SCF" and the logo are not part of the licence: see the trademark notice. You pay for the AI subscriptions or API usage of the agents and models you choose. The dashboard shows what each run cost, and spending limits keep it in bounds. See controlling costs.

Does the Foundry send data anywhere?

Only if you say yes. Each account is asked once whether the metrics of its runs may be shared. If one account says yes and an admin allows it, the install sends one numbers-only report a day: counts, times, tokens, cost and built-in flow, step and model names. It never sends code, tasks, step output, names, e-mail addresses, repository names or IP addresses. You can see the report first, change your answer at any time, and remove the data by switching sharing off. See the privacy page for shared metrics and sharing metrics.

Is it only for GitHub?

No. The issue watchers and the daily release pull request work with GitHub, but a local project on your own machine is planned, built, reviewed and released without GitHub. You can also run any flow by hand on a local repository with scf run. See local projects and your first run.

Give your backlog to the Foundry

Install it in a few minutes, connect a repository, and put one label on an issue or press + New change.