shield
The main command. Tokenizes your code, sends it to Claude with your prompt, and rehydrates the response.Usage
Setup
Set your Anthropic API key:Examples
Basic usage:Options
| Option | Description |
|---|---|
--prompt, -p <text> | What you want Claude to do (required) |
--output, -o <file> | Write result to file instead of stdout |
--model <model> | Claude model to use (default: claude-sonnet-4-20250514) |
--verbose, -v | Show progress details |
What happens
Your secrets never leave your machine. Claude only sees tokens.
Prompt tips
Be specific:Error handling
| Error | What to do |
|---|---|
ANTHROPIC_API_KEY not set | Export your API key |
File not found: ./foo.ts | Check the path |
No secrets detected | File has no secrets (still works, just nothing to tokenize) |
Rate limited | Wait a minute, try again |
Unknown tokens in response | Claude hallucinated a token; those are left as-is with a warning |
Models
Default isclaude-sonnet-4-20250514. You can also use: