Index your codebase once. Ask real questions in Codex, Cursor, Claude Code, or any MCP-compatible tool and get answers grounded in current source, symbols, and relationships.

Install in one command

Stable release · 0.4.7
curl -fsSL https://storage.ctxe.tlelabs.com/ctxe/latest/install.sh | sh

Then ctxe login, ctxe index . and ask from the terminal or your agent.

Ask from the terminal

Command lineLocal index
$ ctxe index . --watch
Indexed 1284 files in 41.2s
Discovered: 1284 Indexed: 1284 Unchanged: 0 Deleted: 0
$ ctxe ask "How does session refresh work after login?"
Refresh rotates the refresh token on every call and treats a reused token as theft.

1. The client sends its refresh token to POST /auth/refresh (src/api/auth/refresh.ts:31).
2. SessionService.refresh loads the session from Redis and compares the token with the stored hash (src/auth/session.ts:147).
3. A match issues a new access token and a new refresh token, and marks the old one used (src/auth/session.ts:182).
4. A token that was already used ends every session of that login and writes a security event (src/auth/audit.ts:58).

Sources  refresh.ts:31 · session.ts:147 · session.ts:182 · audit.ts:58
Saved as record 214. Reopen it any time in ctxe dashboard.
Try

Work through your agent

MCP clientConnected
You
“Make password reset links expire after 15 minutes.”
Agent
I’ll find the reset code and learn how it works before I change anything.
ctxe · semantic_search

“create a password reset link”, “verify a reset token”, “send the reset email”

8 results, best first: src/auth/reset.ts, src/api/auth/reset.ts, src/mail/templates/reset.ts …

ctxe · ask_context

“How is a password reset token created, stored and checked, and does it expire today?”

Tokens are random, stored as a hash in reset_tokens and checked once. Nothing makes them expire.

Agent
Plan: add an expiry to the token and reject expired links. Checking what else that change touches.
ctxe · get_impact

“ResetToken gains expiresAt; verify rejects expired tokens”

6 places to check, most likely first: the mobile deep link, the admin “resend link” action, two test fixtures …

Agent
Done: reset links now expire after 15 minutes. I updated the 4 files that needed it, the mobile deep link included, and both reset tests pass.

MCP tools

Your agent stops guessing about your code.

Agents that search by keyword and read file after file burn your context and still miss the code that matters. CtxE gives Codex, Claude Code, Cursor and any MCP client three tools for the questions they ask before every change, so you get the right edit sooner, with fewer retries and fewer surprises after the merge.

Find 01 / 03

The right code from a plain description

Without it, your agent greps for words it guesses, opens files that don’t matter and misses code named differently from your request.

Describe a behavior or a bug in your own words. Your agent gets the code that does it, ranked across the whole workspace, even when the code never uses your words.

You ask
“Where do we retry a failed payment?”
Your agent gets
The retry handler, its backoff settings and the job that schedules it.
semantic_search
Understand 02 / 03

A whole flow explained before the first edit

Without it, your agent reads file after file to piece one flow together, fills its context and guesses at the gaps.

Ask how something works and get one answer from entry point to effect, every step tied to the source it comes from. Your agent keeps its context for the actual work.

You ask
“How does session refresh work after login?”
Your agent gets
The steps in order, the conditions that end a session and the file behind each step.
ask_context
Change safely 03 / 03

Changes that don’t break something else

Without it, your agent renames a field, its tests pass, and a caller it never opened breaks after the merge.

Before and after an edit, your agent gets the other places that must change with it, most likely first, with the reason for each. Runs on your machine and costs no credits.

You ask
“Rename userId to accountId in the session API.”
Your agent gets
The handlers, client code, fixtures and docs that still use the old name.
get_impact

One install connects all three tools to your agents, in a few minutes.

Install CtxE

Local dashboard

Your index and every answer, one click away.

  • Know every workspace is current: indexing progress and live events in one place
  • Ask from the browser and get answers with their sources
  • Every answer is saved: reopen it, check its sources, ask a follow-up
  • Credits per day, so the cost never surprises you

Open it with ctxe dashboard. It runs on your machine, next to the index.

ctxe dashboard 127.0.0.1Daemon ready

3Workspaces

48,210Chunks indexed

126Questions answered

312Credits used this week

Workspaces
WorkspaceStateChunksUpdated
api-serverReady21,9042 min ago
web-appIndexing 64%18,377now
mobile-sdkReady7,9291 h ago
Credits used per dayLast 7 days
Questions answered per dayLast 7 days
Recent questions

Start locally

Make context a system, not a prompt.

Install the CLI, index a workspace, and connect your agent in a few minutes.