ContextForge is most useful when a repository already uses Codex, Claude Code, GitHub Copilot, or another coding agent for review, debugging, release preparation, or maintenance. These scenarios show what to run, what artifact to inspect, and what success looks like.
Use this when a project is starting to accept agent-written PRs or when a maintainer wants every PR to prove that repo context is concise, safe, and actionable.
contextforge init --all --project-name "My Repo"What it creates:
.github/workflows/contextforge-audit.yml.github/workflows/contextforge-pr-comment.ymlAGENTS.mdCLAUDE.md.github/copilot-instructions.md
Success signal:
- Pull requests upload
contextforge-audit.json,contextforge-report.html,contextforge.sarif,contextforge-summary.md,contextforge-agent-plan.md, andcontextforge-pr-comment.md. - The PR comment summarizes context health, cache stability, context security, failing gates, and top agent fixes.
Use this when project memory has grown by copying generic prompts, repeated instructions, or stale process notes.
contextforge agents-md-audit
contextforge improve --json
contextforge improve --write
contextforge audit --summary contextforge-summary.md --plan contextforge-agent-plan.md --suggestions contextforge-suggestions.json --badge contextforge-badge.svgSuccess signal:
- Repeated, vague, or oversized instructions become concrete repo rules.
- Codex, Claude, or a bot can parse structured
title,text, andsourcefields instead of scraping Markdown bullets. - CI uploads the same structured suggestions as
contextforge-suggestions.json. - Maintainers get a compact
contextforge-badge.svgproof artifact for status dashboards or README workflows. contextforge-agent-plan.mdtells Codex or Claude what to fix first.
Use this before asking an agent to trust a new repository, dependency example, benchmark fixture, or external contribution.
contextforge security-audit --min-security-score 80
contextforge security-benchmarkSuccess signal:
- Prompt injection, secret exfiltration, unsafe shell instructions, hidden directives, and permission escalation are flagged before the agent follows them.
- SARIF output can surface file-backed findings in GitHub Code Scanning.
Use this when Codex or Claude feels expensive, slow, or repetitive, but a plain usage dashboard does not explain why.
contextforge usage --codex --claude
contextforge cache-audit --codex --claude
contextforge trace-audit --codex --claude --summary contextforge-trace-audit.md
contextforge cost-estimate --codex --claude --summary contextforge-cost-estimate.md --input-price-per-mtok 2 --cached-input-price-per-mtok 0.2 --output-price-per-mtok 10
contextforge doctor --jsonSuccess signal:
- Expensive record kinds and projects are visible.
- Volatile prefixes, timestamps, and large tool outputs are identified before the next long agent session.
- Repeated tool calls, tool-output-heavy traces, and cache reuse are visible in
contextforge-trace-audit.md. - Configurable spend estimates are visible in
contextforge-cost-estimate.mdwithout baking provider prices into the repository.
Use this before handing a focused bug, security review, or refactor to an agent.
contextforge pack --task "review auth regression" --budget 20000 --sessions --output contextforge-pack.mdSuccess signal:
- The generated pack stays inside the token budget and shows a
Budget Ledger. - Each included file explains why it was selected, including task terms, manifests, README orientation, instruction files, recent reads, recent edits, or failure mentions.
Use this when a PR was written by an agent, changes repo instructions, touches GitHub workflows, or needs a compact review prompt before merge.
contextforge review-kit --base main --output contextforge-review-kit.mdSuccess signal:
- Reviewers see the changed files and the risk areas ContextForge inferred.
- Codex or Claude gets a copyable prompt that asks for findings first and points
at
contextforge-pr-comment.md,contextforge-agent-plan.md, andcontextforge-proof-pack.md. - Maintainers can run the same evidence commands locally or in CI before trusting the review.
Use this when a repository needs visible build-in-public proof that the tool is real, deterministic, and useful before npm publishing or broad launch.
contextforge examples --output examples/demo-output.md
contextforge review-kit --demo --base main --output examples/review-kit.md
contextforge doctor --summary contextforge-doctor.md
contextforge artifact-map --output docs/artifacts.md
contextforge launch-snapshot --output docs/launch-snapshot.md
contextforge scorecard --output contextforge-scorecard.md
contextforge mcp-audit --summary contextforge-mcp-audit.md --sarif contextforge-mcp.sarif
contextforge claude-audit --summary contextforge-claude-audit.md --sarif contextforge-claude.sarif
contextforge workflow-audit --summary contextforge-workflow-audit.md --sarif contextforge-workflow.sarif
contextforge actions-audit --summary contextforge-actions-audit.md --sarif contextforge-actions.sarif
contextforge trace-audit --demo --summary contextforge-trace-audit.md
contextforge cost-estimate --demo --summary contextforge-cost-estimate.md --input-price-per-mtok 2 --cached-input-price-per-mtok 0.2 --output-price-per-mtok 10
contextforge pack --demo --task "review auth regression" --budget 600 --output contextforge-pack.md
contextforge adoption-brief --output docs/adoption.md
contextforge publish-readiness --summary contextforge-publish-readiness.md
contextforge proof-pack --output contextforge-proof-pack.md
contextforge launch-kit --output docs/launch-post.md
contextforge compare --output docs/comparison.md
contextforge audit --demo --comment examples/pr-comment.mdSuccess signal:
- Visitors can inspect generated token usage, CI audit, and PR comment previews without installing anything.
- Visitors can open
contextforge-scorecard.mdfirst for a one-screen Codex/Claude readiness answer. - Visitors can open
docs/launch-snapshot.mdfor the why-now story, adjacent category map, first proof artifacts, and share copy. - Visitors can open
contextforge-mcp-audit.mdto see whether committed MCP configs expose secrets, unsafe shell installers, unpinned packages, auto-approval, broad tool permissions, or symlinked config files. - Security reviewers can upload
contextforge-mcp.sarifso MCP config exposure findings appear in GitHub Code Scanning beside other file-backed alerts. - Claude Code reviewers can open
contextforge-claude-audit.mdor uploadcontextforge-claude.sarifto catch risky shared project settings before users trust repo-provided permissions and hooks. - Security reviewers can open
contextforge-workflow-audit.mdor uploadcontextforge-workflow.sarifto catch GitHub issue, PR, review, comment, title, workflow input, or branch/ref text flowing into privileged AI workflows. - Release reviewers can open
contextforge-actions-audit.mdor uploadcontextforge-actions.sarifto catch mutable action refs, missing permissions, Node 24 runtime opt-in, pwn-request checkout, and direct script interpolation before agent-authored workflow changes reachmain. - Agent operators can open
contextforge-trace-audit.mdto see whether the demo trace wasted turns on repeated tools or bulky output before they try local Codex/Claude history. - Budget reviewers can open
contextforge-cost-estimate.mdto see how price assumptions affect observed demo token spend. - Agent operators can open
contextforge-pack.mdto inspect a bounded task context bundle with a visible budget ledger. - First-time maintainers can open
docs/adoption.mdfor the 30-second proof path, adjacent-tool positioning, pre-npm try-it commands, and star-worthy proof checklist before reading the full repository. - Reviewers can jump from the generated PR comment to
contextforge-proof-pack.mdfor the deeper doctor/audit proof packet. - Visitors and reviewers can open
docs/artifacts.mdto choose the right proof artifact before reading the whole repository. - CI readers can download
contextforge-artifact-map.mdfrom the audit artifact set instead of guessing which uploaded file to inspect first. - Release maintainers can attach
contextforge-publish-readiness.mdto the first npm publish issue and see which package provenance, workflow, and account-level setup steps are ready or still human-owned. - Maintainers have a generated launch post, suggested GitHub topics, and proof commands that stay aligned with the CLI.
- Maintainers can attach one proof pack to README updates, launch posts, and Codex/Claude handoff issues.
- Visitors can understand how ContextForge complements Repomix, ccusage, promptfoo, security scanners, and agent memory conventions.
- Coding agents can start from
llms.txtandllms-full.txtinstead of guessing the documentation path.
- It is not a generic cost dashboard.
- It is not a replacement for Repomix, ccusage, promptfoo, or security scanners.
- It does not call an LLM to create audit results.
- It does not scan local Codex or Claude history in CI unless explicitly requested with session flags.
ContextForge owns the maintainer layer between those tools: repository context quality, deterministic CI artifacts, and agent-readable next actions.