specter: Instructions file for Claude Code

CLAUDE.md

specter CLAUDE.md is an instructions file for Claude Code from ghostwright/specter. It costs 1,884 tokens per session, scanned C, original, Apache-2.0.

Instructions for Specter, a Go command-line tool that creates and manages virtual machines for AI agents on Hetzner Cloud. It also covers the terminal interface, DNS, encrypted connections, builds, tests, and key source files.

In plain words
What is it for?
Use it when changing deployment, setup, server images, agent inventory, status checks, remote access, logs, updates, or teardown commands.
Why use it?
It gives coding agents the repository's build rules and shows which commands manage virtual machines, networking, access, logs, and updates.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: positional $N argument.

This is ghostwright/specter's own configuration. It tells Claude Code how to work on specter itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything specter configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/specter/app.

Reuse

Borrowing it

Nothing to install: this file belongs to ghostwright/specter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ghostwright/specter/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/ghostwright/specter

Made for: Claude Code.

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 specter CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ghostwright/specter/claude-md/github.svg)](https://agentmods.dev/instructions/ghostwright/specter/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ghostwright/specter/claude-md"><img src="https://agentmods.dev/badge/instructions/ghostwright/specter/claude-md/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.

agentmods 80×15 button for specter CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ghostwright/specter/claude-md"><img src="https://agentmods.dev/badge/instructions/ghostwright/specter/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,884 This file is loaded in full into every session.
When invoked 1,884 The same file — it is already loaded in full.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.01884 $0.01884
Opus 5.5 $0.00754 $0.00754
Sonnet 5.5 $0.00377 $0.00377
Haiku 4.5 $0.00188 $0.00188

Measured 2mo ago against content hash 8293a2ca5159, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

specter CLAUDE.md scanned grade C with 2 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 2mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

make clean # rm -rf bin/ dist/

Makes network callslowCapability

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

curl https://test.yourdomain.com/health
CLAUDE.md · 171 lines

How it starts

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

Specter

Go CLI that deploys AI agent VMs on Hetzner Cloud in 90 seconds. Interactive TUI (Bubbletea v2). Automatic DNS (Cloudflare) and TLS (Let's Encrypt via Caddy). Apache 2.0.

Build

make build          # -> bin/specter
make lint           # go vet + gofmt check
make test           # go test ./...
make ci             # lint + build (same as CI workflow)
make install        # go install to $GOPATH/bin
make clean          # rm -rf bin/ dist/

Project Structure

cmd/specter/
  main.go                       Entry point, Cobra root
  commands/
    root.go                     Root command, global flags
    deploy.go                   VM creation + DNS + SSH provisioning + TLS
    destroy.go                  VM + DNS teardown
    init.go                     Setup wizard (tokens, firewall, server cache)
    image.go                    Golden snapshot build + list
    list.go                     Agent inventory with health checks
    status.go                   Single agent status
    ssh.go                      SSH into VM
    logs.go                     systemd journal streaming
    update.go                   Agent restart
    version.go                  Version output

internal/
  cloudflare/client.go          Cloudflare DNS API (raw HTTP, not SDK)
  config/
    config.go                   ~/.specter/config.yaml management
    server_types.go             Hetzner server type cache + fuzzy match
    state.go                    Agent state persistence
  hetzner/client.go             Hetzner Cloud API (hcloud-go v2)
  templates/
    cloudinit.go                Cloud-init user-data template  [FROZEN]
    systemd.go                  systemd unit template          [FROZEN]
    caddyfile.go                Caddy reverse proxy template   [FROZEN]
  tui/
    app.go                      Main Bubbletea model (~1,300 lines)
    agent_list.go               Dashboard list view
    agent_detail.go             Agent detail panel
    deploy_form.go              Deploy form (huh v2)
    deploy_model.go             Deploy data types
    deploy_progress.go          Deploy phase progress
    image_build.go              Image build progress
    setup_wizard.go             First-run setup
    logs_viewport.go            Log viewer
    confirm_dialog.go           Confirmation dialogs
    help_overlay.go             Keyboard help
    status_bar.go               Bottom bar
    dashboard_styles.go         Lipgloss styles
    messages.go                 Bubbletea messages
    theme.go                    Color palette

pkg/version/version.go          Version vars (set via ldflags)

Read the full file on GitHub · 171 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. 2mo ago First seen · 171 lines · 1,884 tokens per session scan C 8293a2ca5159

Subscribe to this mod's changes

specter CLAUDE.md is an instructions file published in the GitHub repository ghostwright/specter (38 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 1,884 tokens to every session, about $0.0075 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

specter CLAUDE.md compared with instructions from other repositories

specter CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
specter CLAUDE.mdghostwright/specterInstructions file384mo agoApache-2.0C1,884Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode