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/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.
<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="Reviewed on agentmods" width="80" 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.5 | $0.00005 | $0.00574 |
| Sonnet 5.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 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.
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.
- 1mo 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 (146 stars, last pushed 24d ago), licensed MIT. It adds 12 tokens to every session and 1,435 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.
Other commands, from other repositories
spek-manage-repos
Add a repo to this project through a guided conversation, inspect the registry, and repair a repo's footprint.
github-pr-description
Updates the description of the PR.
trex.kind.add-field
Add a new field to an existing Kind, updating all layers consistently.
code-review
Review the current branch changes for bugs and style issues.
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.
release-tag
Create and push a version tag after a release PR has been merged.