User guide: contents

Spaghetti Code Foundry user guide

Spaghetti Code Foundry runs flows: pipelines of steps that code, test, review and ship changes with AI coding agents on your own machine. Its main use: put one label on a GitHub issue, and the Foundry asks the open questions, plans, codes, tests, reviews and merges the change — and asks you only when it has to.

This guide walks through the web UI, writing your own flows, automating work from GitHub, choosing models, and keeping it all safe. How it is built is in DESIGN.md; what we learned building it is in LESSONS_LEARNED.md.

Today in the Admin view: what needs you, what is running, what finished

The pictures in this guide are made from test data: the repository acme/app, the accounts Test Admin and Ann, and runs named "Seeded … run".

Formerly claude-factory. The command is now scf (factory still works), the repository is MeloMar-IT/spaghetti-code-foundry and the data folder is ~/.spaghetti-code-foundry (see section 11). The <repo>/.claude-factory folder, the labels (claude-factory, factory:*) and factory/… branches keep the old name.

Chapters

  1. StartInstall it (see the README), then start the UI from the repository you want to work on:
  2. Run a flowMost work starts with + New change (see section 1) or with a label on a GitHub issue (see section 6). An admin can also start one flow…
  3. Follow, approve and resume runsEvery piece of work the Foundry does is a change. Behind each change is a run: one start of a flow, with its steps, its log and its…
  4. Write your own flowsFlows are an admin task. To open them, switch to the Admin view and choose Flows in the sidebar, below the divider. The row at the top of…
  5. Models, agents and routingTo open the models settings, switch to the Admin view, choose Administration in the sidebar, then Models under Operations.
  6. Automate with watchersA watcher checks GitHub on a schedule and starts runs by itself — as long as the Foundry is running (see Keep it running). GitHub access…
  7. Settings and safetyWhere to find it. Settings and the pages about people and access are under Administration. Admins see it in the sidebar when they use the…
  8. Costs, dashboard and evalsThe costs shown are estimates at API prices, as reported by Claude Code. Whether you pay them depends on how the agents are logged in:
  9. Command lineThe command is scf. factory still works as an alias and prints a short note.
  10. Troubleshootingforbidden host, HTTPS required or forbidden origin from another computer. forbidden host: add the name you typed to the allowed host…
  11. Upgrading from claude-factoryThe data folder is now ~/.spaghetti-code-foundry (or SCFHOME / FACTORYHOME if you set one). The .claude-factory/ folder inside each…
  12. Ideas (refinement)Ideas is where a rough idea grows into a story before it goes to the backlog. Open it with Ideas in the sidebar; it is there in every…
  13. Self-repair (for admins)The Foundry can find problems of its own, write them up, fix them and check that the fix worked. This chapter is the overview; the details…
  14. Ask FoundryAsk Foundry is the help assistant inside the Foundry. You open it with Ask Foundry in the top bar. You ask a question in your own words…
  15. Sharing metricsThis chapter says what sharing the metrics of your runs means, in one place. The same facts in short form are on the privacy page for…

Improve this page on GitHub