Back to browse
I Built Context+ AST and Embeddings for Codebase Understanding

I Built Context+ AST and Embeddings for Codebase Understanding

by forloopcodes·Mar 1, 2026·1 point·0 comments

AI Analysis

●●SolidShip It

AST + embeddings for codebase search—but Sourcegraph Cody, Cursor, and Continue already solve this.

Strengths
  • Spectral clustering for semantic navigation is a clever technique over naive similarity search.
  • Token savings (6-10k) verified on real OpenCode repo, concrete impact measurement.
  • Comprehensive feature set: undo trees, blast radius, restore points, git shadow integration.
Weaknesses
  • Core value (codebase-aware agent context) directly competes with established tools (Cursor, Continue, Cody).
  • Requires Ollama + vector embeddings locally; no SaaS option or hosted service.
Target Audience

AI agents, code search tools, and developers building agentic coding workflows.

Similar To

Sourcegraph Cody · Cursor · Continue.dev

Post Description

I cant believe i just made a permanent solution to context bloat and open sourced it all!

when we tested this tool (Context+) for solving an issue on the OpenCode repository, the agent using this tool used ~6.5k fewer tokens, found the code and fixed it in half the time!

the results were surprising: 6 to 10k tokens saved per prompt, completed task in ~2 minutes while the agent running without the tool took ~4 mins for the same and got stuck in loops

built an entire beast by using all the modern tools that we could think of: undo trees, semantic search by meaning (by haskellforall), advanced refactoring, blast radius, advanced file context trees, restore points... i can keep going on

semantic code search and context trees are the future of agentic coding and this tool proves it

the feature i loved the most is semantic search and how it gets things done 2x faster with least possible tokens

it makes an agent that actually knows what it’s doing and not just guessing, it makes meaning from your code similar to RAG. if you aren't optimizing your context, you are just burning money

this tool is still under development, it can have unexpected behavior and the docs need updates but the video shows the reality of how fast it can be

github: https://github.com/ForLoopCodes/contextplus get here: https://contextplus.vercel.app youtube: https://www.youtube.com/watch?v=2YKQPzQFvvg x: https://x.com/forloopcodes/status/2027745057483460757

Similar Projects

Developer Tools●●Solid

Noodles – Turn any codebase into a diagram with Claude and Tree-sitter

Tree-sitter + agentic flow ~50x faster than raw LLM calls, but codebase visualization is crowded category.

Solve My ProblemShip It
unslop
603mo ago
AI/ML●●Solid

CocoIndex-Code open source embedded AST-based code MCP

AST-based code indexing saves tokens but Cursor and Continue already do this.

Solve My ProblemNiche Gem
georgehe9
213mo ago
Developer Tools●●●Banger

Srclight – Deep code indexing MCP server (FTS5 and Tree-sitter)

Tree-sitter + FTS5 + MCP = tokens saved for AI agents to actually code, not search.

WizardryBig BrainZero to One
srclight
103mo ago