How FragonForge works, in depth

The home page shows the four-step loop. This page explains what happens underneath: how runs are triggered, what the agent modes do, and which guardrails sit between an issue and a merged change.

The trigger

Labeling an issue starts a run through your forge's webhook. Your forge calls a per-organization webhook URL that carries a signed token, and the payload is verified against your own webhook secret, in constant time, before anything else happens. Runs are admitted against your plan's quota and concurrency limits, then queued. No cron jobs polling your repository, no standing access.

The label is not the only door: a run can also be started directly from the API or the CLI, without touching the issue. Manually started runs pass the exact same quota and concurrency admission as webhook runs.

An issue comment that mentions the agent starts a run too; both the label and the mention are set per repository. Neither checks who added the label or wrote the comment, so on a public repository keep label rights with maintainers and change the mention to something that is not guessable.

The sandbox

Each run gets a fresh Kubernetes job with a hardened runtime (Kata VMs on every plan) and a wall-clock limit that depends on the plan, from 15 minutes on Free to 120 minutes on Business, and by agreement on Enterprise. The sandbox contains a clone of your repository and real toolchains: dotnet test, pytest, phpstan, rubocop and more. It contains no credentials either; the details are on the security page.

The limit

What the sandbox does not contain is your project's dependencies. A run restores them through our registry door, never the open internet, for npm, PyPI, NuGet, Go, Cargo, Maven, Composer and RubyGems; other ecosystems need their dependencies in the repository.

run 1847 · live timelineillustrative example
queued issue #412 labeled, verified
sandbox up k8s job ff-run-1847, egress: deny
clone acme/reporting @ main (a41c9f2)
plan 1 file to change, 2 tests to add
edit src/Export/ExportService.cs
test dotnet test: 214 passed, 2 new
push branch fix/412-empty-csv-header
done MR !391 opened, awaiting review

2m 52s from label to merge request

Agent modes

Not every issue deserves the same process. You choose per repository how much ceremony a run gets:

  • One-shot

    The default. Clone, gather context, write the fix, run your tests, open the merge request. One agent, one pass, best for well-specified issues.

  • Multi-agent

    A planner drafts the approach, a coder implements it, a reviewer looks over the result before the merge request opens. The reviewer is advisory: it flags concerns in the MR description, it does not silently rewrite code.

  • Spec-driven

    For issues that need a plan first: the agent drafts a specification for your approval, then a test plan for your approval. These are the two human approval gates before it writes the tests and implementation and opens a merge request.

For goals bigger than one issue there is a fourth gear, different enough to deserve its own section: the Orchestrator, below.

The Orchestrator

Give it a goal, not an issue. The Orchestrator explores the codebase, drafts an architecture, plans the goal into a dependency graph of steps, and drives each step through the same run loop you just read about. You approve the architecture and the plan, and a failed stage retries from the earliest failed point, not from scratch.

Orchestrator · goal #87illustrative example
goal CSV import for reports
arch architecture drafted approved by you
plan 4 steps planned approved by you
├─ step 1 parse & validate schema done, MR !388 merged
├─ step 2 importer service done, MR !390 merged
├─ step 3 API endpoint running
└─ step 4 upload UI not started

Each step runs the normal loop and opens its own merge request; you stay the gate between stages.

Can it build a whole app? Yes: a goal goes in, and the entire buildout comes out as a dependency-ordered series of reviewed merge requests, starting from a completely empty repository if that is where you are. Deep planning exists for exactly this: discovery clones and scans the repository, architecture drafts a design you approve, and the plan into steps is validated per step. Acceptance criteria, files to touch, and tests to add are required for every step, or planning stops and says which rule the plan broke. The practical limits are economic, not structural: every step is a run against your plan's quota and wall-clock limit, and your review capacity sets the pace. One tip: a large specification works best committed as a file in the repository, where discovery reads it directly instead of squeezing it through the prompt.

A plan that cannot deadlock. A weaker model sometimes returns a dependency graph with no edges at all, or one where a step points at a later step, which would build things in an order that cannot work. The planner is asked once to correct it, and then the graph is repaired automatically. Two steps that declare the same file, or that both change your dependencies, a database migration, or the solution or workspace file, always run one after the other, even when the planner did not link them, so they cannot conflict. Steps that need nothing from each other start at the same time, by default up to three steps of one goal at once, and a step never starts over a failed dependency.

Steering the agent

Two levers keep the agent on your conventions: organization-wide instructions (versioned, prepended to every run) and a per-repo .fragonforge/codingagent.md file that travels with the code, the same way you would brief a new contractor. It also reads your README and agents.md, and a .fragonforge.yml can tune a branch.

The quality gate

