{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "wusterbuilds-habitat-cli--diagnose-broken-agent-session-capture",
 "repo": "wusterbuilds/habitat-cli",
 "repo_url": "https://github.com/wusterbuilds/habitat-cli",
 "repo_slug": "wusterbuilds-habitat-cli",
 "title": "Find out why agent sessions stopped capturing",
 "page_title": "How to find out why agent sessions stopped capturing with Habitat CLI",
 "summary": "Use preflight, status, and doctor to diagnose and repair local capture.",
 "who": "An engineer who notices recent agent sessions are missing from HT.",
 "problem": "Capture can stop silently, leaving gaps in the session record.",
 "outcome": "A clear health picture and repair guidance for the capture problem.",
 "steps": [
  "Run `ht preflight --json` for a read-only environment inspection.",
  "Run `ht status` for concise capture and delivery health.",
  "Run `ht doctor` for detailed diagnostics and repair guidance.",
  "Run `ht sync` to reconcile provider history after fixing the issue."
 ],
 "agent_prompt": "In the habitat-cli repo, run `ht preflight --json` and `ht doctor`, then summarize the findings for <PROJECT_PATH>. Expected output: a short list of problems and suggested repairs. Verify that you have not changed hooks or the service without asking the user first.",
 "agents": [
  "codex",
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README says a real Codex hook must be reviewed and trusted by the user, so an agent cannot complete that step for them.",
 "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": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/wusterbuilds-habitat-cli/diagnose-broken-agent-session-capture/",
 "md": "https://dedupedai.com/use-cases/wusterbuilds-habitat-cli/diagnose-broken-agent-session-capture/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--diagnose-broken-agent-session-capture.json",
 "api_version": "v1"
}
