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.
git clone --depth 1 https://github.com/ariel-frischer/autospecWrote 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.
[](https://agentmods.dev/commands/ariel-frischer/autospec/autospec.worktree-setup)<a href="https://agentmods.dev/commands/ariel-frischer/autospec/autospec.worktree-setup"><img src="https://agentmods.dev/badge/commands/ariel-frischer/autospec/autospec.worktree-setup.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.01435 |
| Opus 5 | $0.00006 | $0.00718 |
| Sonnet 5 | $0.00002 | $0.00287 |
| Haiku 4.5 | $0.00001 | $0.00144 |
Grade A, and why
autospec.worktree-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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Outline
You are generating a project-specific setup script that will be run when creating new git worktrees. This script handles copying essential configuration files and running package manager install commands instead of copying large dependency directories.
Follow this execution flow:
-
Analyze project structure:
-
Identify package managers by checking for lockfiles:
package-lock.json-> npmyarn.lock-> yarnpnpm-lock.yaml-> pnpmbun.lockb-> bungo.sumorgo.mod-> gorequirements.txtorPipfile.lock-> pip/pipenvpoetry.lockorpyproject.tomlwith[tool.poetry]-> poetryCargo.lock-> cargoGemfile.lock-> bundlercomposer.lock-> composer
-
Identify essential directories/files to copy:
Autospec-related (REQUIRED for autospec workflows):
.autospec/- Contains constitution, config, memory, and generated scripts. Theconstitution.yamlis REQUIRED for all workflow stages (specify, plan, tasks, implement)..agents/skills/(if exists) - Shared autospec skills for Codex and OpenCode skill-aware sessions..claude/skills/(if exists) - Claude Code project skills. Required if usingagent_preset: claude.opencode.json(if exists) - OpenCode configuration file with permissions and model settings. Located at project root, not inside.opencode/.
IDE/Editor configuration:
.vscode/(if exists).idea/(if exists)- Other gitignored config directories needed for development
-
Identify files/directories to EXCLUDE:
- Dependency directories:
node_modules/,vendor/,__pycache__/,.venv/,venv/,target/,dist/,build/,.bundle/ - Generated files:
*.log,*.tmp,.cache/,coverage/
- Dependency directories:
-
-
Handle secrets:
- By default, EXCLUDE these secret patterns:
.env*(.env,.env.local,.env.production, etc.)credentials.*secrets.**.pem*.key*.p12*token*files.ssh/
- If
--include-envwas specified in the user input, include.env*files but still exclude other secret patterns
- By default, EXCLUDE these secret patterns:
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.
- 7d ago First seen · 154 lines · 12 tokens per session scan A e83c7141b489
autospec.worktree-setup is a command published in the GitHub repository ariel-frischer/autospec (141 stars, last pushed 28d ago), licensed MIT. It adds 12 tokens to every session and 1,435 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-08-30.
Other commands, from other repositories
speckit.companion.living-sync
Sync living specs from your current changes — group working-tree changes (uncommitted included) by capability and update every affected spec in one pass (opt-in, update-not-regenerate, never halts).
sddp-implement
Command description: Implement the current feature tasks. Argument hint: [optional: phase or task to start from] Command category: feature-delivery Prerequisites: spec, plan, tasks, checklists:complete-if-present.
ship
Ship: review gate, tests, version bump, changelog, conventional commit, docs update, PR. Complete pipeline from done to merged.
dispatch
Fire several disjoint VALIDATED specs concurrently, each in its own worktree, then converge. Cross-goal fan-out behind a disjointness gate + drift guard; lead-owned merge, no DAG.
approve-proposed
Atomically persist every file marked PROPOSED in the most recent prior assistant turn's ### Artifact changes block. Single-command idiom that closes the two-step latency in ADR-0001's PROPOSED-by-default contract; the user reviews proposals in Ask/Plan mode, then runs this once to write all of them. Use when the prior…
pr-package
Prepare a clean delivery package for GitHub from the real git diff vs an explicit base branch, persisted as PRPACKAGE.md (or PRPACKAGE. .md for multi-repo tasks). Produces branch name, commit messages, fetch, checkout, add, commit, and push commands, PR title and body, and reviewer attention points; never invents work…