A second plane watches quality independently of the agent loop, and it answers the question every engineer asks first: what if the agent itself ships junk? The quality gate draws from a catalog of analysis tools, from static analyzers to test runners. They are the community tools you already know (eslint, phpstan, rubocop, and more), orchestrated and normalized rather than reinvented: every finding carries its tool, severity, rule, file and line, and a fix suggestion. No proprietary engine, and we say so.

Findings are fingerprinted across runs: only findings that are new relative to your baseline block, so you are not buried in legacy noise, and a finding that disappears from the code is stamped resolved automatically. Repositories get an A to F rating over time. And because the gate lives inside a coding agent, findings do not just get listed: you can let FragonForge open auto-fix merge requests with convergence detection, so the plane that catches a problem is the same one that repairs it. Honest boundary: this is a quality gate, not a SonarQube replacement. There is no finding triage (no false-positive or accepted status, no assignment) and no taint-analysis SAST; the comparison is on the SonarQube page.

Every AI review states its blast radius. The reviewer maps each hunk of the diff to symbols in the code graph and lists the callers that resolve to them, into its own prompt and into the merge-request comment. So "this change is contained" stops being an opinion you have to take on trust. When it cannot answer, because the file is not indexed, the index is still building, or the diff is too large to map, it names which of those it was. An empty blast radius would read as "nothing calls this", and that is the one thing it must never imply by accident.

quality gate · run 1847illustrative example
1 changed file analyzed0 new findingsbaseline: 127 known, unchangedrepo rating: B

Gate passed: the change ships no regressions your linters would catch. Legacy findings stay in the baseline instead of blocking the merge request.

Code search, not a pasted repository

The agent does not paste your repository into a prompt. It searches an index and reads from its own checkout. Structural search works on every plan, Free included: find a symbol, list its callers and its callees, expand a definition. Semantic search is the paid addition, and it matters most on codebases too large to fit in a prompt.

Every repository gets this index, on every plan. Parsing is symbol-aware for C#, Go, JavaScript, TypeScript, Python, Java, Rust, PHP, and Ruby. Search answers are locations (symbol, file, line range, signature), never source text, and semantic search on paid plans embeds declarations only: names, signatures, doc comments and file paths, never function bodies. The index is tenant-isolated and deleted with everything else when you leave.

The limit

Every other language is parsed line by line, which still finds code, just less precisely. A repository whose semantic index cannot be built says so and falls back to keyword ranking rather than returning a quiet empty result, because silence would read like a clean answer.

What keeps it honest

The guarantee

By default FragonForge never merges its own work. Autonomous merge is an opt-in per goal or branch fix, available on paid plans for private repositories. It applies only when the quality gate explicitly passed on an analysis of the exact commit, and a change that adds a network or subprocess call, touches CI, auth, secrets or a dependency file, or adds or moves a package still waits for a person.

Beyond that: runs are bounded by wall-clock limits, monthly quotas, per-plan concurrency, a per-run ceiling on model tokens and calls, and your organization's monthly and daily spend cap on your own keys. A run either draws on the FragonForge AI budget your plan includes, which pauses rather than overcharges when it is spent unless an Owner opts into an overrun up to a limit they choose, or it spends your own credential, whether that is an API key or your own ChatGPT plan. On that second path the incentive to burn tokens on your behalf does not exist at all.

Frequently asked questions

Can FragonForge build a whole app from scratch?

Yes. Give the Orchestrator a goal instead of a single issue, and it delivers the entire buildout as a dependency-ordered series of reviewed merge requests, starting from a completely empty repository if that is where you are. A discovery stage scans the repository, an architecture stage drafts a design you approve, and the goal is planned into a dependency graph of steps (acceptance criteria, files to touch, and tests to add are required for every step, and a plan that leaves them out does not go ahead). You approve the plan, and each step then runs in its own sandbox and lands as a merge request. Building a whole application this way is a built-in use case, not a workaround, and the economics (runs, wall-clock, review capacity) set most of the limit. One technical boundary belongs next to it: packages are restored through our registry door for npm, PyPI, NuGet, Go, Cargo, Maven, Composer and RubyGems, and a step that adds or changes a dependency waits for your merge.

Does it work on an empty repository?

Yes. You can start from a completely empty repository: the architecture stage designs the project structure and the first steps create it. When code already exists, discovery and the code index put it to work. A large specification is best committed as a file in the repository, where discovery reads it directly instead of squeezing it through the prompt.

How many runs does building a whole application take?

Every step of a goal is one run against your plan's monthly quota and wall-clock limit, creating the goal counts as one more, and the planning stages use a concurrent-run slot while they work. A whole application typically decomposes into dozens of steps. There is no single honest number, because it depends on how the goal decomposes; size the plan by expected steps per month (Free 100, Solo 300, Team 1,500, Business 5,000 runs) and remember that your review pace sets the overall speed.