{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "nixfred-infomarchy--clean-up-stale-agent-sessions",
 "repo": "nixfred/infomarchy",
 "repo_url": "https://github.com/nixfred/infomarchy",
 "repo_slug": "nixfred-infomarchy",
 "title": "Find and stop agent sessions nobody is using",
 "page_title": "How to find and stop agent sessions nobody is using with Infomarchy",
 "summary": "Spot idle agent sessions tagged STALE on the desktop and stop them with a confirmed right-click.",
 "who": "A developer whose machine has old Claude background sessions or Cursor workers left running for days after the work ended.",
 "problem": "Idle agent processes keep using memory and clutter the desk, and it is easy to forget they are still running.",
 "outcome": "Stale sessions are marked on their cards, and you stop them deliberately with a graceful stop or a process end.",
 "steps": [
  "Look for cards tagged STALE with an idle time, such as idle 6h or more.",
  "Right-click the stale card.",
  "For a background Claude session, choose STOP SESSION, which uses `claude stop <session-id>` and keeps the conversation resumable. (inferred, check the README)",
  "For any other stale session, choose END PROCESS, which sends SIGTERM after the helper confirms the pid.",
  "Click the option a second time within four seconds to confirm. Nothing is stopped automatically."
 ],
 "agent_prompt": "In the infomarchy repo, identify one card tagged STALE on this machine and report its provider, pid and idle time without stopping it. Expected output: a short report with those three fields. Verify that the pid matches a live process before any stop action is taken by a person.",
 "agents": [
  "claude-code",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "END PROCESS sends SIGTERM to a process, so check the card before confirming, since the README says stopping is never automatic but the action itself cannot be undone from the desktop.",
 "category": "Personal productivity",
 "tags": [
  "Personal productivity"
 ],
 "lang": "typescript",
 "requirements": [
  "An Omarchy desktop",
  "The Infomarchy plugin installed by following the install instructions in the repo README",
  "At least one AI agent running locally, such as Claude Code, Codex, Cursor or Ollama",
  "Keyboard shortcuts configured as described in the README, for SUPER + I"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nixfred-infomarchy/clean-up-stale-agent-sessions/",
 "md": "https://dedupedai.com/use-cases/nixfred-infomarchy/clean-up-stale-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/nixfred-infomarchy--clean-up-stale-agent-sessions.json",
 "api_version": "v1"
}
