AgentForge v3.13.2 Download

View What each agent costs and produces

Metrics

Cost per agent and the builders' branches

Metrics is the view in AgentForge that shows what a mission spent and what it produced. Metrics contains the card and agent breakdown, the timeline, the token and cost table per agent, and the branch integration panel, where builder branches are reviewed, commented on, merged or opened as pull requests.

Real interface Real captures taken from the live demo; the data is synthetic.
Screenshot of the AgentForge Metrics view

The token and cost table #

AgentForge reads usage from the agent CLIs' own local session records: Claude Code, Codex CLI and Gemini CLI. Cost is calculated from input and output token prices per model, and for a custom provider the user can enter their own price.

If a record cannot be matched to a pane reliably, Metrics does not show zero: the agent goes on a "cannot be measured" list with the reason. This happens when several panes of the same CLI are open in the same folder, when no record exists, or when the record format is not recognized.

Ceilings: mission, day and agent #

AgentForge applies ceilings at three levels. The mission ceiling, the daily ceiling and the per-agent ceiling are set in dollars and tokens, with a default warning threshold at 80 percent of the ceiling. When a ceiling is exceeded AgentForge pauses the mission: no new cards are assigned, agent terminals stay open and an agent turn already in progress is not interrupted. Without a measurement, spend is not assumed to be zero and the ceiling is not silently disabled: after three consecutive failed measurements the mission is paused.

Budget events are written to the event log and, when configured, delivered to a Telegram, Discord, Slack or custom webhook channel.

The branch integration panel #

In isolated mode each builder works on its own branch. The branch panel in Metrics lists those branches and merges a branch into the main branch with one click, reporting any conflict. A comment can be written on a line of the branch diff; comments persist in .forge/diff-comments.json, and "Send to agent" delivers the list of file, line and comment to the branch's agent as one message.

A branch can be opened as a pull request when the GitHub CLI is installed and signed in. AgentForge pushes the branch without a force push and states beforehand that the action makes the branch visible to everyone with access to the repository.

Cleaning up leftover worktrees and branches #

On opening, the branch panel in Metrics only scans and shows the number of items that can be cleaned: an empty branch, a branch merged into the main branch, an orphan folder git does not track, and a worktree whose branch was deleted. Deletion happens only after selection and a second confirmation.

Branches with unsaved files, unmerged commits or an open console, and branches outside the forge/ prefix, are never touched. When a mission ends, uncommitted work is saved to the branch as a WIP commit rather than deleted.

Metrics features #

The 3 features that live in this view. Each is also listed in the overview of all features.

  • Line comments on a branch diff #

    Comments are written on lines of the branch diff in Metrics. They persist in .forge/diff-comments.json, and "Send to agent" delivers the list of file, line and comment to the branch's agent as one message.

    Listed under Verification and review

  • Tokens and cost per agent #

    Usage is read from the local session records of Claude Code, Codex CLI and Gemini CLI and shown per agent. If a record cannot be matched to a pane reliably, the value is shown as "cannot be measured" with the reason, not as zero.

    Listed under Cost and control

  • Usage limits in the top bar #

    The top bar shows the provider limits of the open agents, each with its provider logo: for Claude the 5-hour and weekly windows and, when Claude Code reports it, the Fable limit in its own row; ChatGPT (Codex) limits appear too, depending on which agents are open. Additional Codex accounts are listed as their own group under the account name.

    Listed under Cost and control

At a glance

Name in the app menu
Cost and branches
CLIs with usage measurement
Claude Code, Codex CLI, Gemini CLI
Ceiling levels
mission, daily, per agent
Default warning threshold
80% of the ceiling
Mission closing report
cards, evidence, branches and cost under .forge/reports/

Questions about Metrics

Why does Metrics show "cannot be measured" for an agent? #

Metrics shows "cannot be measured" instead of zero, with the reason, when it cannot match a usage record to a pane reliably. This happens when several panes of the same CLI are open in the same folder, when no record exists, or when the record format is not recognized. Usage is measured per agent, and matching a record to a pane involves no guessing; cost is an estimate, tokens multiplied by a per-model price.

See also: TroubleshootingAgent integration over MCP: Claude Code, Codex and Gemini

What happens to running agents when a cost ceiling is exceeded? #

When a ceiling is exceeded AgentForge pauses the mission: the terminals of running agents stay open and an agent turn already in progress is not interrupted, but no new cards are assigned. Dispatch continues when the limit is raised or the user resumes. A warning is raised on the way to the ceiling, at 80 percent by default.

See also: SwarmGuardrail