Sourcegraph introduced a semantic context compaction engine for Cody. Designed for deep call-stack comprehension, the algorithm prunes boilerplate while strictly retaining function signatures, type contracts, and critical execution paths. This compresses token usage by 60% and increases multi-package code synthesis accuracy by 34%.
Key Takeaways
- βPrunes boilerplate while strictly preserving type contracts and critical AST paths.
- βImproves cross-package code completion and refactoring accuracy by 34%.
- βRolled out across Cody VS Code, JetBrains IDE plugins, and Sourcegraph Enterprise.