/kasidit:kasifrom kasidit
Toggles Kasidit framework load depth between off, router, lite, full, and ultra levels. Affects current session by default; supports persisting via save subcommand.
Ships in kasidit. Installing the plugin adds it to Claude Code.
Mode toggle for Kasidit framework load depth. Controls how much of SKILL.md is brought into context.
/kasi # show current mode + source
/kasi off # disable skill this session
/kasi router # default — thin classifier, ~20 line. Routes each message to right mode.
/kasi lite # Rule 1 (mission) + Rule 11 (confidence) only — ~100 line
/kasi full # all 11 rules + 8 active agents (+ 3 v0.10 deprecated stubs) + Gravity — ~650 line, opt-in for audit/refactor/new-feature
/kasi ultra # full + mandatory verifier pass + master orchestrator every task — rare, high-stakes only
/kasi save # persist current session mode to .kasidit/config.json
/kasi reset # drop session override, use project/global config
/kasi status # resolved config: session > project > global > default
| Level | Load | When |
|---|---|---|
off | 0 line | user explicitly stops, or one-off throwaway |
router | ~20 line | default. Classifies each user message and escalates only when needed. |
lite | Rule 1 narrow-mission + Rule 11 confidence labels | routine coding with light discipline |
full | all rules, agent registry, UI Override, Gravity | audit, refactor >2 files, new feature, unfamiliar codebase |
ultra | full + verifier hook + master self-check each turn | rare — security audit, migration, compliance-critical |
session override (/kasi <level> this turn)
> project config (.kasidit/config.json)
> global config (~/.claude/skills/kasidit/center/config.json)
> default (router — thinnest layer, escalates on demand)
/kasi status prints each layer + resolved value.
Honest caveat: this chain is a spec, not a runtime resolver. No code in this plugin currently reads the three config files, merges them, and returns a single resolved mode — the effective precedence is applied by the user and the AI reading the config files directly and behaving accordingly. Treat this table as documentation of intended priority order, not as a guarantee that a runtime layer enforces it.
/kasi full → affects current session only. Next session reverts to config./kasi full then /kasi save → writes to .kasidit/config.json. Persistent./kasi reset → drops session override.stop kasidit → synonym for /kasi off + skip for rest of session.Heavy commands auto-escalate temporarily, then revert to router. User stays in router for day-to-day chat; framework loads only when the work actually needs it.
| Command | Auto-escalates to | Revert after |
|---|---|---|
/kasi-init | full | command completes |
/kasi-scaffold | full | command completes |
/kasi-docs | full | command completes |
/kasi-review | full | mission ends (runtime pass or Wave 2) |
/kasi-security | ultra | mission ends |
/kasi-fix | full | mission ends |
/kasi-ui | full | mission ends |
/kasi-multi / /kasi-cascade | full | command completes |
/kasi-team | full | command completes |
/kasi-deploy | full (prod target additionally forces typed confirm gate regardless of mode) | mission ends |
/kasi-review-deploy | lite | command completes |
/kasi-promote / /kasi-pull / /kasi-sync | lite | command completes |
/kasi-search / /kasi-status | no change | — |
casual chat, /kasi, /kasi status | stay router | — |
Revert contract:
/kasi reset / stop kasidit / next mission starts..kasidit/config.json unchanged./kasi full + /kasi save — auto-revert is skipped until they /kasi reset.When mode escalates to full or ultra (via heavy command or explicit /kasi full|ultra), the orchestrator spawns minimum 2 specialist agents in parallel by default — never serial single-agent — for speed.
/kasi-review, /kasi-security, /kasi-fix, /kasi-ui, /kasi-multi, /kasi-cascade, /kasi-deploy, any full/ultra mission./kasi-multi 1./kasi parallel 1 (serial) or /kasi parallel N (force N).Rationale: synthesis cost on 2 agents is negligible; latency win is the point.
kasi-update-check.sh runs on SessionStart. Hits GitHub releases endpoint (gh CLI or curl fallback), compares against installed marketplace.json version. Prints one line if newer:
[kasidit] update available: v0.9.3 → v0.10.0 — run: /plugin marketplace update kasidit
Silent on match, offline, missing gh+curl, or already checked today (stamp file at ~/.claude/skills/kasidit/center/.last_update_check). No blocking, no upload.
off/kasi-* commands still work but each loads its own scope only.router (default)Thin classifier. ~20 lines loaded. Single job: read each user message, decide which mode fits, escalate if needed.
Classifier rules (the only rules loaded at this level):
security, audit, migration, OWASP, CVE, auth boundary, compliance) → respond: [kasidit] routing → ultra recommended. /kasi ultra to enable, or continue for one-shot.refactor, new feature, unfamiliar codebase, review >1 file, multi-file, architecture, design system) → respond: [kasidit] routing → full recommended.fix, bug, edit, rename, add function, why does X fail) → respond: [kasidit] routing → lite.[kasidit] routing → off.lite + one-liner: [kasidit] unclear mission. Using lite. /kasi full if heavier discipline needed.Router never writes code itself. Its output is a 1-line routing decision + any recommended /kasi <level> command. User accepts by continuing or runs the command.
Data-over-rules: instead of loading SKILL.md rules, router reads project state on demand:
.kasidit/INDEX.md — file map, 1-line purposes (cheap lookup, no reasoning load)..kasidit/MEMORY.md — user-confirmed facts from prior sessions..kasidit/PATTERNS.md — codebase patterns (only if message touches a new area)..kasidit/MISSION.md — current mission state if one is active.Router pulls only the files it needs for the current message. A "how does auth work" question reads INDEX.md + maybe one knowledge/*.md file — not the full framework.
Router auto-escalates when the user's next message clearly fits a heavier bucket, or when a /kasi-* heavy command is invoked. No need for user to type /kasi full manually for an obvious audit request.
Memory-driven routing (learns shortest route per mission kind):
Every completed mission writes a record to ~/.claude/skills/kasidit/center/route-memory.jsonl:
{"ts":"2026-04-23T21:45:00Z","kind":"security-audit-php","mode_used":"full","turns":4,"tokens":18200,"outcome":"pass","escalated_from":"router"}
{"ts":"2026-04-23T22:10:00Z","kind":"bug-fix-single-file","mode_used":"lite","turns":2,"tokens":3100,"outcome":"pass"}
{"ts":"2026-04-23T22:40:00Z","kind":"refactor-rename","mode_used":"router","turns":1,"tokens":800,"outcome":"pass"}
Before routing a new message, router queries this store:
kind (e.g. security-audit-php, bug-fix-single-file, ui-override, refactor-rename).kind.[unsure, low-history].security-audit all passed in full, 0 needed ultra) → suggest downgrade [kasidit] history: full succeeded 5/5 for this kind. Skipping ultra.Mission-kind classifier (router does this in one pass):
<file-scope> = single | multi | project-wide
<work-type> = fix | review | security | perf | refactor | feature | migration | ui | docs | question
<novelty> = familiar-area | new-area
kind = <work-type>-<file-scope>[-<stack>]
Examples:
fix-single-file — router or litereview-multi — lite or fullsecurity-project-wide — full or ultrarefactor-multi — fullUser override always wins: explicit /kasi <level> beats memory recommendation. Memory is a suggestion layer, not a decision layer.
Inspect memory (manual for now):
cat ~/.claude/skills/kasidit/center/route-memory.jsonljq -s 'group_by(.kind) | map({kind:.[0].kind,n:length})' ~/.claude/skills/kasidit/center/route-memory.jsonljq -c 'select(.kind!="<kind>")' route-memory.jsonl > tmp && mv tmp route-memory.jsonlA dedicated /kasi-memory subcommand is not shipped in v0.10 — listed in roadmap.
Privacy: route-memory.jsonl contains only mission kind + metrics. No prompt text. No file paths. Safe to keep local.
Token cost: router adds ~20 lines of rules + whatever .kasidit/ data the message actually needs + 1 line memory lookup result. Far cheaper than loading SKILL.md up front.
Heavy lifting runs in Python hooks, not LLM context. AI sees 1-line results only.
| Hook | Trigger | Job | Token cost to AI |
|---|---|---|---|
kasi-route.py | UserPromptSubmit | classify message, query memory, inject 1-line recommendation | ~15 tokens |
kasi-verify.py | PostToolUse / Stop | cross-check [high] labels vs Read/Bash calls, auto-downgrade | ~20 tokens if mismatch |
kasi-record.py | Stop / SubagentStop | parse AI emit lines → append to backend stores | ~0 (hook output stays local) |
kasi-log.py | UserPromptSubmit (opt-in) | prompt log, trim >200 line | ~0 |
kasi-drift-check.sh | SessionStart | stale center/.last_sync warning | ~0 if fresh |
All hooks stdlib-only Python 3. No extra deps. Run locally.
At mission end or when AI notices a new pattern, it emits tiny structured lines (~20 tokens each). kasi-record.py parses them and appends to the right backend store. AI pays a little per mission; router memory compounds over months.
AI emit contract (print in final output):
[kasidit-log] kind=bug-fix-single-file mode=lite turns=2 outcome=pass
[kasidit-pattern] name=sanctum-bearer-auth file=app/Http/Middleware/ApiAuth.php note="matches v3 trust hierarchy"
[kasidit-memory] fact="mex_canteen uses PHP 7.4 + Laravel 8 with custom Auth facade"
[kasidit-rule] scope=project rule="no composer update without lock diff"
Parsed → backend:
| Emit tag | File | Used by |
|---|---|---|
[kasidit-log] | center/route-memory.jsonl | router recommendation |
[kasidit-pattern] | center/patterns.jsonl | /kasi-pull pattern, PATTERNS.md seed |
[kasidit-memory] | center/memory.jsonl | cross-session fact recall |
[kasidit-rule] scope=project | .kasidit/rules.jsonl | project-local rules |
[kasidit-rule] scope=global | center/rules.jsonl | user rules across projects |
Cost model:
Net — save-as-you-go. Small regular deposit, compound interest.
litefull (opt-in for heavy missions)ultrafull, plus:~/.claude/skills/kasidit/center/config.json (global) or .kasidit/config.json (project):
{
"version": "0.10.0",
"mode": "full",
"prompt_log": false,
"last_changed": "2026-04-23T21:30:00Z"
}
Project file overrides global. Absent fields fall through to next layer.
On first /kasi-init, ask ONE question:
Q. Kasidit default mode? Type 1, 2, or 3 (default: 1)
1. router — thin classifier. ~20 line. Routes each message, escalates on demand. (recommended)
2. lite — always Rule 1 + Rule 11. ~100 line. Light discipline baseline.
3. full — always full framework. ~650 line. Audit / refactor / security projects.
Map: 1 → router, 2 → lite, 3 → full. Anything that is not 1/2/3 (blank, word, etc.) → treat as 1. Save to global config. Skip if config already exists — use /kasi reset + /kasi-init to reconfigure. Ultra is opt-in only via /kasi ultra, never offered at install.
stop kasidit → /kasi off for rest of session, regardless of config. Same pattern as stop caveman.
/kasi-init.~/.claude/skills/kasidit/center/session-<id>.json (ephemeral)./kasi-init) reads resolved config, prints one line: [kasidit] mode: full (project)./kasi
→ mode: full (project)
session: -
project: full (.kasidit/config.json)
global: lite (~/.claude/skills/kasidit/center/config.json)
default: lite
/kasi lite
→ session override: lite (project config unchanged)
/kasi save
→ project config updated: full → lite
.kasidit/config.json written
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
/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-deployKasi DeployDeploy mission — auto-executes for CLI-native platforms (Cloudflare, Vercel), plan-only for SSH/manual platforms/kasi-devoptKasi DevoptDevOps mission — deploy flow, infra, CI/CD, env vars, data structure connections, runbooksOther plugins' commands for the same job