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.
npx siftrcode context "task prompt"
Select your coding agent to view instant setup commands.
Registers SiftrCode's Stdio MCP server to prune code before Claude reads it.
siftr context "task description"
Primary V2 outcome-aware context optimizer enforcing budgets & cost caps.
Progressive disclosure tool expanding skeletons into full implementation bodies.
Reports verification evidence (tests, builds, regressions) to close the learning loop.
Explainable candidate ranker with transparent multi-channel scoring breakdowns.
Inspects multi-turn session telemetry, trajectory events, and budget burn rate.
AST interface extractor for TypeScript, Python, Go, and Rust source files.
Audits codebase token footprint and calculates potential team ROI savings.
Generates whole-directory pruned context packs for task-focused areas.
How SiftrCode V2 delivers 100% recall on critical edit targets while compressing token payloads by up to 90%.
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.
Extracts deterministic feature vectors with strict FeatureCutoff timestamps, strictly eliminating data leakage and lookahead contamination.
Scores candidates with fully inspectable component breakdowns. Applies deterministic penalties to lockfiles, generated code, and unrelated tests.
Assembles bundles with diminishing marginal returns. Maximizes task evidence coverage while suppressing same-file symbol redundancy and dead weight.
Protects direct edit targets at FULL/BODY resolution. Degrades surrounding modules into compiler-verified AST skeletons, and non-code files safely.
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.
Smarter context allocation, not naive stripping. SiftrCode V2 maximizes marginal agent utility per token—cutting typical context payloads by 60%–88% while guaranteeing 100% full implementation fidelity on direct edit targets.
Full function bodies preserved for files the agent modifies or inspects. Zero missing lines, zero hallucinated edits, zero re-try loops.
Distant callers and imports synthesized into compiler-verified AST skeletons. Retains all interfaces, types, and docs while collapsing bodies.
Unrelated services, test fixtures, and noise files omitted safely before prompt ingestion, shielding the LLM from distraction and context drift.
100% full bodies on edit targets • 88% AST skeletons on dependencies.
Saves $0.20/turn • $3,367 net annual savings per engineer.
$
npx siftrcode optimize --profile balanced
estimatedRenderedTokens calibrated against Claude BPE (~3.7 chars/tok) and GPT cl100k/o200k (~3.6 chars/tok) with measured actualProviderInputTokens reconciliation. Zero hidden context overflow.
* Modeled on typical 85k-token repository payload at 50 turns/day, 28 work days/mo (1,400 turns/mo per dev). Claude 3.7 Sonnet ($3.00/MTok in), GPT-4o ($2.50/MTok in), Claude 3 Opus ($15.00/MTok in).
Free open-source CLI for individuals. Paid caching for teams.
siftr context)