Repository navigation
Slash commands and mentions
The Eventide Quill co-writer chat input has two deterministic layers for steering what the model reads: user-defined slash commands (reusable prompt snippets) and @-file mentions (explicit vault files). Both are pure text mechanics — no AI calls, and nothing leaves your machine until you actually send the message. They live in the chat input on the Co-writer tab, in the Review tab's discuss chat (which hosts the same panel), and in every mode except Fulfill, whose input is a no-op by design.
Both dropdowns behave identically: arrow keys move the selection, Enter or Tab commits (Enter is caught before it can send the message), and the list is capped at a dozen rows so it stays readable.
Slash commands are saved snippets you define once and reuse. Configure them under Settings → Lorebook → "Slash commands". Each command has:
- Name — the trigger key, kebab-case only: lowercase letters, digits, and hyphens, starting with a letter, up to 40 characters. Names must be unique across commands; the settings editor validates both rules and reverts an invalid entry with a Notice explaining why.
- Description (optional) — shown under the name in the picker.
- Body — the text inserted into the input. Multi-line.
Typing / at the start of a line opens the picker — a slash mid-prose ("he/she") never triggers it. A bare / lists every command alphabetically; keep typing to filter. Any substring of the name matches, ranked exact match first, then earliest position, then alphabetically. Each row shows the /name with the matched run highlighted, plus the description underneath when one is set. Choosing a command replaces the /query with the body at that spot and leaves the text fully editable before you send — the cursor lands at the end of the inserted body so you can append specifics or trim.
The picker dismisses on Escape, a click outside, leaving the input, or any character that can't be part of a name (whitespace, uppercase, punctuation). Commands whose names don't pass validation — an unnamed draft you just added, say — are skipped by the picker rather than shown broken.
With an empty command list (the default) the picker never appears. There is deliberately no separate enable toggle: defining a command is what enables the picker, which keeps the setting surface single-sourced.
Commands are stored in data.json with the rest of your settings — they travel in a Portability backup and are vault-local otherwise.
Typing @ in the chat input opens a dropdown of vault Markdown files matching the query as you type, each row showing the full vault path with the matched part highlighted. Choosing one inserts the quoted form — @"Act 1 Plot.md" — so paths containing spaces survive intact; a bare @path typed by hand also resolves, greedily matching across spaces until it lands on a real file. Two guards keep the dropdown from popping up in prose: a space in the query closes it, and a query shaped like an email address (a dot, no slash) is never treated as a mention.
Mentions are resolved per message, at send time: each mentioned file is passed explicitly as context for that message, so every reference lands deterministically — the model cannot fail to see a file you named. The @ marker is stripped and the path kept inline in your visible text; an @ that doesn't resolve to any file is left untouched. Every successfully resolved mention is also promoted to the persistent context list (below) for reuse on later turns.
The ± button ("Add file to context") beside the chat input opens a picker of vault Markdown files and embeddable folders — any folder with an embedding cache, added either as top-K retrieval (the most relevant chunks) or as a full embed (every chunk). Selected items render as pills above the input, in insertion order, each with a token estimate and an × to remove. Folder pills are estimated at send time, when their chunks are actually resolved; file pills estimate immediately. The pill total feeds the token indicator, whose budget math is explained in Context management.
The distinction worth internalizing:
- Explicit context is deterministic. Mentions and context pills are resolved and attached to the request every turn — if it's on the list, the model reads it, within the window budget.
- Auto-context is heuristic. The context engine's automatic vault scan, lore retrieval, and the memory index are selected by relevance and can vary turn to turn.
When you'd rather have the model find things itself mid-conversation — "where does this character appear?" — that's the manuscript_mentions / vault_lookup tool family instead. The chat that hosts all of this, and how the tools work, is covered in Co-writer and tools.