Context Mentions
Type @ in chat to pull in context from your workspace instead of
copy-pasting it yourself.
Needs an index first
Section titled “Needs an index first”Set an embedding model (xpreiIDE: Select Embedding Model, e.g.
ollama-local::nomic-embed-text) and run xpreiIDE: Rebuild Codebase
Index once. The index updates automatically as you edit and save files.
@codebase <question>— semantic search across your whole indexed workspace; the model gets back the most relevant chunks of code.@file:src/x.ts— inline one specific file in full.
No index needed
Section titled “No index needed”These read live workspace state on demand:
@currentFile— inline the active editor’s live buffer (including unsaved changes), the same way@file:would.@symbol:<name>— inline a function/class’s full source, up to 3 best matches, e.g.@symbol:budgetContext explain this. Needs a language extension installed for that file’s language.@open— inline every file you currently have open in an editor tab, including background tabs.@problems— inline the current error/warning diagnostics for your open files.@diff— inline your current git diff (staged and unstaged changes combined).@commits— inline the last 10 commits’ metadata (hash, date, author, subject line) — no diffs, just history for context.@terminal:<command>— run a shell command and inline its output, e.g.why did this fail @terminal:npm test. You’ll be asked to confirm before it runs. Must be the last thing in your message — everything after the colon is treated as the command.@url:<address>— fetch a public web page and inline its content (HTML stripped to readable text). Addresses that resolve to your own machine or local network are silently blocked for safety.@search:<text>— inline up to 50 workspace hits for an exact, case-insensitive substring. Single-token only in this version.@repomap— a lightweight, regex-based overview of exported/public symbols across your TypeScript/JavaScript/Python files.@os— one line describing your platform, architecture, and OS release.
Combining mentions
Section titled “Combining mentions”You can combine any of these in one message, e.g.
@diff @problems review my changes. If the context you bring in is large,
xpreiIDE automatically trims it to fit your model’s context window,
prioritizing explicit requests (@file:, @url:, …) over broader/lower-
confidence ones (@codebase search hits).