Repository navigation
feat(resume): ask Claude to find a session (S, agentctl -p) — 0.13.0 - #14
Merged
Merged
Conversation
Describe a session from memory ("the one where we deployed the WAF last
week") and Claude picks the matches from a metadata catalog (name, title,
cwd, ClaudWork folder, labels, note, first prompt, cached recap). Results
list like full-text search hits (enter resumes, p peeks); follow-ups keep
the same conversation, tab flips between the ask box and the results.
- core/find.ts: catalog + history -> isolated `claude -p --json-schema`
(no tools, plugins, MCP, hooks or saved transcript; haiku, ~10 s;
AGENTCTL_FIND_MODEL overrides). Ids validated against known sessions,
control characters stripped from model text.
- `agentctl -p "<question>"` opens Resume already asking; piped stdout
prints the matches. Root options are now positional so `resume -p
<profile>` keeps working.
- spawnRun takes cwd + abort signal; listSessions skips the finder dir.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Son Resume opens an ask box: describe the session from memory ("the one where we deployed the WAF last week"). Claude picks the matches from session metadata (name, original title, cwd, ClaudWork folder, labels, note, first prompt, cached recap); they list like full-text search hits (↵resume,ppeek). Follow-ups continue the same conversation;⇥flips between the ask box and the results.agentctl -p "<question>"opens Resume already asking; with stdout piped it prints the matches (exit 1 when none).claude -p --json-schemawith no tools, plugins, MCP servers, hooks or saved transcript, in an empty~/.config/agentctl/find/(haiku, ~10 s;AGENTCTL_FIND_MODELoverrides). Without isolation one call loaded the whole user setup ($0.75 / 32 s vs $0.0003 / 3 s).src/core/find.ts(catalog, output parsing with id validation + control-char stripping, DI'd spawn),spawnRuntakescwd+ abortsignal,SessionRecord.firstPrompt,listSessionsskips the finder's project dir.resume <id> -p <profile>keeps working next to root-p.tests/core/find.test.ts, TUI smoke tests (ask → resume, follow-up history, typing during a late answer, Esc ladder, 30-row fit), CLI-pwith a fake claude,resume -pregression.🤖 Generated with Claude Code
https://claude.ai/code/session_014uzkEWLKvSif6FeM2LZdnQ