new-feature

new-feature is a command for Claude Code from pablomarin/claude-codex-forge. It costs 0 tokens per session (4,078 once invoked), scanned A, a copy of fix-bug, MIT.

A mandatory workflow for developing a new feature. It coordinates several Claude Code plugins for planning, coding, debugging, and review.

In plain words
What is it for?
Use it to plan and implement features, run systematic debugging, review code, and prepare changes in a separate worktree.
Why use it?
It gives feature work a fixed sequence and checks that required tools are enabled before starting. It also requires an isolated worktree, a separate working copy of the repository.

Command for Claude Code

Written for Claude Code: SubagentStop hook event. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to plan and implement features, run systematic debugging, review code, and prepare changes in a separate worktree.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/pablomarin/claude-codex-forge/new-feature
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/pablomarin/claude-codex-forge

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 new-feature

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/pablomarin/claude-codex-forge/new-feature"><img src="https://agentmods.dev/badge/commands/pablomarin/claude-codex-forge/new-feature.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 4,078 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 86% copy Near-identical to another mod 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.04078
Opus 5.5 $0.00000 $0.01631
Sonnet 5.5 $0.00000 $0.00816
Haiku 4.5 $0.00000 $0.00408

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

Security

Grade A, and why

new-feature 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.

Origin

This is a copy

86% identical to fix-bug — 248 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/new-feature.md · 274 lines

How it starts

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

/new-feature — Host-Neutral Feature Workflow

Build a substantial feature from requirements through an open PR. The active Claude Code or Codex host is the main agent for this session; there is no permanent main engine.

Apply the shared Startup boundary before the first workflow step. It is the canonical activation, resume, isolation, and setup-failure contract.

0. Resume or Start

  1. Read .forge/instructions.md and .forge/rules/, resolve the active host through its installed adapter, then run .forge/hooks/lib/workflow-state.sh show (PowerShell: the .ps1 twin). If the canonical state is absent or invalid, stop and use the setup/migration path; never reconstruct it ad hoc.
  2. If this worktree already has the matching workflow active, complete the native session/worktree probe before resuming, then use workflow-state.sh checkpoint with the displayed phase and exact next step to record Last active host, then resume that step. If it is inactive, continue only through the deterministic worktree/base preflight below. There is no Forge edit lock; concurrent sessions are allowed, including simultaneous editing, so coordinate overlapping writes. If any session mutates the candidate, candidate-bound evidence becomes stale and must be regenerated before certification.
  3. Reuse an existing isolated physical worktree, including a prepared native worktree. If none exists, create one with the portable helper where allowed: .forge/hooks/lib/worktree-lifecycle.sh create --kind feat --name <slug> --base <ref-or-sha> (PowerShell: worktree-lifecycle.ps1 -Action Create -Kind feat -Name <slug> -Base <ref-or-sha>). In a fresh host-native worktree, normalize and seed it before activation with .forge/hooks/lib/worktree-lifecycle.sh adopt --kind feat --name <slug> --base <ref-or-sha> --worktree "$PWD" (PowerShell: worktree-lifecycle.ps1 -Action Adopt -Kind feat -Name <slug> -Base <ref-or-sha> -Worktree $PWD.Path). This safely replaces a clean, unpublished host-generated branch name with feat/<slug>; it never renames protected, dirty, shared, or published work. Only in the Forge source checkout, when the installed path is absent, use the tracked hooks/lib/worktree-lifecycle.sh or .ps1. Native creation or adoption is optional only under the shared startup boundary; never create a second worktree for the same-directory handoff.
  4. Run the native session/worktree probe after selecting or adopting the target and before activation or resumed task work. Continue in the current session when the native probe matches. Use that context for local edits, reviews, verification, approval recording and normal receipt-validating promotion. Recover a mismatch through the host's supported attachment/rebind to the existing worktree, or open that checkout in a native session if rebind is unavailable. Before direct shipping, follow Shipping from the current session. Shipping hooks use the host's event cwd; selecting only the tool working directory does not change that hook context. The procedure verifies the exact task through native observation and local checks while preserving hooks and authorization. The installed adapter declares the current host for reviewer routing. No per-worktree Forge receipt, copied session identity, or hook-trust bypass is required.
  5. The helper seeds only ## State (with ### Now cleared), ## Open Questions, and ## Blockers from the primary checkout and writes the exact baseline to .forge/local/.state-seed-snapshot.md. It never seeds workflow, goal, authorization, receipts, evidence, or local memory. The create and adopt actions both seed state. If an inactive native worktree already has both state and its snapshot, adopt preserves them; if only one exists or a workflow is active, stop rather than guessing or overwriting it.
  6. In the target worktree, run workflow-state.sh show and resolve the intended base ref. If state is inactive, invoke .forge/hooks/lib/workflow-state.sh activate --host <claude|codex> --workflow new-feature --task <slug> --base-ref <ref-or-sha> --phase requirements --next-step 'complete approved PRD' before any discretionary investigation or tracked mutation. On Windows, use the .ps1 twin. The helper resolves and freezes the base SHA, which is immutable for this workflow and is passed to every candidate, dispatcher invocation, receipt, isolated repository, and review prompt. An adopted active worktree reuses its recorded base; if ancestry is ambiguous and no base was recorded, require an explicit base before activation rather than guessing or recomputing it.
  7. Replace the active ## Workflow block and create this checklist:

Read the full file on GitHub · 274 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. 1mo ago Changed · +5 lines 61cf8253eb80
  2. 1mo ago Changed · +3 lines 0edcd22d9e77
  3. 1mo ago Changed · +33 lines 5fe1bf1bbf49
  4. 1mo ago Changed · +6 lines 92fc17b321da
  5. 1mo ago Changed · +3 lines 24b0af5fb09a
  6. 2mo ago Changed · +1 lines e2fe8ba1515d
  7. 2mo ago Changed · +7 lines 99fde645fe4e
  8. 2mo ago Changed · +10 lines 2f2c7ff7efc2
  9. 2mo ago Changed · +26 lines 259cc6b3eae1
  10. 3mo ago First seen · 180 lines · 0 tokens per session scan A c54151e479df

Subscribe to this mod's changes

new-feature is a command published in the GitHub repository pablomarin/claude-codex-forge (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,078 tokens. A static security scan graded it A with 0 findings. It is 86% identical to fix-bug, differing in 248 lines, and is treated as a copy.

Related

new-feature compared with commands from other repositories

new-feature next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
new-featurepablomarin/claude-codex-forgeCommand51mo agoMITA0Claude Code
checklistgithub/spec-kitCommand154ktodayMITA13Claude Code
clarifygithub/spec-kitCommand154ktodayMITA27Claude Code
specifygithub/spec-kitCommand154ktodayMITA13Claude Code
analyzegithub/spec-kitCommand154ktodayMITA26Claude Code
convergegithub/spec-kitCommand154ktodayMITA35Claude Code
implementgithub/spec-kitCommand154ktodayMITA14Claude Code