forge

forge is a command for Claude Code from cluesmith/codev. It costs 0 tokens per session (5,793 once invoked), scanned C, original, Apache-2.0.

A set of repository-hosting commands for Codev projects. A repository host, or forge, is a service such as GitHub, GitLab, or Gitea that stores Git code and provides issues and code reviews.

In plain words
What is it for?
Use it to view and comment on issues, manage pull or merge requests, and merge changes through GitHub, GitLab, Gitea, or custom command-line tools.
Why use it?
It lets a project use different hosting services without rewriting every command. Provider presets supply common commands, while individual operations can be overridden when needed.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to view and comment on issues, manage pull or merge requests, and merge changes through GitHub, GitLab, Gitea, or custom command-line tools.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/cluesmith/codev/forge
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/cluesmith/codev

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/cluesmith/codev/forge/github.svg)](https://agentmods.dev/commands/cluesmith/codev/forge)
Your own site
<a href="https://agentmods.dev/commands/cluesmith/codev/forge"><img src="https://agentmods.dev/badge/commands/cluesmith/codev/forge/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

Your own site · 80×15
<a href="https://agentmods.dev/commands/cluesmith/codev/forge"><img src="https://agentmods.dev/badge/commands/cluesmith/codev/forge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,793 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00000 $0.05793
Opus 5.5 $0.00000 $0.02317
Sonnet 5.5 $0.00000 $0.01159
Haiku 4.5 $0.00000 $0.00579

Measured yesterday against content hash f705db4945f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

forge scanned grade C with 2 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 yesterday.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

trap 'rm -rf "$tmp"' EXIT

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

"pr-diff": "curl -s https://gitea.example.com/api/v1/repos/owner/repo/pulls/$CODEV_PR_NUMBER.diff"
codev/resources/commands/forge.md · 439 lines

How it starts

The opening of the file, as written. The whole thing — 439 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Forge Concept Commands

Codev uses forge concept commands to interact with your repository hosting platform. By default, all concepts use the GitHub CLI (gh). Projects using GitLab, Gitea, or other forges can override these commands.

Quick Start

Using a Provider Preset

Add to .codev/config.json:

{
  "forge": {
    "provider": "gitlab"
  }
}

Available providers: github (default), gitlab (uses glab CLI), gitea (uses tea CLI), linear (uses the Linear API), jira (Jira Cloud, uses Atlassian's acli CLI).

linear and jira are hybrid providers: they serve the issue concepts, and every PR concept deliberately falls through to the gh default, because the repository itself still lives on GitHub. Only team-activity, on-it-timestamps and overview-bundle are disabled (see Tower Overview). A hybrid workspace therefore needs two logins, the tracker's and gh's; codev doctor reports both.

Note: Non-GitHub presets are best-effort. Their CLI tools may produce output schemas that differ from GitHub's JSON contracts. Codev handles this gracefully — concepts that return non-conforming JSON are treated as unavailable (null). If a preset command doesn't work correctly for your setup, override the individual concept with a command that produces the expected output.

Overriding Individual Concepts

{
  "forge": {
    "issue-view": "glab issue view \"$CODEV_ISSUE_ID\" --output json",
    "pr-merge": "glab mr merge \"$CODEV_PR_NUMBER\" --yes"
  }
}

Combining Provider + Overrides

Manual overrides take precedence over the provider preset:

{
  "forge": {
    "provider": "gitlab",
    "issue-comment": "my-custom-comment-script $CODEV_ISSUE_ID \"$CODEV_COMMENT_BODY\""
  }
}

Resolution order: manual override > provider preset > default (github).

Disabling Concepts

Set a concept to null to disable it. The feature that uses it will gracefully degrade:

Read the full file on GitHub · 439 lines

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. yesterday Changed · +150 lines scan A → C f705db4945f3
  2. 6d ago Changed · +42 lines 43f5efc8848f
  3. 14d ago Changed 3fceb07d4973
  4. 1mo ago Changed · +36 lines f8643698dc67
  5. 2mo ago Changed · +24 lines 4c191ddd8b36
  6. 3mo ago First seen · 187 lines · 0 tokens per session scan A d04716a283f6

Subscribe to this mod's changes

forge is a command published in the GitHub repository cluesmith/codev (298 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 5,793 tokens. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

forge compared with commands from other repositories

forge next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
forgecluesmith/codevCommand298todayApache-2.0C0Claude Code
review-prsnkhdiscovery/headless-agentic-codebaseCommand107mo agoMITA11Claude Code
next-issuenkhdiscovery/headless-agentic-codebaseCommand107mo agoMITA9Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
ticketowainlewis/youtube-tutorialsCommand4242mo agoMITA19Claude Code
run-planjuliusz-cwiakalski/agentic-delivery-osCommand47yesterdayMITA8Claude Code, OpenCode
conventions-checkeugenelim/agent-ready-repoCommand35yesterdayApache-2.0A28Claude Code