{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "cryer-star-cli--resume-and-export-agent-sessions",
 "repo": "cryer/star-cli",
 "repo_url": "https://github.com/cryer/star-cli",
 "repo_slug": "cryer-star-cli",
 "title": "Resume a past agent session and export it to Markdown",
 "page_title": "How to resume a past agent session and export it to Markdown with Star CLI",
 "summary": "Reopen a saved session with /resume or star -r, then save it as Markdown with /export.",
 "who": "A developer who paused a multi-day coding task and needs to pick up the earlier context or share a written record.",
 "problem": "Restarting an agent task from scratch loses the context of earlier decisions and tool results.",
 "outcome": "A resumed conversation and a Markdown file that records the session.",
 "steps": [
  "Install the CLI with `npm install -g @cryer/star-cli`.",
  "Start the REPL in the project folder with `star`, work on a task, and exit.",
  "Reopen the saved session with `star -r` or by typing `/resume` inside the REPL.",
  "Type `/export` in the REPL to write the session to a Markdown file."
 ],
 "agent_prompt": "Using the cryer/star-cli repo, run `star -r` in <project-dir>, select the session for <task>, then run `/export`. Report the exported file path and verify that the file opens as Markdown.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README does not say where /export saves its file, so check the output location during your first run.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 20 or newer",
  "pnpm, only if you build from source",
  "An API key for an OpenAI, Anthropic, or OpenAI-compatible provider, set via /connect or config.toml"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/cryer-star-cli/resume-and-export-agent-sessions/",
 "md": "https://dedupedai.com/use-cases/cryer-star-cli/resume-and-export-agent-sessions/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/cryer-star-cli--resume-and-export-agent-sessions.json",
 "api_version": "v1"
}
