# Software Factory

> Clone Software Factory: it turns a GitHub or Linear issue, or a bug you describe, into a tested fix on a new branch and a draft pull request. A person reviews and merges.

Page: https://flymy.ai/templates/software-factory/

Agent template v1.0 Updated 2026-11-27

Give it a repository and a task: it reproduces the bug in a sandbox with your own test command, shows the plan and waits for your yes, then makes the fix on a new branch and opens a draft pull request with the tests before and after.

- The bug reproduced with your real files and test command
- The tests before and after, quoted as they ran
- Draft pull requests only: a person reviews and merges

[Clone this project](https://app.flymy.ai/projects/e6ead86b-6d6c-4436-9804-b8e5bc961cbd?clone=1) [Use from Claude / Codex](https://flymy.ai/templates/software-factory/#start)

By FlyMy.AI · templates/software-factory v1.0

**Software Factory** claude-haiku-5-5

GitHub Code execution

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use Software Factory in your assistant

Paste this prompt into Claude Code, Codex, Cursor or any agent. It reads the guide and helps you connect.

```
Read https://flymy.ai/templates/software-factory/template.txt and help me set up Software Factory using my own connections. Ask for the missing inputs and budget before running it.
```

[Open public project](https://app.flymy.ai/projects/e6ead86b-6d6c-4436-9804-b8e5bc961cbd) [Download brief](https://flymy.ai/templates/software-factory/template.txt)

## Proof

- **exit 1 -> 0** npm test in the sandbox on pasted files: failing before the fix, passing after, with the diff and the pull request text 2026-11-27
- **20 s** for that one-file bug, from the answer to the report 2026-11-27
- **$0.005** for that run 2026-11-27
- **[GitHub](https://flymy.ai/mcp/github/)** your own account opens the branch and the draft pull request; Linear is optional
- **[Public](https://app.flymy.ai/projects/e6ead86b-6d6c-4436-9804-b8e5bc961cbd)** reference project to clone

**1** agent one engineering agent

**2** tools priced below

**on demand** runs one chat message a task

**$0.005** per one-file task, pasted files measured

## What it does

- Reads the task - a GitHub issue, a Linear issue or your words - and only the files it needs from your repository.
- Reproduces the bug in the sandbox with the real files and your own test command (Node 22 with npm, or Python) and shows the failing output.
- Shows the plan - the files, the change, the tests, the risks - and waits for your yes before its first write.
- Makes the smallest fix on a new branch, adds a test for the bug and one edge case, and runs the tests again on the branch.
- Opens a draft pull request with the problem, the change and the test output before and after; it never merges or pushes to the default branch.

**Ideal for** Small teams that keep their code on GitHub, and their tasks in GitHub or Linear, who want a reviewed fix instead of another bug report.

### Connects to

- **GitHub** your token your account
- **Code execution** ~$0.0001 / test run built in

## Project diagram

from the reference project

1. **Inputs** Repository owner/name, Task: issue, Linear id, bug, Base branch, test command
2. **Lead agent** Software Factory claude-haiku-5-5
3. **Tools** GitHub your own GitHub account, connected with a personal access token; file reads, the branch, the commit and the draft pull request; its token needs access to the repository Code execution $0.0666 per sandbox hour, billed per second; npm test before and after, $0.0001 in the measured run
4. **Outputs** Tests before and after, Branch and draft PR, Report with the evidence

**The diagram as text**

- **Inputs:** Repository owner/name, Task: issue, Linear id, bug, Base branch, test command
- **Lead:** Software Factory (claude-haiku-5-5) uses GitHub, Code execution
- **Tool:** GitHub - your own GitHub account, connected with a personal access token; file reads, the branch, the commit and the draft pull request; its token needs access to the repository (your own account)
- **Tool:** Code execution - $0.0666 per sandbox hour, billed per second; npm test before and after, $0.0001 in the measured run (built into FlyMy.AI)
- **Output:** Tests before and after (from Code execution)
- **Output:** Branch and draft PR (from GitHub)
- **Output:** Report with the evidence (from Software Factory)

## Day one

from the reference project

- 01 **Clone** One agent on Claude Haiku 5.5 with its welcome chat. free
- 02 **Connect GitHub** Your own GitHub account with a personal access token that can reach the repository; Linear only if your tasks live there. free
- 03 **Answer once** The repository, the task, the base branch and the test command. free
- 04 **First change** Reproduce, the plan and your yes, the fix on a new branch, the tests again, a draft pull request. $0.005 measured, pasted files

## How it runs

templates/software-factory v1.0

Runs when you answer its chat, and stops for your yes before its first write. A one-file bug with pasted files took 20 s and $0.005 on a copy of the reference (measured 2026-11-27).

## The agent team

from the reference project

### `Software Factory` Engineering lead

Reads the task, reproduces it in the sandbox, plans, waits for your yes, fixes it on a new branch, tests again and opens a draft pull request; it never merges.

GitHub Code execution

**Instruction excerpt**

You read the repository, write a short plan, make the smallest correct change on a new branch, run the project's tests in the sandbox, and open a draft pull request linked back to the task. You never merge, never push to the default branch, and never mark a PR "ready for review".

Budget: your project budget

on demand, in its chat, claude-haiku-5-5, last run $0.005 on 2026-11-27 (a one-file bug with pasted files: npm test exit 1 before, exit 0 after, 20 s)

## You will be asked

once, in one message

- **Which repository?** owner/name; your token needs access to it. `acme/web-app`
- **Which task?** A GitHub issue number, a Linear id, or the bug in your own words. `#12`
- **Which base branch?** Default: the repository's default branch. `main`
- **Which test command?** Default: found in package.json or pyproject.toml. `npm test`

Keys and passwords never go into the chat: you connect accounts on their own pages.

## What it costs

Measured on 2026-11-27

**0%** template markup or purchase fee [Usage pricing →](https://flymy.ai/pricing/)

**Price of one run**

| Item | Unit price | Per run | Cost |
|---|---|---|---|
| Code execution: npm test before and after | $0.0666 per sandbox hour | 1 call | $0.0001 |
| Agent: Claude Haiku 5.5 and the run checks | per token | one run | $0.005 |
| GitHub: files, branch, commit, draft pull request | compute time, fractions of a cent | not used with pasted files | $0 |
| One run, a one-file bug with pasted files | $0.005 |  |  |

Measured 2026-11-27 on a copy of the reference with get_execution_price: a one-file bug with the files pasted into the chat, npm test exit 1 before the change and exit 0 after, $0.005 in 20 s. With GitHub connected it also reads the files and writes the branch, the commit and the draft pull request through your account, each call a fraction of a cent; it stops and asks past about 40 tool calls or 5 changed files.

## What stays yours

the same for every template

### Your connections stay yours

A copy never carries the author's keys or connections.

### Nothing runs until you answer

Clone creates the agents and a setup chat; nothing bills before your reply.

### A budget you set

Choose the budget before the first run. Review usage in your own project.

## Versions

a copy keeps the version it was made from

- v1.0 2026-11-27 First public template: one agent on Claude Haiku 5.5 reproduces a task in the sandbox, plans, waits for your yes, makes the change on a new branch and opens a draft pull request with the tests before and after.

## Other ways to start

01 - Clone in FlyMy.AI

Open the reference project and press Clone; a setup chat asks once.

[Clone this project](https://app.flymy.ai/projects/e6ead86b-6d6c-4436-9804-b8e5bc961cbd?clone=1)

02 - Your Claude or Codex

Connect FlyMy.AI with [skill.md](https://flymy.ai/skill.md) and paste the request below.

03 - API and SDK

Agents MCP `projects_copy` with `fleet:e6ead86b-6d6c-4436-9804-b8e5bc961cbd`, or `client.projects.copy`.

## FAQ

**Is this a working project or just a brief?**

A working, public reference project with one agent on Claude Haiku 5.5. Clone it, connect your GitHub account and answer its welcome chat. On a copy of the reference a one-file bug with pasted files took 20 s and $0.005: npm test failed before the change and passed after it (measured 2026-11-27).

**Does it merge or push to my main branch?**

No. It works on a new branch and opens draft pull requests only. It never merges, force-pushes, deletes branches, pushes to the default branch or changes repository settings, even when asked: a person reviews and merges.

**What does it need from GitHub?**

Your own GitHub account, connected with a personal access token on the GitHub connect page; the token needs access to the repository. It reads only the files the task needs. Without GitHub, paste the files: you get the reproduction, the plan, a unified diff and the pull request text to apply yourself.

**What did the test cover?**

The pasted-files path: the bug reproduced with npm test in the sandbox, the change, the tests again, the diff and the pull request text. The branch and the draft pull request go through your own GitHub account and need a token with access to the repository.

**Which languages and test commands?**

JavaScript and TypeScript with Node 22 and npm, or Python with the standard library and pytest installed in the sandbox. It runs your own test command, such as npm test or pytest -q, or finds it in package.json or pyproject.toml.

**Can it take tasks from Linear?**

Tasks in Linear? Connect Linear on the connect page as well; it is optional, and it was not part of our test. The task can also be a GitHub issue number or the bug in your own words.

**Can I use it from Claude Code, Codex or Cursor?**

Yes, through the FlyMy.AI Agents MCP: copy the template with projects_copy, then answer the copy's welcome chat with append_message, or run the copy with run_agent and one message with the repository, the task and your choices. Follow it with get_run; get_execution_price gives the itemised price.

**Illustrative example, not a live result**

```
## Result: <issue id> - <short title>
Status: draft PR opened | plan only | blocked

| Item | Done | Evidence |
| Branch | fix/<slug> | <branch URL> |
| Commit(s) | <message> | <short SHA> |
| Draft PR | #<n> | <PR URL> |
| Task | <issue id> linked | <issue URL> |

### What changed
- <file>: <the change in one sentence>
- <test file>: <the new test>

### Tests
- base (<branch>): <passed>, <failed> - exit 1 - <the failing assertion>
- branch: <passed>, 0 failed - exit 0

### Needs a human
- Review and merge PR #<n>.
```

## Sources

[Reference project →](https://app.flymy.ai/projects/e6ead86b-6d6c-4436-9804-b8e5bc961cbd), [GitHub MCP →](https://flymy.ai/mcp/github/), [Linear MCP →](https://flymy.ai/mcp/linear/), [Usage pricing →](https://flymy.ai/pricing/)

## More templates

Agent template

### [Instagram Trend Watcher](https://flymy.ai/templates/instagram-trend-watcher/)

Finds the standout posts of the Instagram creators you pick and sends a daily digest with reuse ideas.

Agent template

### [SEO / GEO Research Agent](https://flymy.ai/templates/seo-geo/)

Crawls your site, checks your queries in Google and its AI Overview and publishes a report page with up to 10 actions, each with its evidence.

Agent template

### [PromptLinks](https://flymy.ai/templates/promptlinks/)

Send your website: the lead reads it and writes a mind map of 50-100 buyer searches, and two research agents find where you can earn links - a new PR article or an existing article - on one page with both tables.

Content and connection guidance checked 2026-11-27. See linked documentation for current availability and prices.

---

For agents: the FlyMyAI operating guide (sign up, connect, run models, tools and agents) is https://flymy.ai/skill.md, and https://flymy.ai/llms.txt lists the other pages and the documentation.
