{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "wusterbuilds-habitat-cli--search-past-agent-sessions-locally",
 "repo": "wusterbuilds/habitat-cli",
 "repo_url": "https://github.com/wusterbuilds/habitat-cli",
 "repo_slug": "wusterbuilds-habitat-cli",
 "title": "Find past coding agent sessions by keyword",
 "page_title": "How to find past coding agent sessions by keyword with Habitat CLI",
 "summary": "Search your captured Codex and Claude Code sessions on your own machine.",
 "who": "A developer who remembers an agent solved a problem last month but cannot find the session.",
 "problem": "Past agent conversations are scattered across provider logs and hard to search by topic.",
 "outcome": "A list of matching local sessions you can open and review, with no account or network needed.",
 "steps": [
  "Run `curl -fsSL https://app.use-habitat.com/install.sh | sh` to install the latest checksum-verified release.",
  "Run `ht install` to install hooks and the local background service.",
  "Run `ht sync` to reconcile provider history.",
  "Run `ht sessions search \"migration\"` and replace the query with your own keyword.",
  "Run `ht sessions show SESSION_ID` with an ID from the results to inspect one session."
 ],
 "agent_prompt": "In the habitat-cli repo, install HT locally, run `ht sync`, then run `ht sessions search \"<keyword>\"`. Expected output: a list of local sessions that match the keyword. Verify that each result includes a session ID you can pass to `ht sessions show`.",
 "agents": [
  "codex",
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "HT is under active development and CLI changes are expected before 1.0, so re-check `ht help` after upgrades.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "macOS (Apple silicon or Intel) or Linux (Arm64 or x64); Windows is not currently supported",
  "Codex or Claude Code sessions to capture",
  "Terminal access and permission to install a local background service and provider hooks",
  "Optional: a Habitat Cloud workspace or a self-hosted Habitat-compatible endpoint, only if you want team sharing"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Captured sessions can contain pasted secrets or project content, so review the privacy model before capturing sensitive projects."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/wusterbuilds-habitat-cli/search-past-agent-sessions-locally/",
 "md": "https://dedupedai.com/use-cases/wusterbuilds-habitat-cli/search-past-agent-sessions-locally/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/wusterbuilds-habitat-cli--search-past-agent-sessions-locally.json",
 "api_version": "v1"
}
