setup

setup is a command for Claude Code from openshift-eng/ai-helpers. It costs 13 tokens per session (714 once invoked), scanned A, original, Apache-2.0.

A setup command for a Node.js team's code repository. It clones the correct repository, creates a Git worktree, and installs the team's local plug-in for the task.

In plain words
What is it for?
Use it to prepare a component's development directory, choose the upstream or downstream repository, and name the worktree from a ticket or pull request.
Why use it?
It removes repetitive setup work and helps keep separate task directories from interfering with one another. It can also use a Jira issue or pull request to identify the work.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the node-team plugin — 1 skill, 4 commands shipped together

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.

agentmods
npx agentmods add commands/openshift-eng/ai-helpers/setup
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Made for: Claude Code.

Or install node-team, the plugin that ships this one along with the rest of its 1 skill, 4 commands.

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 setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/setup.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/setup)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/setup"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 714 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00013 $0.00714
Opus 5 $0.00006 $0.00357
Sonnet 5 $0.00003 $0.00143
Haiku 4.5 $0.00001 $0.00071

Measured yesterday against content hash 058f6d97cd80, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

setup 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 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.

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.

plugins/node-team/commands/setup.md · 83 lines

How it starts

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

Name

node-team:setup

Synopsis

/node-team:setup <component> [--ticket OCPNODE-1234] [--pr 456]

Description

Sets up a development environment for a Node team component. Clones the appropriate downstream or upstream repo (based on the component-to-repo mapping), creates a git worktree for the task, and installs the node-team plugin locally in the worktree.

When given a Jira ticket or PR number, names the worktree after it and (for tickets) fetches the issue summary to confirm the right component.

Implementation

  1. Run the checks from /node-team:preflight to confirm GitHub and Jira tokens are valid. If any required check fails, stop and show remediation steps before proceeding.
  2. Read the component-to-repo mapping from shared/components.md. Match the <component> argument against the "Day-to-Day Dev Shorthand" table or the full component names (case-insensitive, partial match OK). If ambiguous, ask the user to clarify.
  3. Determine the repo URL. For OpenShift-specific work, use the downstream fork. For upstream contributions, use the upstream repo. If unclear, ask the user.
  4. Clone the repo if not already present in the current directory:
    git clone <repo-url>
    cd <repo-name>
    
  5. Create a worktree following the workflow in SETUP.md:
    • --ticket OCPNODE-1234: name the worktree after the ticket (wt/ocpnode-1234), fetch issue details from Jira to confirm the component matches
    • --pr 456: fetch the PR and create a worktree for it (pr-456)
    • Neither: deduce a name from the task context
  6. Install the node-team plugin in the worktree:
    claude plugin install node-team@ai-helpers --scope local
    
  7. Print the worktree path and a short summary of what was set up.

Return Value

  • The path to the created worktree and confirmation of plugin installation

Examples

Read the full file on GitHub · 83 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 First seen · 83 lines · 13 tokens per session scan A 058f6d97cd80

Subscribe to this mod's changes

setup is a command published in the GitHub repository openshift-eng/ai-helpers (116 stars, last pushed yesterday), licensed Apache-2.0. It adds 13 tokens to every session and 714 once invoked, about $0.0001 per session on Opus 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-09-05.