Cognition logo

SWE-grep

CognitionProprietaryPending Human Review

SWE-grep and SWE-grep-mini are Cognition’s language-model specialization for fast multi-turn code-context retrieval. They generate tool calls to grep, glob, and read files, then select relevant files and line ranges for a downstream coding model. Reinforcement learning rewards retrieval quality while encouraging parallel exploration within a small number of serial turns. These are generative agentic search models, distinct from embedding-based retrieval, and were publicly served through Windsurf’s Fast Context subagent. The mini checkpoint is grouped with the same release. Their architecture, parameter counts, and standalone inference limits were not disclosed, and no public weights were announced.

2025-10-16
Undisclosed
Proprietary

Specifications

Architecture
Undisclosed
License
Proprietary
Type
text
Modalities
text

Benchmark Scores

Advanced Specifications

Model Family
SWE
API Access
Not Available
Chat Interface
Not Available
Variants
SWE-grep-mini

Capabilities & Limitations

Capabilities
agentic code searchparallel tool callscontext retrieval
Known Limitations
Specialized for retrieval rather than general coding assistanceAccuracy depends on the search tools and repository environmentNo public standalone model endpoint or weights verified
Notable Use Cases
codebase explorationfinding relevant files and linescoding-agent context gathering
Function Calling Support
Yes
Tool Use Support
Yes

Related Models