forge-ultracode-check

forge-ultracode-check is a command for Claude Code from luiseiman/dotforge. It costs 51 tokens per session (554 once invoked), scanned A, original, MIT.

A command that decides whether the project's high-effort, adversarial-checking workflow should be enabled for the current task. It considers the project's risk level, Git changes, recent edits, and sensitive files.

In plain words
What is it for?
Use it before a task to assess whether changes involving many files, authentication, payments, migrations, infrastructure, schemas, or security need extra scrutiny.
Why use it?
It helps match the amount of review and process to the size, risk, and difficulty of the work.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dotforge plugin — 25 skills, 25 commands, 7 agents, 8 hooks shipped together

Good fit Use it before a task to assess whether changes involving many files, authentication, payments, migrations, infrastructure, schemas, or security need extra scrutiny.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/luiseiman/dotforge/forge-ultracode-check
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/luiseiman/dotforge

Made for: Claude Code.

Or install dotforge, the plugin that ships this one along with the rest of its 25 skills, 25 commands, 7 agents, 8 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for forge-ultracode-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/luiseiman/dotforge/forge-ultracode-check/github.svg)](https://agentmods.dev/commands/luiseiman/dotforge/forge-ultracode-check)
Your own site
<a href="https://agentmods.dev/commands/luiseiman/dotforge/forge-ultracode-check"><img src="https://agentmods.dev/badge/commands/luiseiman/dotforge/forge-ultracode-check/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for forge-ultracode-check

Your own site · 80×15
<a href="https://agentmods.dev/commands/luiseiman/dotforge/forge-ultracode-check"><img src="https://agentmods.dev/badge/commands/luiseiman/dotforge/forge-ultracode-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 554 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.00554
Opus 5.5 $0.00020 $0.00222
Sonnet 5.5 $0.00010 $0.00111
Haiku 4.5 $0.00005 $0.00055

Measured 1mo ago against content hash 00f88097e682, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

forge-ultracode-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

global/commands/forge-ultracode-check.md · 37 lines

What it actually says

Decide whether ultracode mode is justified RIGHT NOW for this working tree.

  1. Resolve project tier

    • Read registry/projects.local.yml (or .forge-manifest.json at repo root, or $DOTFORGE_DIR/registry/projects.local.yml)
    • Match entry by cwd → extract ultracode_tier (light | standard | heavy | production)
    • If no match or field absent → default standard, note "unregistered project"
  2. Read working state

    • git status --short → count files modified (M) and staged (A/M cached)
    • git diff --stat HEAD → lines added/removed
    • Read .claude/session/last-startup.md → recent edits + active task hint
    • Note presence of high-risk surfaces: migrations, auth, payments, infra IaC, schema files, template/hooks/, settings.json.partial
  3. Apply the 5 canonical criteria (from domain/workflow-and-ultracode-policy.md)

    • C1 Blast radius: ≥3 files OR >200 LOC changed → +1
    • C2 Domain risk: tier ≥ heavy, OR touches auth/payments/migrations/infra/schema/security → +1
    • C3 Ambiguity: ≥2 valid approaches with real tradeoffs (infer from task hint) → +1
    • C4 Reversibility: hard to undo (prod migration, force-push, schema drop, live trade) → +1
    • C5 Prior failure: sonnet attempted and failed, OR CLAUDE_ERRORS.md shows repeat in this area → +1
  4. Output verdict

Ultracode recommendation: ON | CONSIDER | OFF
Score: N/5  (tier: <tier>, files: <n>, LOC: ±<n>)
Triggered: C2 (auth touched), C4 (migration irreversible)
Reasoning: <2-3 lines citing which criteria fired and why>

Mapping: score ≥3 → ON · score 2 → CONSIDER · score ≤1 → OFF. Override to ON if C2+C4 both fire regardless of total — irreversible touch on a risk surface always warrants adversarial verify.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 37 lines · 51 tokens per session scan A 00f88097e682

Subscribe to this mod's changes

forge-ultracode-check is a command published in the GitHub repository luiseiman/dotforge (8 stars, last pushed 13d ago), licensed MIT. It adds 51 tokens to every session and 554 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.