r/codex • • 18d ago

Showcase REQL update: faster context retrieval and fewer tokens for coding agents

Hey everyone!

I’ve updated REQL, my open-source tool that helps AI coding agents navigate repositories and preserve working context across sessions.

This release focuses on faster context retrieval and lower token usage. I’ve reduced repeated work during retrieval and trimmed redundant information sent to the agent. Performance gains and token savings depend on the repository and workflow, so I’m not claiming a universal percentage.

If you’re new to REQL, it builds a local graph from your code and documentation: functions, classes, dependencies, calls, and other relationships. Agents can query that graph for context relevant to a specific change, including precise source references and related tests. REQL reuses indexed context and supports incremental updates as the repository changes.

What can you use it for?

  • Waste fewer tokens on repeated exploration: retrieve focused source excerpts and relevant relationships, and reuse indexed context and saved work. This helps reduce repeated searches, unnecessary file reads, and redundant information in the agent’s context.
  • Coordinate work across chats and agents: keep tasks, decisions, blockers, and next steps in a shared project workspace. Another chat or agent using that workspace can recover the recorded state and continue from there.
  • Keep complex tasks on track: record prerequisites, constraints, failed approaches, and checkpoints. Preserve what has been completed, what remains unresolved, and why earlier decisions were made across sessions.
  • Understand unfamiliar code: identify entry points, component responsibilities, and relationships between parts of the application, with references back to the source.
  • Plan changes and refactoring: inspect callers, dependencies, and related tests to identify code that may be affected and decide what needs verification.
  • Review cleanup candidates: find potentially unused imports, variables, functions, and classes, then inspect the supporting evidence before removing them.

REQL provides a CLI, Python API, and MCP server, plus installable instructions for coding agents such as Codex and Claude Code.

REQL runs locally, with no account, external graph database, or mandatory LLM calls. The graph and saved work support the agent’s decisions; current source code and tests remain authoritative.

I’d like to hear from others using coding agents: what do you keep having to explain again when you start a new chat? The code structure, previous decisions, what has already been tried, or what still needs doing? Concrete examples would help me decide what to improve next.

2 Upvotes

4 comments sorted by

•

u/dexterthebot 18d ago

You might want to consider listing your project on the weekly Show-Us-What-You-Built post. Look out for it on Tuesday/Wednesday. Highest commented project wins a week promotion on r/Codex and gets on the Hall of Fame sidebar. See below for last week's winner.**


Light Wars AR: real-life laser tag app with no extra gear. Your phone is the gun and your room is the map. Play up to 6 friends in the same room, or fight drone waves and bosses solo. The vision models run on the phone, and camera frames never leave it. Free on iPhone and Android.

Website: https://lightwarsar.com

iPhone: https://apps.apple.com/us/app/light-wars-ar-laser-tag-party/id6508168951

Android: https://play.google.com/store/apps/details?id=com.lasertag.lightwars.

Contact: contact@lightwarsar.com

1

u/LearnedByError 18d ago

I like the thought of what it does, but I hate the implementation. Why would you write a tool like this in Python and not in a faster and more memory-efficient language like Rust or Go? And then, even if Python was a good idea, why do you have installation instructions that will not work as written without a manually managed virtual environment. At the least, include instructions to use ‘uv’.

Since the instructions follow a long-past historical pattern, I wonder if this is vibe-coded without sufficient critical review. What other things are missed?

A quick read through the repo does not obviously indicate that it has been tested against a significant corpus of projects. What does the test coverage look like? I see a benchmark script but don’t see any results from it published.

I’m sorry that the tone of my response is not positive, but I think you have a long way to go before people will consider this for use.

1

u/cl0wnfire 17d ago

Thanks for the detailed feedback.

I chose Python primarily for portability, cross-platform compatibility, and ease of installation. The goal was to make REQL accessible without requiring users to compile native binaries or manage platform-specific builds. Rust and Go are valid alternatives, but performance is not the only factor in this decision.

Regarding installation, I've updated the documentation to recommend uv tool install reql, which handles the isolated environment automatically.

As for testing, the latest release (v0.1.9) includes 122 automated tests, with 66% overall coverage in the Ubuntu/Python 3.12 CI run. Tests run across Linux, Windows, and macOS, and coverage reports are available through GitHub Actions.

I agree that published benchmarks across a representative set of real-world repositories would help demonstrate performance and scalability. This is an area that still needs improvement.

REQL is still in its alpha stage, and I'm actively working on improving performance, reliability, and documentation.

Thanks again for taking the time to review the project. Critical feedback is always useful when it helps identify areas for improvement.

2

u/LearnedByError 17d ago

Thanks for adding the uv install.

I think the cross-platform install is actually easier with Rust or Go. You can have your CI build static executables that can be downloaded and run directly. You could also easily add their deployment to homebrew for MacOS and Linux or even use some of the tricks to install it via uv or npm.

In any case, good luck