
Research
/Security News
CanisterWorm: npm Publisher Compromise Deploys Backdoor Across 29+ Packages
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.
@every-env/spiral-cli
Advanced tools
A command-line interface for interacting with the Spiral API from your terminal.
git clone <repo>
cd spiral-cli
bun install
bun run build
# Output: dist/spiral
# Interactive chat
bun run src/cli.ts chat
# Send a single message (agent-native)
bun run src/cli.ts send "Write a haiku about coding"
# Interactive chat mode
spiral chat [--session <id>] [--new]
# Send single message (non-interactive, for scripts/agents)
spiral send <message> [--session <id>] [--json] [--attach file...]
# List sessions
spiral sessions [--json] [--limit N]
# View session history
spiral history <session-id> [--json] [--limit N]
# Authentication
spiral auth status
spiral auth clear
# Writing styles
spiral styles [--json]
# Workspaces
spiral workspaces [--json]
# Draft management
spiral drafts --session <id> [--json]
spiral draft view <id> --session <id>
spiral draft edit <id> --session <id> # Opens in $EDITOR
spiral draft update <id> --session <id> --content "New text" # Agent-native
spiral draft versions <id> --session <id>
spiral draft restore <id> --session <id> --versionId <vid>
# Local notes/scratchpad
spiral notes # List notes
spiral notes add "Remember X" # Add note
spiral notes clear # Clear all
spiral notes remove <id> # Remove specific
# Suggestions (parsed from AI responses)
spiral suggestions # List pending
spiral suggestions preview <id>
spiral suggestions apply <id> --session <id>
spiral suggestions dismiss <id>
| Option | Description |
|---|---|
--help, -h | Show help |
--version, -v | Show version |
--session, -s <id> | Resume session by ID |
--json | Output as JSON (for scripting) |
--quiet, -q | Suppress spinners and progress |
--new, -n | Start new session |
--limit <N> | Limit results |
--debug, -d | Enable debug output |
--attach, -a <files> | Attach files to message |
--style <id> | Use writing style |
--workspace <id> | Use workspace context |
--force, -f | Skip confirmations |
--content <text> | Content for agent-native draft update |
--title <text> | Title for draft |
--versionId <id> | Version ID for restore |
| Command | Description |
|---|---|
/help | Show all commands |
/exit | Exit chat |
/clear | Clear screen |
/history | Show session history |
/sessions | List all sessions |
/new | Start new session |
/session <id> | Switch to session |
/debug | Toggle debug mode |
Content Management:
| Command | Description |
|---|---|
/drafts | List drafts in session |
/draft view <id> | View a draft |
/draft edit <id> | Edit in $EDITOR |
/draft versions <id> | Show version history |
/styles | List writing styles |
/style <id> | Set writing style |
/workspaces | List workspaces |
/workspace <id> | Set workspace |
Notes & Suggestions:
| Command | Description |
|---|---|
/note <text> | Add a note |
/notes | List all notes |
/notes clear | Clear all notes |
/suggestions | List pending suggestions |
/apply <id> | Apply a suggestion |
/dismiss <id> | Dismiss a suggestion |
/attach <files> | Queue files for next message |
spiral-cli is designed for use by AI agents and scripts:
# JSON output for parsing
spiral send "Summarize this article" --json
# Pipe input
echo "Explain quantum computing" | spiral send --json
# With file attachments
spiral send "Analyze this data" --attach data.csv --json
# Agent-native draft updates (no $EDITOR)
spiral draft update <id> --session <sid> --content "Updated content"
# Check exit codes
spiral send "Hello" && echo "Success" || echo "Failed"
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Authentication failed |
| 3 | API error |
| 4 | Network error |
| 5 | Invalid arguments |
| Variable | Description |
|---|---|
SPIRAL_API_URL | Override API endpoint |
SPIRAL_TOKEN | Provide auth token directly (for CI) |
EDITOR | Editor for draft editing (default: vi) |
DEBUG | Enable verbose logging |
spiral-cli stores local configuration in ~/.config/spiral-cli/:
spiral-cli automatically extracts your session from Safari cookies. No manual token management needed.
Requirements:
# Run in dev mode
bun run src/cli.ts --help
# Type check
bun run typecheck
# Run tests
bun test
# Lint
bun run lint
# Build binaries
bun run build:all
MIT
FAQs
CLI for Spiral API - create content from your terminal
The npm package @every-env/spiral-cli receives a total of 15 weekly downloads. As such, @every-env/spiral-cli popularity was classified as not popular.
We found that @every-env/spiral-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.

Research
/Security News
Attackers compromised Trivy GitHub Actions by force-updating tags to deliver malware, exposing CI/CD secrets across affected pipelines.

Security News
ENISA’s new package manager advisory outlines the dependency security practices companies will need to demonstrate as the EU’s Cyber Resilience Act begins enforcing software supply chain requirements.