kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

[FEATURE]: Ability to @-mention past chats/sessions as inline file context for a session

Open ehudc opened this issue 4 months ago • 1 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

What / motivation

Migrating from Cursor, a feature there allows typing @Past Chats in the chat field of a session to open a searchable list of previous sessions; picking one references it inline like a file. It works because each past chat is persisted to disk as a transcript, so referencing is just attaching that saved conversation as context — the same plumbing as an @file mention, pointed at a session.

Kilo already has the building blocks: it persists every session (Show History, /sessions, the on-disk store) and has an @-mention system (@file, @folder, @symbol, @terminal, @url, @git-changes, @agent). The gap is a mention type for sessions.

Why resume/fork doesn't cover it

Resuming or forking a session reopens its entire context window, carrying the whole accumulated message history and possible context bloat (fork carries it up to the chosen message). @Past Chats surfaces a past conversation as a discrete reference inside your current, clean chat, pulling in only what you want without loading that session's full token weight.

Proposed

Add a @Past Chats (@session) mention that opens a searchable session picker and injects the selected session's transcript as context in the current chat, like an @file reference. The resolved mention should open/preview that session the way @file opens a file.

ehudc avatar Jul 20 '26 21:07 ehudc

@ehudc thanks for the suggestion. It's a pretty good one. We will ship it.

marius-kilocode avatar Jul 22 '26 11:07 marius-kilocode