SiftrCode V2 • Outcome-Aware Context Optimization

Context optimization, outcome-aware

Discovers, ranks, and composes compiler-verified repository context bundles — maximizing coding-agent task success while eliminating 90% of token bloat under strict economic budget ceilings.

🎯 Edit Targets Protected ⚡ AST Interface Skeletons 📐 Submodular Synergy 🔒 100% Local • Zero Egress
Explore Interactive Optimizer
$ npx siftrcode context "task prompt"
Local CPU Zero Network Egress
Task Prompt: 100% Recall@20
Budget Cap: 16k tok / $0.05 max
Presets:
cplan_9bf2a481 • ContextPlan
Submodular Synergy Bundle
EDIT TARGET (FULL IMPLEMENTATION BODY PROTECTED) RESOLUTION 5 (FULL)
src/webhooks/signature_verifier.ts
Identified via stack trace match & exact prompt symbols. Retained 100% body to allow editing without hallucination.
1,420 tok
100% Retained
DEPENDENCY INTERFACES (AST SKELETON SYNTHESIS) −92% TOKENS
src/auth/jwt.ts Interface skeleton: 4 types, 2 public methods
480 tok 4,120
src/db/session.ts Interface skeleton: SessionManager, TransactionClient
520 tok 5,800
src/queue/event_bus.ts Interface skeleton: EventPublisher, DeadLetterQueue
610 tok 6,400
SUPPRESSED DEADWEIGHT (ZERO CONTEXT POLLUTION) 14 Files Omitted
tests/e2e/legacy.test.ts, scripts/deploy.sh, docs/arch.md, src/frontend/Header.tsx, src/billing/tax.ts...
Raw Context
94,200 tok
V2 Bundle
3,030 tok
Turn Cost
$0.0091
−96.8% Tokens Save $0.273 / turn

Works with Claude Code & Cursor

Select your coding agent to view instant setup commands.

Connect to Claude Code

Guide →

Registers SiftrCode's Stdio MCP server to prune code before Claude reads it.

$ claude mcp add siftrcode -- npx -y siftrcode mcp
Or optimize context directly from terminal:
$ siftr context "task description"
PIPELINE SPECIFICATION

The 6-Stage Optimization Engine

How SiftrCode V2 delivers 100% recall on critical edit targets while compressing token payloads by up to 90%.

STAGE 01 Recall@20: 100%

Multi-Channel Candidate Recall

Blends Exact symbol matches, BM25 text retrieval, Stack Trace log parsing, Semantic AST Context Graph, and Git Co-Change intelligence to never miss relevant code.

STAGE 02 ContextFeaturesV1

Point-in-Time Versioned Features

Extracts deterministic feature vectors with strict FeatureCutoff timestamps, strictly eliminating data leakage and lookahead contamination.

STAGE 03 ContextRank

Transparent Heuristic Ranker

Scores candidates with fully inspectable component breakdowns. Applies deterministic penalties to lockfiles, generated code, and unrelated tests.

STAGE 04 BundleComposer

Submodular Synergy Bundler

Assembles bundles with diminishing marginal returns. Maximizes task evidence coverage while suppressing same-file symbol redundancy and dead weight.

STAGE 05 ResolutionRank

Safe Variable Degradation

Protects direct edit targets at FULL/BODY resolution. Degrades surrounding modules into compiler-verified AST skeletons, and non-code files safely.

STAGE 06 BudgetSolver

Constrained Cost Optimization

Strictly enforces token caps (e.g. 16,000 max) and economic cost ceilings (e.g. $0.05/turn) with precise pricing models for Sonnet 3.7 and GPT-4o.

Token Economics

The math is easy. You could be saving thousands in agent fees*

Context Window

Payload per Turn

−92% Tokens
125k
62k
125,000
tokens (100%)
Raw
−92.2%
9,800
tokens
AST
Without Siftr
With SiftrCode

Method bodies dissolved • 100% signatures & types preserved.

Claude Spend

Monthly Cost / Dev

Save $380 / mo
$412
$200
$412.50/mo
$4,950 / yr
$0.38/turn
Save $380
$32.34/mo
$388 / yr
$0.03/turn
Without Siftr
With SiftrCode

Saves $0.35/turn • $4,560 net annual savings per engineer.

Net ROI
+$4,560/ dev
Latency
11xfaster
10-Dev Team
+$45.6k/ yr
$ npx siftrcode audit

* Analysis for Claude 3.7 Sonnet ($3.00/MTok in) based on 50 agent turns / day.

Simple Licensing

Free open-source CLI for individuals. Paid caching for teams.

OPEN SOURCE
INDIVIDUAL DEVELOPERS

Community CLI

$0 Free forever (MIT)
  • V2 Context Engine (siftr context)
  • Multi-Channel Candidate Recall (100% Recall@20)
  • Safe Variable Degradation & Edit Target Protection
  • AST Interface Skeletons (TS, Py, Go, Rust)
  • Stdio & HTTP/SSE Model Context Protocol (MCP)
TEAM PRO
FOR STARTUPS & TEAMS

SiftrCode Pro

$19 / seat / mo
  • Everything in Community CLI
  • Team Cross-Repo Semantic Context Cache
  • Exposure-Aware Outcome Telemetry & Analytics
  • CI/CD PR Context Gates & Custom Budget Ceilings