opsx-bulk-apply

opsx-bulk-apply is a command for Claude Code, OpenCode from intent-driven-dev/intent-driven-template. It costs 10 tokens per session (445 once invoked), scanned A, original, MIT.

A command for applying several OpenSpec changes at the same time in separate Git worktrees. A worktree is an isolated working copy of a repository, so changes can be handled independently.

In plain words
What is it for?
Use it for two or more active OpenSpec changes that should each be applied, verified, and reported without being merged or archived automatically.
Why use it?
It keeps concurrent changes from interfering with one another while each is implemented and checked.

Command for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code command (commands/*.md). Also seen: mentions subagents.

Good fit Use it for two or more active OpenSpec changes that should each be applied, verified, and reported without being merged or archived automatically.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/intent-driven-dev/intent-driven-template/opsx-bulk-apply
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/intent-driven-dev/intent-driven-template

Made for: Claude Code, OpenCode.

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 opsx-bulk-apply

README.md
[![agentmods](https://agentmods.dev/badge/commands/intent-driven-dev/intent-driven-template/opsx-bulk-apply/github.svg)](https://agentmods.dev/commands/intent-driven-dev/intent-driven-template/opsx-bulk-apply)
Your own site
<a href="https://agentmods.dev/commands/intent-driven-dev/intent-driven-template/opsx-bulk-apply"><img src="https://agentmods.dev/badge/commands/intent-driven-dev/intent-driven-template/opsx-bulk-apply/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 opsx-bulk-apply

Your own site · 80×15
<a href="https://agentmods.dev/commands/intent-driven-dev/intent-driven-template/opsx-bulk-apply"><img src="https://agentmods.dev/badge/commands/intent-driven-dev/intent-driven-template/opsx-bulk-apply.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 445 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.00010 $0.00445
Opus 5.5 $0.00004 $0.00178
Sonnet 5.5 $0.00002 $0.00089
Haiku 4.5 $0.00001 $0.00044

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

Security

Grade A, and why

opsx-bulk-apply 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.

.opencode/commands/opsx-bulk-apply.md · 67 lines

What it actually says

Apply multiple active OpenSpec changes concurrently.

Input: Optionally specify two or more change names (e.g., /opsx-bulk-apply add-auth improve-search). If omitted, discover active changes with openspec list --json.

Required skill: Use openspec-bulk-apply-change.

Steps

  1. Get candidate changes

    Run:

    openspec list --json
    

    If change names were provided, limit candidates to those names.

  2. Check candidate count

    • If fewer than 2 active candidate changes remain, stop and tell the user to use /opsx-apply <change>.
    • If 2 or more candidates remain, continue with openspec-bulk-apply-change.
  3. Follow the bulk apply skill exactly

    The skill must:

    • Run OpenSpec git discipline checks before apply.
    • Create isolated worktrees under .worktrees/<change> unless another root is requested.
    • Dispatch one subagent per change.
    • Run /opsx-apply <change> and /opsx-verify <change> in each subagent.
    • Collect normalized apply and verify reports.
    • Report results without merging or archiving.

Output

## Bulk Apply Report

### Changes Analyzed
- <change>

### Worktrees
- `<path>`

### Results
| Change | Apply | Verify | Review Ready |
| --- | --- | --- | --- |
| <change> | complete | ready | yes |

### Blockers and Warnings
- <change>: <details>

No merge or archive was performed. Explicit user approval is required before any merge or archive.

Guardrails

  • Do not modify existing single-change /opsx-apply behavior.
  • Do not ask the user to choose one change when the request is clearly bulk apply and 2 or more candidates exist.
  • Do not apply changes directly in the parent workspace.
  • Do not merge, archive, or commit unless the user explicitly asks for that follow-up action.
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 · 67 lines · 10 tokens per session scan A 781561c109a7

Subscribe to this mod's changes

opsx-bulk-apply is a command published in the GitHub repository intent-driven-dev/intent-driven-template (169 stars, last pushed yesterday), licensed MIT. It adds 10 tokens to every session and 445 once invoked, about $0.0000 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-30.