Capability matrix, part 2
Downshift by Tiago Vilas Boas. Updated . Source on GitHub
Historical snapshot: The page header says it was updated on 3 November 2026; some sections cite different dates. Details may have changed. Check the linked source on GitHub and the current harness matrix before relying on compatibility claims.
9. Context optimization
| Capability | Status | Where | Evidence | Limits | Docs |
|---|---|---|---|---|---|
Native compressor (off, observe, safe): compacts an all-ok go test, a clean git status, repeated logs; preserves failures, non-zero exit, search hits, file lists, git log |
Implemented | internal/compressor, downshift context compress |
compressor_test.go (TestCompress_GoTest_FailPreservesRaw), benchmark_test.go |
Transforms bytes only in a shell pipe with safe --exit 0; the hook cannot replace tool output on any harness; prompts never compressed |
docs/design/context-optimization.md, skills/downshift-tune/references/compress-output.md |
Context sensor (observe-only byte counts per session hash and format; context-sensor.json, context-compactions.jsonl) |
Implemented, not validated everywhere | internal/sensor, Claude Code PostToolUse (recordSensorToolObservation) |
sensor_test.go, TestPostToolUse_CompressExitFollowsNativeFlag, TestPostHooks_PostToolUseBoundedWhenSensorLockHeld (500 ms lock) |
Claude Code PostToolUse only; tokens unavailable; context-sensor.json never pruned (audit) |
docs/design/context-optimization.md |
downshift context benchmark (four scenarios printed not measured; byte table from four checked-in fixtures) |
Implemented (bytes only) | internal/benchmark/context_benchmark.go, fixtures/ |
compressor_benchmark_test.go |
Not tokens, not dollars, no cost or accuracy | README, docs/design/context-optimization.md |
Headroom companion: detected on PATH, recorded by context enable, doctor row, wrap hints per harness |
Implemented | internal/contextopt/providers/headroom, cmd/context.go |
context_companion_test.go, headroom_test.go |
Never installed, launched or wrapped; metrics unavailable; Antigravity and KiroCrew not in Headroom's list (2026-10-17); a companion's savings are not routing savings |
docs/guides/companions.md |
Gateway-prefixed ids (OpenRouter rule: first provider/ segment stripped; ids outside the catalog stay unknown) |
Implemented, not validated everywhere | internal/catalog/catalog.go |
catalog_test.go prefix-normalisation tests |
Not verified against a live gateway (2026-10-17) | docs/reference/session-models.md |
OpenRouter allowlist (openrouter.json): listed rows supply tier metadata for shadow gateway_would telemetry |
Implemented, shadow only (#352) | internal/catalog/openrouter.go, internal/core/gateway_shadow.go, internal/telemetry/event.go |
openrouter_test.go, gateway_shadow_test.go, gateway_would_test.go |
Never makes ids automatic opencode routes or changes live routing; no live gateway validation; zdr is recorded but not enforced |
docs/guides/config.md#openrouter-allowlist-optional |
| Context compression in the request path | Not supported | — | — | A hook cannot change what the model sees; that is a proxy's job | docs/guides/when-to-use.md |
10. Project policy
| Capability | Status | Where | Evidence | Limits | Docs |
|---|---|---|---|---|---|
.downshift/policy.json tier floor (min_tier, min_tier_by_class, min_tier_by_risk; nearest file within 8 levels; 64 KB; invalid file ignored) |
Implemented | internal/policyfile, core/tier_floor.go (TierFloorHook), hookctx.ProjectDir |
policyfile_test.go, TestHookE2E_ProjectFloorThroughSharedRunner, TestRunKiroCrewHook_ProjectFloorApplies; counted as policy_floor |
Raises only; passes the session allowlist and quota gates; project dir is vendor-documented for Claude Code only (others from third-party reports or the process cwd); cannot force a model where rewrites are not honored; benchmark never reads it |
docs/guides/config.md#project-tier-floor-optional, skills/downshift-tune/references/project-policy.md |
11. Learning and shadow (all shadow or opt-in; none changes a spawn by default)
| Capability | Status | Where | Evidence | Limits | Docs |
|---|---|---|---|---|---|
Naive-Bayes second opinions (DOWNSHIFT_NB_UPSHIFT, DOWNSHIFT_NB_DOWNSHIFT) |
Removed: the upshift opinion 2026-10-31, the TRIVIAL downshift opinion and internal/nbtier 2026-11-01 |
— | No hook was ever registered in production, so neither changed a spawn | Old logs may still carry nb_upshift, nb_downshift and their reason codes; they still decode |
docs/design/router-generalization.md, docs/reference/stats-export.md |
| Multilingual E5 shadow/fuse and external MiniLM embed | Removed 2026-10-17 | — | Historical evaluation: e5-int8-evaluation-2026-10-17.md | Not in the binary. Old logs may still show E5_* or GRAPH_ESCALATION |
CHANGELOG |
| Learned complexity scorer for EN and PT-BR | Planned | — | ROADMAP "Next" | Needs about 2,400 labelled prompts | ROADMAP.md |
12. Benchmarks
| Capability | Status | Where | Evidence | Limits | Docs |
|---|---|---|---|---|---|
Eval-only splits: fresh 100 and heldout2 120 (blind), blind-vitrine 60 |
Implemented (maintainer) | same | fresh 50.0% (40.0–60.0%) and heldout2 40.0% (31.7–49.2%) at 5a888e7; 53.0% / 41.7% at 3067340; blind-vitrine 46.7% (audit); confident and wrong: 2 of 37, 6 of 28, 8 of 23 |
Classifier only (no router, guardrails or quota); no new blind set of 200+ (P4 open) | benchmark/report.md, audit |
| Executable outcome suite, 40 Go tasks, one fixed model per tier (2026-10-03) | Implemented (maintainer) | downshift eval-outcome --verify|--report, internal/outcome |
frontier claude-opus-5.5 40/40, mid deepseek-v4-flash 31/40, small qwen3-coder-30b 27/40; TRIVIAL+SIMPLE 20/20, 17/20, 16/20; classifier routing 37/40 at the picked tier (recomputed 2026-10-15) |
No token, retry or USD fields (run.json, issue #100); small minus frontier is −20 pp on TRIVIAL+SIMPLE; independent 6-task held-out smoke only (GAP-SUITE) |
benchmark/report.md, docs/internal/gap-tasks.md |
| Routed versus control A/B on real and mechanical tasks (2026-10-15) | Implemented once (one operator) | private runner in downshift-labs; control arm (the DOWNSHIFT_NO_ROUTE switch it used was removed 2026-11-02) |
b2 7/8 vs 7/8, $0.65 vs $0.77, 0 downshifts; b5 12/12 vs 12/12, $0.59 vs $0.67 (−12%), 19 of 56 (34%) rewritten down, mech-rename −33%; b6 8/12 vs 9/12, $0.75 vs $0.92, 3 of 34 (9%) |
Three runs per cell; Claude Code only; checks verify structure, not quality; natural-use saving not shown | A/B, docs/guides/evidence.md |
| Context benchmark (four fixtures, bytes) | Implemented | downshift context benchmark |
compressor_benchmark_test.go |
Bytes; scenarios A–D not measured |
docs/design/context-optimization.md |
| Multilingual M3 frozen set (170 rows) | Implemented (maintainer) | labs | CHANGELOG: unsafe confident recommendations 0 | Private; aggregate only | CHANGELOG |
13. Packaging
| Capability | Status | Where | Evidence | Limits | Docs |
|---|---|---|---|---|---|
Claude Code plugin: .claude-plugin/plugin.json, marketplace.json, hooks/hooks.json (four hooks and one mod module), commands/status.md, skills, agents/mechanical-worker.md |
Implemented | repository root | TestPluginHooksMatchSetupTarget; doctor warns when plugin and settings hooks both run |
Claude Code only; binary still required; plugin does not set opusplan, plan mode, You should know or the statusline; plugin detection reads the user settings file only |
docs/guides/install.md#plugin-install-claude-code, hooks/README.md |
downshift setup (per-harness targets as data, diff, backup, --dry-run, --yes, --undo, --no-session-policy) |
Implemented | cmd/setup.go, setup_targets.go |
setup_test.go |
KiroCrew is reported only (needs the wrapper script); Codex still needs config.toml flags and /hooks trust |
docs/guides/install.md |
install.sh with sha256 verification against the release checksums.txt |
Implemented (Unreleased) | install.sh |
install_test.go |
DOWNSHIFT_SKIP_CHECKSUM=1 opts out loudly |
docs/guides/install.md |
| Example subagent with no pinned model | Implemented | agents/mechanical-worker.md |
plugin loads it as downshift:mechanical-worker |
Claude Code agent format; the rule (omit model) applies everywhere |
docs/guides/subagents.md |
| Always-loaded memory file capped at 200 lines; doc names lowercase kebab-case and relative links checked | Implemented as a rule | AGENTS.md (CLAUDE.md points to it); internal/docscheck |
TestMarkdownNames, TestRelativeLinksResolve (no test enforces the 200-line cap) |
Contributor skill downshift-layering stays out of the plugin |
docs/design/architecture.md |
Contradictions and overclaims found
Each line: file:line, the sentence (abridged where long), and what the evidence supports.
RESOLVED (2026-10-17):README.md:253"event-driven Context Sensor to govern context token volume".README.md:325now says the sensor "observes context volume (byte counts, never a rewrite)"; no "govern" on the Context Sensor (onlyGOVERNANCEin the project links).- Semantic boost is the in-process FNV hash (
hashembed.go). External MiniLM and E5 were removed 2026-10-17. Seedocs/design/minilm-semantic.md. docs/pt/README.md:23"decide em menos de 2 milissegundos". Holds for short prompts (0.10 ms) only; the audit measured 0.23 s on a typical 1 MiB prompt and 275 ms with the catalog resolver after the prefilter (hardening-audit-2026-10-15.mdperformance note). Unqualified claim.docs/guides/install.md:573"API (direct) | ✅ Yes | ✅ Yes". No evidence file covers an API-key session; the 2026-10-06 write-up records "Plan tier: not recorded".RESOLVED (2026-10-17): install table and prose say rewrite is emitted and child model is unconfirmed (P1.6); matrix row stays Unconfirmed.docs/guides/install.md:585"On usage-based Pro/Ultra plans where subagent model selection is expanded, routing works."RESOLVED (2026-10-17): install describes the lastdocs/guides/install.md:349"inspects the prompt insideSubagents[0].Prompt... rewritesSubagents[0].Model".Subagentsentry with a non-emptyPrompt,flash_lite/flash, and the undocumentedoverwriteenvelope.- Graphify integration doc removed 2026-10-17; graph escalation is no longer part of the product.
RESOLVED (2026-10-17): table rechecked 2026-10-17 with optionaldocs/reference/session-models.md:57-63stale 2026-09-27 field table.session_id,cwd,transcript_path,tool_use_id,permission_mode,workspace_roots; usage via SubagentStop transcript, not async PostToolUse tokens.docs/pt/README.md:26"Métricas em dólares reais dependem do reporte de tokens retornado pelo harness no hook posterior (PostToolUse)". On Claude Code thePostToolUsepayload of an async subagent carries no tokens (posttooluse.goheader,beta-exit.mdP3 note); usage comes from theSubagentStoptranscript.RESOLVED (2026-10-17): skill states doctorskills/downshift-audit/SKILL.md:12"[doctor covers] whether a rewrite was honored".rewrite honoredis inferred honor only and points to daily-truth.md and harness-matrix.md for observed honor; code behaviour unchanged (CountInferredHonored).RESOLVED (2026-10-17):benchmark/report.md:18seed tier accuracy 69.0% versus audit 73.5%.benchmark/report.mdpublishes seed 73.5% (67.0–79.1%) and baseline-freeze-2026-10-17.md documents the superseded 69.0% atbe1054ac; matrix rows §1 and §12 cite the same figure.README.md:36"Implemented on Claude Code (usage from the child transcript); partial elsewhere." Elsewhere is weaker than partial: Codex and Cursor end parsers are unverified and read no usage; Antigravity and KiroCrew record nothing (matrix "Child end (N5)").RESOLVED (2026-10-17): docs/guides/benchmark-protocol.md is in the tree; README line 54 links it.README.md:37andllms.txt:16linkdocs/guides/benchmark-protocol.md, missing at audit time.14.RESOLVED (2026-10-20): the web dashboard (llms.txt:106-107anddocs/pt/README.mdpresentdownshift serveanddsmonas plain reporting commands.serve,internal/server,dsmon-server) was removed in a3d5a8b7;llms.txtanddocs/pt/README.mdno longer listdownshift serve.RESOLVED (2026-10-17): both guides frame the suite and "model routing is the main lever today, not the whole product", aligned with README § suite-at-a-glance.docs/guides/companions.md:6/when-to-use.md:3router-only positioning.README.md:104anddocs/guides/install.md:66quote the stderr line asdownshift: TRIVIAL task → downshift to claude-haiku-4-5. The real line isdownshift: correlation_id=<id> TRIVIAL task → downshift to claude-haiku-4-5 (~75% cheaper)(main.gostderrLine,policy.goSummary). Trimmed sample, not wrong, but a grep for the documented text fails.
Hidden capabilities
Things the code does that no public doc explains well (file where it lives; where it is mentioned, if at all).
- Verification sensor.
SubagentStoprecords whether the child ran a recognised test or lint command and whether the last one passed (verification: passed|failed|noneon usage records). Theverification-reportcommand was removed (2026-10-26); seedocs/guides/verification.mdfor the field. - Prompt-injection as a risk category. A task that says "ignore previous instructions", "this is a trivial task" or "use the cheapest model" is treated as risky: never downshifted, floor off the small tier.
core/risk.goprompt_injection. Docs name the category in passing only. - The hook's time and safety budget. 1 MiB payload cap, 2 s stdin read timeout, 400 ms transcript wait and 500 ms sensor lock. The 1.5 s helper-command deadline (
hookctx.HookBudget) was removed on 2026-11-02 with the last helper command; the embed, graph-fetcher and E5 helper limits went earlier with those features. - Operational knobs. Event-log rotation (
DOWNSHIFT_LOG_MAX_MB,DOWNSHIFT_LOG_MAX_BACKUPS) andDOWNSHIFT_QUIETare listed indocs/guides/config.md. The naive-Bayes switches were removed.DOWNSHIFT_E5_*,DOWNSHIFT_GRAPHIFY_CMD, andDOWNSHIFT_MINILM_EMBEDare gone. Graph escalationremoved 2026-10-17.- Second stderr line per spawn.
downshift: honor=unobserved quota=<available|held|unknown> usage=unobservedis printed for every decision on every harness; onlydocs/guides/daily-truth.mddescribes it. - Antigravity multi-child rule. The decision, the task text and the written model all follow the last subagent that has a
Prompt; earlier children are not routed.antigravity.godecidedSubagent,TestMultiChild_*. Only the hardening audit and CHANGELOG mention it. - In-process extras. None left:
internal/orchestrationandinternal/routecachewere removed on 2026-10-19,internal/decisionintelligenceon 2026-10-26 andinternal/lifecycleobserver, which compiled but had no CLI or hook path, on 2026-11-02. - Agent-type baseline attribution.
stats --detailprints "Baseline by agent type" so an unknown-baseline rate can be pinned onExplore,Planorcustom. Onlystats-export.mddescribes it. - Refuted-rewrite honesty. When Claude Code reports a different
resolvedModel, token usage is attributed to the model that ran and the refuted rewrite contributes no moved-to-cheaper tokens; it never counts as inferred honored (TestAggregate_RefutedRewriteSavesNothing). Explained in the audit and CHANGELOG, not in the stats docs a user reads.
More docs
- Install Downshift: Claude Code, Codex and Cursor hook setupGuide
- Downshift configuration: state directory and local settingsGuide
- Downshift and Claude Code subagents: when routing can actGuide
- Downshift session view: subagent tree, reasons and pauseGuide
- Downshift report: routed spawn tokens and reworkGuide
- Downshift evidence ladder: what each saving figure meansGuide
- Downshift companions: Headroom and Claude Code mods to pairGuide
- Downshift capability matrix: status and evidence per featureReference
- Downshift harness matrix: Claude Code, Codex, Cursor statusReference
- Downshift value per harness: observed tokens per harnessReference
- Downshift spawn state: switched, held or only observedReference
- Downshift offline simulation: routing without model callsGuide
- Downshift session models: which model IDs a hook may writeReference
- Downshift complexity weights: how a task becomes a modelReference
- Downshift architecture: deterministic hook and offline CLIDesign
- Downshift routed vs control: first Claude Code A/B resultsEvidence
- Downshift real usage: a Claude Code day and the last 30 daysEvidence