setup-oss

setup-oss is a command for Claude Code from costajohnt/oss-autopilot. It costs 9 tokens per session (2,801 once invoked), scanned A, original, MIT.

A setup command for configuring OSS Autopilot, a tool that helps manage open-source software work. It lets you adjust languages, labels, pull-request limits, and other preferences.

In plain words
What is it for?
Use it to set preferences for open-source projects. It also builds the tool's command-line component when needed and checks that Node 22 or newer is available.
Why use it?
It removes the need to accept only automatically detected settings when you want different project behavior.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the oss-autopilot plugin — 3 skills, 8 commands, 7 agents, 2 MCP servers 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/costajohnt/oss-autopilot/setup-oss
Clone the repo
git clone --depth 1 https://github.com/costajohnt/oss-autopilot

Made for: Claude Code.

Or install oss-autopilot, the plugin that ships this one along with the rest of its 3 skills, 8 commands, 7 agents, 2 MCP servers.

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-oss

README.md
[![agentmods](https://agentmods.dev/badge/commands/costajohnt/oss-autopilot/setup-oss.svg)](https://agentmods.dev/commands/costajohnt/oss-autopilot/setup-oss)
Your own site
<a href="https://agentmods.dev/commands/costajohnt/oss-autopilot/setup-oss"><img src="https://agentmods.dev/badge/commands/costajohnt/oss-autopilot/setup-oss.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,801 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.00009 $0.02801
Opus 5 $0.00005 $0.01401
Sonnet 5 $0.00002 $0.00560
Haiku 4.5 $0.00001 $0.00280

Measured 5d ago against content hash f559b322417c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

setup-oss 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 5d 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.

commands/setup-oss.md · 293 lines

How it starts

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

OSS Autopilot Setup

Customize your OSS Autopilot preferences. This is optional — the tool works out of the box with auto-detected settings. Use this command to fine-tune languages, labels, PR limits, and other preferences.

Input validation: See "AskUserQuestion Validation Protocol" in workflows/reference.md.

Step 0: Ensure CLI is Built and Available

This flow delegates entirely to the CLI. There is no markdown-only fallback — if the CLI cannot be built, ask the user to install Node 22+ and re-run.

Build the CLI on first run (auto-installs deps). Delegates to scripts/build-cli-if-stale.sh (#1292), which detects an existing-but-stale bundle as well as a missing one — the prior existence-only check would happily reuse a bundle from a stale checkout:

CLI_HELPER_RC=0
"${CLAUDE_PLUGIN_ROOT}/scripts/build-cli-if-stale.sh" "${CLAUDE_PLUGIN_ROOT}" >/tmp/oss-setup-cli-build.log 2>&1 || CLI_HELPER_RC=$?
if [ "$CLI_HELPER_RC" = "2" ]; then
  echo "BUILD_FAILED"; tail -5 /tmp/oss-setup-cli-build.log; exit 1
fi

If the build succeeded but the bundle file still isn't there, or if node is unavailable: Stop the flow and tell the user:

"OSS Autopilot setup needs the CLI. Install Node.js 22+ from https://nodejs.org, then re-run /setup-oss. (Alternative: build manually with cd ${CLAUDE_PLUGIN_ROOT}/packages/core && npm install && npm run bundle.)"

If output starts with BUILD_FAILED: Show the error lines and the same install/re-run guidance. Common causes: missing Node 22+, stale node_modules, no network for npm install.

Then verify the CLI is callable:

node "${CLAUDE_PLUGIN_ROOT}/packages/core/dist/cli.bundle.cjs" checkSetup --json 2>/dev/null

If this also fails, surface the install/re-run guidance and stop.


Step 1: Check Current Status

Run the setup command to see current configuration:

node "${CLAUDE_PLUGIN_ROOT}/packages/core/dist/cli.bundle.cjs" setup --json 2>/dev/null

If setupComplete: true, ask:

"Setup is already complete. Would you like to reconfigure your settings?"

Read the full file on GitHub · 293 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. 5d ago First seen · 293 lines · 9 tokens per session scan A f559b322417c

Subscribe to this mod's changes

setup-oss is a command published in the GitHub repository costajohnt/oss-autopilot (12 stars, last pushed 3d ago), licensed MIT. It adds 9 tokens to every session and 2,801 once invoked, about $0.0000 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-08-30.