Rubi Knowledge Graph Cuts Claude Code Re-reading by 40%

A new open-source tool called Rubi has launched to address a persistent inefficiency in AI-assisted coding workflows: the tendency for large language models to repeatedly re-read the same files during coding sessions. Officially released on October 18, 2026, Rubi builds knowledge graphs that maintain context across Claude Code interactions, reducing redundant file processing by up to 40% according to early testing reports.
How Rubi Optimizes Claude Code Workflows
Rubi functions as a middleware layer between developers and Claude Code, Anthropic's AI coding assistant. The tool constructs and maintains knowledge graphs that map relationships between code files, functions, and dependencies. When Claude Code requests context about a file it has already analyzed in the current session, Rubi intercepts the request and provides cached insights from its graph structure rather than forcing a complete re-read.
This approach directly tackles a common complaint among developers using AI coding assistants: wasted tokens and slower response times caused by models re-processing identical information. By tracking which files Claude has already examined and what information was extracted, Rubi creates a persistent context layer that survives across multiple queries within a coding session.
Technical Architecture and Implementation
The system operates through three core components:
- A graph database that stores file relationships, function dependencies, and code semantics extracted during initial reads
- An interception layer that monitors Claude Code's file access patterns and determines when cached context can substitute for fresh reads
- A context refresh mechanism that invalidates graph nodes when source files are modified, ensuring accuracy
Rubi integrates with existing Claude Code setups through a configuration file and runs as a local service. Developers can inspect the knowledge graph through a visualization interface to understand how the tool is optimizing their AI interactions. The project is available under an MIT license, allowing both individual developers and enterprise teams to deploy it without restrictions.
Performance Metrics and Early Adoption
According to documentation shared on the project's GitHub repository, Rubi reduces average token consumption in multi-file coding tasks by 35-40% compared to unoptimized Claude Code sessions. Response latency decreases by approximately 25% in workflows involving frequent context switching between related files. These improvements are most pronounced in large codebases where developers frequently ask Claude to modify interconnected components.
The Hacker News community response has been cautiously positive, with developers noting that similar context optimization challenges exist across multiple AI coding assistants, not just Claude Code. Several commenters suggested adapting Rubi's graph-based approach for other models, though the initial release focuses exclusively on Claude integration.
Availability and Future Development
Rubi is available now through GitHub, with installation requiring Python 3.9 or later and compatible with macOS, Linux, and Windows environments. The project maintainers indicate plans to expand support to additional AI coding assistants in future releases, though no specific timeline has been announced.
Developer YURIBEDRAN, the project's creator, emphasized in release documentation that Rubi addresses a specific optimization gap rather than attempting to replace Claude Code's core functionality. The tool is designed to work alongside existing workflows without requiring changes to how developers structure prompts or organize code.
What This Means
Rubi represents a growing category of developer tools focused on optimizing the efficiency of AI-assisted coding rather than improving model capabilities directly. As AI coding assistants become standard in software development workflows, tools that reduce computational overhead and token costs will become increasingly valuable. For teams working with large codebases and frequent Claude Code interactions, Rubi offers a practical solution to a well-documented efficiency bottleneck. The open-source nature of the project also invites community contributions that could extend its optimization techniques to other AI coding platforms.
on Emergent today





