Skip to main content
Forge is ManticScore’s agentic coding automation. You describe what you want built in plain language, point it at a GitHub repository, and Forge handles the rest: it reads the codebase, plans the changes, writes the code, validates its own work, and opens a pull request. You control how much autonomy it has — from analysis-only to fully automatic PR creation — and you can monitor every step in real time through the event stream.
Forge requires a connected GitHub account. Start the OAuth flow at POST /auth/github/start before submitting tasks.

Run modes

Choose the mode that matches how much automation you want:

Run lifecycle

A Forge run moves through these statuses in order:
The awaiting_approval step only appears in autonomous mode. In create_pr mode the run goes directly from validating to creating_pr.

Submitting a task

1

Connect GitHub

If you haven’t already, start the GitHub OAuth flow:
curl
Open the returned auth_url in a browser to complete authorization.
2

Submit the Forge task

Describe the coding task in plain language and specify the target repository.
string
required
Natural language description of the coding task. Up to 5,000 characters.
string
required
The GitHub repository to work in, in owner/name format.
string
default:"autonomous"
Run mode: analyze_only, generate_patch, autonomous, or create_pr.
string
UUID of an existing ManticScore project. Pass null to leave unattached.
array
Optional list of constraints the AI should follow, e.g. ["Do not modify existing tests", "Use the existing logger utility"].
Response 201:
3

Stream run progress

Connect to the run’s event stream to watch Forge plan and write code in real time.
curl

Streaming run events

The stream follows the NDJSON v1 protocol.
When a tool call fails, Forge emits a tool_call_failed event with the specific tool name and error before surfacing a generic failure. This makes it easier to diagnose integration issues.

Approving or rejecting a run (autonomous mode)

When a run in autonomous mode reaches awaiting_approval, you review the plan and diff before the PR is created. Approve — create the PR:
curl
Reject — discard the run:
curl
Cancel — stop an in-progress run:
curl
Retry — start a new run from the same task (after failure, rejection, or cancellation):
curl

Fetching run details and PR info

List all runs

curl

Get a specific run

curl
Returns the full run object with a steps array and an optional pull_request object once the PR has been created.

Get pull request details

curl

Using Forge from a build node

If you have a Build Graph, you can kick off a Forge run directly from any node. ManticScore uses the node’s generated spec as the coding prompt:
curl
When you provide notes, ManticScore refines the node’s spec with your direction before passing it to Forge.

Limits and credits

Forge requires push access to the target repository. If your GitHub account does not have push access, the task submission returns a 403 error.