deploy

A deployment command for sending Twilio serverless functions—cloud functions run by Twilio—to development or production services.

In plain words
What is it for?
Use it to deploy all listed services or only one service, and to deploy or remove a temporary validation service. The excerpt names core, AI, and labs services.
Why use it?
It adds checks for tests, linting, the active Twilio account, and uncommitted changes before code is released.

Command

Install

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.

agentmods
npx agentmods add commands/wittyreference/twilio-claude-plugin/deploy
Clone the repo
git clone --depth 1 https://github.com/wittyreference/twilio-claude-plugin
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 616 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00025 $0.00616
Opus 5 $0.00013 $0.00308
Sonnet 5 $0.00005 $0.00123
Haiku 4.5 $0.00003 $0.00062

Measured yesterday against content hash 76048dbd6428, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

deploy 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 yesterday.

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.

commands/deploy.md · 87 lines

How it starts

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

Deployment Helper

Deploy Twilio serverless functions across 3 services (core, ai, labs) via scripts/deploy-services.sh.

Pre-Deployment Checklist

Before deploying, verify:

  1. All Tests Pass

    npm test
    npm run test:e2e
    
  2. Linting Passes

    npm run lint
    
  3. CLI Profile — Verify active profile matches target account:

    twilio profiles:list
    
  4. No Uncommitted Changes

    git status
    

Deployment Commands

Deploy All Services (Recommended)

./scripts/deploy-services.sh dev    # Deploy core + ai + labs to dev
./scripts/deploy-services.sh prod   # Deploy to production

Deploy Single Service

./scripts/deploy-services.sh --only core dev
./scripts/deploy-services.sh --only ai dev
./scripts/deploy-services.sh --only labs dev

Deploy Ephemeral Validation Service

./scripts/deploy-services.sh --only validation dev   # Deploy fresh
./scripts/deploy-services.sh --teardown validation    # Remove after testing

Service Architecture

Service Directories Env Var
prototype-core voice, callbacks, helpers, messaging, messaging-services, taskrouter, verify, phone-numbers, proxy, sync, video CORE_BASE_URL
prototype-ai conversation-relay, webinar, helpers AI_BASE_URL
prototype-labs pay, sip, helpers LABS_BASE_URL
prototype-validation conversation-relay, callbacks, helpers, messaging (ephemeral) VALIDATION_BASE_URL

Manifest: services.json

Post-Deployment

  1. Update .env with domains from deploy output (CORE_BASE_URL, AI_BASE_URL, LABS_BASE_URL)
  2. Wire phone numbers: Configure voice/messaging webhooks on your Twilio phone numbers via Console or CLI (see DESIGN_DECISIONS.md D45)
  3. Verify endpoints — make test calls using MCP make_call / send_sms, validate with validate_call(callSid)
  4. Check debugger: validate_debugger(lookbackSeconds: 300)

Read the full file on GitHub · 87 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. yesterday First seen · 87 lines · 25 tokens per session scan A 76048dbd6428

Subscribe to this mod's changes

deploy is a command published in the GitHub repository wittyreference/twilio-claude-plugin (2 stars, last pushed 3mo ago), licensed MIT. It adds 25 tokens to every session and 616 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-31.