@@ -5,6 +5,7 @@ metadata:
55 internal : true
66allowed-tools :
77 - Bash(asta literature find *)
8+ - Bash(asta literature interactive *)
89 - Bash(asta papers *)
910 - TaskOutput
1011 - Bash(jq *)
@@ -17,6 +18,65 @@ Search academic literature for papers relevant to a query. The search will retur
1718This is an advanced search, so the query can be long and complex. You may ask the user
1819questions to clarify the topic and refine the query before running the search.
1920
21+ ## Choosing ` find ` vs ` interactive `
22+
23+ Two entry points are available. Both run the same retrieval pipeline (criteria extraction,
24+ candidate retrieval, re-ranking). The significant difference is what happens around that
25+ pipeline — and the right choice is mostly driven by ** what the session as a whole is about** ,
26+ not by the complexity of any single query:
27+
28+ - ** ` asta literature interactive ` ** — default for literature-focused sessions. Use it when the
29+ ** first interaction** in the session is about literature search or exploration, or when the
30+ ** entire session** is focused on literature. It runs the full Asta paper-finder agent: better
31+ planning for complex or multi-faceted queries (decomposition, iterative search strategies) and
32+ a reasoning / results-verification loop that can re-run or refine the search when the initial
33+ results don't satisfy the criteria. It also maintains conversation state via a ` thread_id ` , so
34+ follow-ups can build on prior results: filtering ("now narrow to surveys from 2023+"),
35+ aggregating ("group by venue"), following relations ("expand on the third paper's citations"),
36+ or iterative refinement.
37+
38+ - ** ` asta literature find ` ** — one attempt, no agent loop. Use it primarily when literature
39+ search is ** a sub-step inside some other multi-step flow** (data analysis, code generation,
40+ a broader research workflow, etc.) where the same flow may issue many unrelated searches and
41+ the latency of the full agent loop is not worth it for each one. Lower quality, much faster.
42+ Don't reach for ` find ` just because a single query "looks simple" — if the session is
43+ literature-centered, prefer ` interactive ` .
44+
45+ ** Continuing a conversation — recommended pattern (` --thread-dir ` ):** for any
46+ multi-turn search session, pick a directory named ` .asta/literature/threads/<YYYY-MM-DD>-<slug>/ `
47+ (date-prefixed slug, matching the convention used by other agents) and pass it
48+ on every turn. The CLI auto-resumes the conversation, writes one artifact per
49+ turn with a ` .NNN ` index suffix, and maintains a ` DIR/index.json ` that records
50+ turn order, queries, narratives, paper counts, and the ` thread_id ` . Use a
51+ meaningful ` -o ` basename per turn — the CLI inserts the turn index for you.
52+
53+ ``` bash
54+ # Turn 1 — picks a thread dir; CLI creates DIR/index.json and DIR/transformer-survey.001.json
55+ asta literature interactive " transformer architecture survey" \
56+ --thread-dir .asta/literature/threads/2026-05-04-transformer-architectures \
57+ -o transformer-survey.json
58+
59+ # Turn 2 — same dir; thread_id auto-resumes from index.json.
60+ # Writes DIR/narrow-2023.002.json and appends a turn entry to DIR/index.json.
61+ asta literature interactive " narrow to 2023+ long-context surveys" \
62+ --thread-dir .asta/literature/threads/2026-05-04-transformer-architectures \
63+ -o narrow-2023.json
64+ ```
65+
66+ Start a fresh conversation when the topic shifts substantially: pick a new
67+ ` --thread-dir ` . Reading the conversation back is straightforward — ` jq ` over
68+ ` DIR/index.json ` for the turn list, then open the per-turn JSON files referenced
69+ by ` turns[].file ` .
70+
71+ Without ` --thread-dir ` , an invocation is a one-shot turn that doesn't continue
72+ any prior conversation. Use that for ad-hoc single queries; for any multi-turn
73+ session, always pass ` --thread-dir ` .
74+
75+ Output deltas vs ` find ` : the ` interactive ` JSON adds ` thread_id ` and ` narrative `
76+ (the agent's terminal response text). It does not currently populate
77+ ` citationContexts ` or ` publicationDate ` per paper; for those, use ` find ` or the
78+ ` asta papers ` commands.
79+
2080## Installation
2181
2282This skill requires the ` asta ` CLI:
0 commit comments