/kasidit:kasi-deployfrom kasidit
Executes a deploy for CLI-native platforms (Cloudflare, Vercel, Netlify) or shows a plan-only deploy for SSH/manual platforms. Runs preflight checks, confirms environment, and logs results.
Ships in kasidit. Installing the plugin adds it to Claude Code.
Run an actual deploy. Counterpart to /kasi-review-deploy (read-only) — this command can execute, but only where execution is safe, idempotent, and reversible-by-redeploy. Supersedes the deploy <env> sub-mode of /kasi-devopt (v0.11), which never executed anything; this command keeps that behavior as the fallback path and adds a real execute path for platforms with a trustworthy one-shot CLI.
Platform capability (auto-detected from repo files, same table as /kasi-devopt):
| Platform | Detected by | Mode |
|---|---|---|
| Cloudflare Workers/Pages | wrangler.toml / wrangler.jsonc | auto-executable — wrangler deploy / wrangler pages deploy |
| Vercel | vercel.json / .vercel/ | auto-executable — vercel deploy (preview) / vercel --prod |
| Netlify | netlify.toml | auto-executable — netlify deploy |
| SSH / bare VPS | no platform file, or Procfile | plan-only — no safe non-interactive credential path |
| Docker / k8s / Terraform / Serverless / Fly / Platform.sh | Dockerfile, k8s/, *.tf, serverless.yml, fly.toml, .platform.app.yaml | plan-only — one-shot command exists but touches shared infra state; too variable to auto-run safely |
Only platforms with a first-party, idempotent, single-command CLI deploy are auto-executable. Everything else falls back to the exact /kasi-devopt deploy plan-only behavior: show commands, user runs them.
Flow:
/kasi-review-deploy checklist inline (do not skip — a failed preflight blocks execution and blocks handing over a plan)./kasi-devopt deploy), user runs it, done. Do not execute.confirm: deploy-prod (not a plain yes).--allow-dirty./kasi-fix / rollback runbook).STATE/deploy_history.jsonl:
{"ts":"2026-07-09T14:20:00Z","env":"staging","service":"kasion-site","platform":"cloudflare-pages","mode":"executed","command":"wrangler pages deploy dist","exit_code":0,"outcome":"success"}
For plan-only runs, log "mode":"plan-only","outcome":"handed-to-user" instead — no exit code, since Kasidit didn't run it.Confirm gate summary:
| Env | Auto-exec allowed | Gate |
|---|---|---|
| staging/preview | yes | plain confirm |
| prod | yes, if platform auto-executable | typed confirm: deploy-prod + diff shown first |
| any env, dirty tree | no | forced to plan-only, or --allow-dirty override |
| any env, preflight NOT READY | no | blocked entirely, fix preflight first |
Output format (auto-executed):
Mission: deploy kasion-site → prod
Platform: cloudflare-pages (auto-executable)
Preflight: ready with warnings (see below)
⚠️ CI status unknown (no token configured)
Confirm: deploy-prod ✓ (typed by user)
Command: wrangler pages deploy dist --project-name=kasion-site
Result: exit 0 — deployed https://kasion-site.pages.dev
Logged: STATE/deploy_history.jsonl
Confidence: [high] — verified by command exit code + returned URL
Output format (plan-only fallback):
Mission: deploy kas-sass → staging
Platform: ssh/vps (plan-only — no safe auto-exec path)
Preflight: ready
Plan (run yourself):
1. git push origin main
2. ssh deploy@kas-sass-staging "cd /var/www/kas-sass && git pull && php artisan migrate --force && sudo systemctl reload php-fpm"
3. curl -sf https://staging.kas-sass.internal/healthz
Rollback:
ssh deploy@kas-sass-staging "cd /var/www/kas-sass && git reset --hard <prev-sha> && sudo systemctl reload php-fpm"
Logged: STATE/deploy_history.jsonl (mode=plan-only)
Confidence: [medium] — plan generated, not run; user-executed outcome not yet known
Tier rules:
Anti-patterns (hard refuse):
--allow-dirty.confirm: deploy-prod phrase..env values into context to build the deploy command — reference keys only; the deploy CLI reads env itself.Safety hard rules (same as /kasi-devopt, still apply):
Relationship to /kasi-devopt:
/kasi-devopt's deploy <env> sub-mode is superseded by this command + /kasi-review-deploy. It stays in place for back-compat and redirects on invocation.
Examples:
/kasi-deploy staging
/kasi-deploy prod
/kasi-deploy prod --allow-dirty
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub kasidit-wansudon/kasidit --plugin kasidit28 commands in this plugin
/kasiUsageToggle Kasidit intensity — off / router / lite / full / ultra. Session-level by default; use `save` to persist./kasi-acknowledgeContextCapture the steps just performed (deploy/migration/hotfix/etc.) as a replayable runbook. Writes to .kasidit/knowledge/runbooks/./kasi-backendKasi BackendBackend mission — multi-mode (fix/audit/scaffold/design/perf) for API/controller/service/route/DB work/kasi-cascadeKasi CascadeTier cascade orchestration — Opus plans, Sonnet works, Haiku greps/kasi-delegateKasi DelegateDelegate mode — Claude plans and reviews, GPT (Codex CLI) and Gemini (Antigravity CLI) execute; global share settings with an auto strategy/kasi-devoptKasi DevoptDevOps mission — deploy flow, infra, CI/CD, env vars, data structure connections, runbooksOther plugins' commands for the same job