Conversation Tracing · Chat Finder
Find past records in the locally available AI conversation history that are relevant to the current question, and return two things that can be used directly: ranked hits with stable identifiers (Project / Session / Message), and an original passage surrounding a specific hit. Index construction and repair are handled by
.
Triggers
Activate when
- “How did I resolve this error last time?”
- “Find the session where we discussed the conversation recovery approach.”
- Help me recall what was decided about this module in an earlier session.
Do not activate when
- The user wants to “rebuild the index” or asks whether “the index is broken” — hand this off to .
- The user wants to find a symbol or file in the current codebase — use regular grep and file search. That is code retrieval, not conversation memory retrieval.
User Profile (cross-session)
declares
. At the start of every run, read the shared user, brand, workspace, and preferences, as well as this Skill's
namespace.
There are two records worth persisting:
(the path to a locally available Ataru executable) and
(the user's preferred retrieval granularity). When the user directly provides such a value, write it back using
scripts/profile_store.py record
and report the storage path. One-off inputs such as search terms and project IDs are not written to the Profile. See the full contract in
references/user-profile.md
.
Skill Group Composition
See
references/skill-composition.md
. This source is a standalone Single Skill, with only an artifact-level handoff (index status) between it and
.
Workflow (MANDATORY)
You MUST follow these steps in order.
Step 0: Resolve the binary, then confirm the index
bash
export SKILL_DIR="$HOME/.claude/skills/lov-search-chat"
python3 "$SKILL_DIR/scripts/ataru_recall.py" index-status
The resolution order is
→
→ PATH → installed App bundle → local dev build found by walking upward from the current directory. Each candidate is first run once with
. Versions older than 0.41.3 do not recognize the index subcommand; they treat it as a desktop launch argument,
open a window, and never return.
verifies the index itself before running. When the index is not ready, it fails with
or
and points to
. It
does not return an empty result set—“not found” and “the index has not been built” must be distinguishable answers. This Skill does not build the index for the user.
Being able to search does not mean the index is keeping up with disk state:
only reports the totals stored in the manifest, so an index that is months out of date still reports
. Therefore, both
and
compare the manifest with the session files on disk one by one, following Ataru's own rules, and report
,
(new or changed sessions that have not yet been indexed), and
(sessions present in the index but deleted from disk). When
is true,
still returns hits, and the first item in
is
: in this case, zero hits
cannot be treated as “not found.” First use
's
to rebuild the index and retry, or clearly tell the user that the index is stale. This Skill emits a warning rather than an error because active conversations—including the one initiating the search—are continually being appended to. A small number of pending sessions is normal, and an error would make retrieval almost permanently unusable.
Step 1: Choose the level before querying
| level | What one hit represents | When to use |
|---|
| A single message | Default. Use it to pinpoint an exact statement, error, or decision. |
| One user request through its answer | Use it to view the complete context of an exchange. |
| An entire conversation | Use it to find “which session discussed this topic.” |
| A project | Use it to determine which project the topic primarily belongs to. |
bash
python3 "$SKILL_DIR/scripts/ataru_recall.py" search "会话恢复方案" --level turn --limit 10
When restricting the search by project, use the equals form because the project ID itself begins with a hyphen:
bash
python3 "$SKILL_DIR/scripts/ataru_recall.py" search "索引没有更新" \
--level session --project-id=-Users-me-projects-app
The
/
/
/
values in a hit are stable identifiers and can be passed directly to the next step.
is the manifest write time, meaning the moment when the index was last built.
is truncated to 600 characters by default; add
for the complete CLI response, which also includes the freshness fields and warnings described above.
CLI retrieval only supports keyword mode: both
and
will be
, and
is usually false. Do not promise users that the CLI can provide semantic or hybrid ranking, and do not conclude that something “never appeared in the history” merely because a keyword search missed; try synonyms or a different level.
On a real corpus of tens of thousands of sessions, a single turn-level search takes tens of seconds. Do not lower
to “fail fast.”
Step 2: Read the original transcript around a hit
Ranked hits are enough to locate a passage, but not enough to make a judgment. Once you have candidates, read an original passage around one:
bash
python3 "$SKILL_DIR/scripts/ataru_recall.py" read \
--project-id=-Users-me-projects-app \
--session-id=<session uuid> \
--around=<message uuid or line number> \
--window 6
is the number of messages retained on each side, and
controls the truncation of each message body (default: 2000). If
is omitted, the final
messages are returned. If the supplied
cannot be found in that session, the script reports
rather than silently returning a different location.
Step 3: Answer with citations, not with impressions
Answers must include enough information to trace them back to the source: the conversation title, timestamp, and
when necessary. If a body was truncated, say so. Only state that there was no match if retrieval returned no hits and
is false, and explain which terms and level were used. If
is true, say, “The index is stale, so this search did not find a match,” rather than “There is no match.” Do not fill gaps in the historical record with speculation from the current context.
Dependencies
- Python 3.8+ (standard library only)
- Ataru 0.41.3 or later installed locally, with a ready index
General Feedback Loop
When a user provides revision feedback during a Skill-driven task, you MUST perform the following steps before continuing the current deliverable:
- Determine whether the feedback is (this task only) or (usable across tasks).
- For feedback, modify only the current task, not the Skill.
- For feedback, determine the scope first: for domain rules, update the corresponding canonical Skill; for rules that apply to all Skills, update the shared specification first.
- After completing rule updates, versioning, linting, and distribution verification, apply the change to the current task.
- A change invalidates earlier “confirm,” “continue,” and “ship” approvals. After modifying and reading back the current deliverable, you must stop and wait for the user's next instruction; do not automatically proceed to publishing, committing, or any other external write.