Urgent.News

What's breaking now, across thousands of outlets.

AI

CodeSage: Code Intelligence for AI Agents, and Why I Rebuilt Its Models

Until this week, CodeSage ran its two models exactly as they ship on Hugging Face: Jina's code embedder and the ms-marco MiniLM reranker. A full index of php-src took 1,782 seconds, just under half an hour, and I got tired of waiting. CodeSage 0.38 does the same full index in 373 seconds. Nothing was retrained. The weights are the same weights; what changed is the inference graph around them, a…

CodeSage, a code intelligence engine for AI coding agents, has been rebuilt with new models and improved performance. Until recently, it utilized the Jina code embedder and ms-marco MiniLM reranker, but the full index of php-src took over half an hour to complete. In the newly rebuilt version (CodeSage 0.38), the same full index can be generated in just 373 seconds.

The weights remained unchanged; the differences lie in the inference graph, the chunker, and a single SQLite query. The rebuilt models are now publicly available on Hugging Face, along with the scripts used to create them. CodeSage provides a structural graph (symbols, references, dependencies) and semantic search (embedding retrieval with cross-encoder reranking) in a single Rust binary, functioning as a CLI or MCP server.

This allows AI agents to ask questions that grep cannot answer, such as identifying dependencies or locating specific code sections. The indexer updates automatically from git hooks on every commit, checkout, and merge, ensuring the index stays current. CodeSage's performance improvements were achieved by optimizing the inference graph, chunker, and SQLite queries, reducing the time needed to generate the full index from 1,782 seconds to just 373 seconds.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

I built an AI-assisted I Ching app for Android — here's what I learned about digital divination

I'm a software PM from China who got into the Yijing (I Ching) last year. I went looking for a good app and found two extremes: walls of classical Chinese that bounce beginners instantly, or horoscope…

  • BU is a free AI-assisted I Ching app for Android, bilingual in English and Chinese.
  • Users find BU more as a journaling tool than traditional fortune-telling, driven by daily fortunes.

More from Friday 2 October →