init

A first-run setup command for teamctl, a tool that creates and runs supervised teams of agents. It guides you from installation and goal selection through team configuration and startup.

In plain words
What is it for?
Use it to install teamctl, define what the team should do, configure agents and their capabilities, create the .team files, start the team, and connect Telegram and voice options.
Why use it?
It removes the need to design the team structure and configuration files by hand. It also checks whether a team already exists before starting setup.

Command

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/alireza29675/teamctl/init
Clone the repo
git clone --depth 1 https://github.com/Alireza29675/teamctl
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 14,446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 $0.00020 $0.14446
Opus 5 $0.00010 $0.07223
Sonnet 5 $0.00004 $0.02889
Haiku 4.5 $0.00002 $0.01445

Measured 2d ago against content hash 0fe08c62250e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

init scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

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

- label: "curl installer"
plugins/claude-code/commands/init.md · 762 lines

How it starts

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

/teamctl:init is the first-run onboarding for teamctl. A pre-flight .team/ guard bows out to /teamctl:adjust if a team already exists. Otherwise: prerequisites and install (Stage 1), then open on the goal — understand what the team is for, with pickable starter goals (the Goal beat) — an intent on-ramp + a discovery conversation that surfaces the user's domains (Stage 2) fed by the user's work, a codebase-investigation pass, or a fast-path scaffold (four routes), then propose the org as a capability setup the user signs off on (Stage 3 — sessions, models, sub-agents, skills, hooks, /loop; the diagram is a small supporting visual, not the headline), iterate until it's right (the refine loop), scaffold .team/ and reveal the YAML (Stage 4 — emits cascading role prompts and the per-agent capability stack: sub-agents, skills, the earned hook), bring it up (Stage 5), wire Telegram + voice-customize (Stage 6), point at the lifecycle commands (Stage 7).

Read RULES.md, INTERACTIVE.md, and capability-catalog.md before the stages that use them. RULES carries the architecture invariants; INTERACTIVE carries the UI invariants — when to reach for AskUserQuestion, the Apply/Modify/Reject gate, the headless-pane fallback, docs-as-ground-truth, voice control; the capability catalog is the palette Stage 3 reasons from and Stage 4 emits (sub-agent / skill / hook archetypes, the bespoke escape hatch, the cron/MCP guard on the generated team). Voice rails: 1-2 sentences per beat, "experienced reliable coworker", emojis sparingly. Body voice is runtime-neutral. "Claude Code runtime" is a fact about the agent and stays; "Claude reads the file" is voice drift and goes. Substrate constraints are non-negotiable. The flow is resumable and idempotent — re-running skips anything already done.

Preamble — detect interactive vs headless

At the top of every invocation, decide which mode you're in:

if [ -n "$TEAMCTL_ROOT" ] && [ -n "$AGENT_ID" ]; then
    echo "headless"
else
    echo "interactive"
fi

headless means a supervised teamctl agent is calling this skill — AskUserQuestion is denied by the wrapper's PreToolUse hook (see #189). Fall back to plain-text Q&A for the whole invocation per INTERACTIVE.md §5. In practice /teamctl:init is overwhelmingly run from a fresh interactive claude session (there's no .team/ yet), so the headless path here is mostly a defensive catch.

The shape of Stage 2 matters. Stage 2 — domain discovery — does not hand users a template menu. It walks them through a discovery conversation that surfaces the domains in their work: the things with their own state, history, and decisions that compound over time. The cut is by domain ownership, not by job function. The Goal beat and the intent on-ramp ("Mode pick" below) are where option menus live; Stage 2 itself stays free-form when it runs. Read docs/src/content/docs/concepts/teams.md before tuning Stage 2 prose; the methodology there is canonical.

Read the full file on GitHub · 762 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. 2d ago First seen · 762 lines · 20 tokens per session scan A 0fe08c62250e

Subscribe to this mod's changes

init is a command published in the GitHub repository Alireza29675/teamctl (20 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 14,446 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.