From 771e8097f6c78d8222ea97ce5e8ee760cd3634b4 Mon Sep 17 00:00:00 2001 From: emilieschario <14057155+emilieschario@users.noreply.github.com> Date: Wed, 29 Jul 2026 15:53:55 +0000 Subject: [PATCH] docs(kilo-docs): add documentation for referencing past chats via @ mentions Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com> --- .../pages/code-with-ai/agents/context-mentions.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/kilo-docs/pages/code-with-ai/agents/context-mentions.md b/packages/kilo-docs/pages/code-with-ai/agents/context-mentions.md index 599917b6d2a6..7978ddd868fa 100644 --- a/packages/kilo-docs/pages/code-with-ai/agents/context-mentions.md +++ b/packages/kilo-docs/pages/code-with-ai/agents/context-mentions.md @@ -25,9 +25,16 @@ Type `@` in the chat input to get autocomplete suggestions. You can mention: | **File** | Attach a file's contents to your message | `@src/utils.ts` | | **Terminal** | Include your active VS Code terminal output | `@terminal` | | **Git Changes** | Attach uncommitted working-tree diffs and new files | `@git-changes` | +| **Past chats** | Attach a previous session's transcript as context | `@` → **Past chats** → pick a session | Selecting a suggestion inserts the mention and highlights it in the input. File contents, terminal output, and git changes are attached as context when you send the message. +### Referencing Past Chats + +Choosing **Past chats** from the `@` menu opens a searchable picker of your previous sessions in the current workspace, ordered by recency. Selecting a session inserts a highlighted mention token; when you send the message, that session's current transcript is attached as context so the agent can build on the earlier conversation. Clicking the mention token opens the referenced session. + +Very long transcripts are truncated, keeping the beginning and end, so a single mention cannot fill the context window. + ### Drag and Drop You can also add file mentions by dragging and dropping: @@ -70,6 +77,7 @@ This means the agent can explore your entire project as needed, rather than bein | **Mention files when helpful** | If you know the exact file, mention its path to save the agent a search step | | **Keep editor tabs relevant** | Open tabs are passed as context, so keep relevant files open | | **Trust the agent's tools** | The agent can search, read, and explore your codebase — let it do the discovery work | +| **Reference a past chat** | Type `@` and choose **Past chats** to open a searchable picker of previous sessions in the current workspace. Selecting a session attaches its current transcript as context when you send the message. | {% /tab %} {% tab label="CLI" %}