The moment I noticed

I run Claude Code and Codex most of the day. One afternoon my Mac got slow, so I opened Activity Monitor.

[fill in: e.g. "There were 11 node processes, 3 Vite servers and 4 MCP servers I didn't remember starting."]

Activity Monitor told me what was running. It couldn't tell me:

  • which agent session started each process,
  • whether that session was still alive, or
  • whether it was safe to kill.

So I did what everyone does: lsof -i :3000, ps aux | grep node, and guessing. Then I realised this is the new normal. Coding agents don't just write code. They run things on your machine, and nobody is keeping track.

The problem is bigger than leftover processes

When I looked closer, my dev machine had become a black box:

  • Dev servers and MCP servers still running after the agent session ended
  • Token spend I couldn't see properly. Claude Code's own /usage stats count many responses more than once, because one API response is written as several log lines with the same message id (there's an open issue (https://github.com/anthropics/claude-code/issues/91775) about it). On one of my sessions: 856 assistant lines, only 406 real responses.
  • Five copies of Node and Python, and no idea which one each project actually uses
  • Gigabytes of node_modules, target/ and caches I was scared to delete, in case something broke
  • MCP servers and CLAUDE.md / AGENTS.md files scattered across configs, some duplicated, some conflicting

Every tool I found covered one slice. I wanted one place that understands the whole machine.

So I built AGASTHY

AGASTHY (https://github.com/HMAKT99/Agasthy) is a free, open-source desktop app (macOS, Linux, Windows preview) that maps your developer machine into a live knowledge graph, then answers questions about it with evidence.

Machine Graph

🤖 See every coding agent, and what it left running

Every Claude Code, Codex, Gemini CLI, Cursor Agent, Aider, Hermes or OpenClaw session shows with its process tree, memory, ports, and the MCP and dev servers it started.

When an agent exits and leaves something running, AGASTHY tells you which session started it and lets you stop it in one reviewed step.

Agents

Stopping processes is careful on purpose:

  • It targets PID + start time, so a reused PID never gets hit.
  • It refuses system processes, other users' processes and itself.
  • It sends SIGTERM first. Force-kill is a separate, confirmed step.
  • It checks that the process actually exited, rather than assuming.

🪙 Token spend, counted correctly

Tokens, requests and estimated cost per day, session, project and model, read from the agents' own local logs (Claude Code, Codex, Copilot CLI, Hermes). Each response is counted once. It reads only the counters, never your prompts. Export to CSV.

Token usage

💥 "What breaks if I remove this?"

Before you brew uninstall anything, AGASTHY simulates it. It shows which Homebrew packages depend on it, which executables go with it, and every project whose runtime would break or fall back to another copy, including the things it can't know.

Impact analysis

🕸️ A map of your whole machine

Repos (branch, uncommitted work, duplicate clones), runtimes (which copy is active, which are shadowed), packages from Homebrew, npm, pnpm, uv, pip and cargo, and AI tools, all linked in one graph.

The Machine Graph shows your agents, the instruction files they read, the MCP servers and providers they use, and what leaves your machine.

💾 Disk cleanup you can undo

It finds rebuildable node_modules, target/, virtualenvs and caches. It only offers folders Git ignores that contain no tracked files. You review a dry run, and items move to a quarantine you can restore from. Docker volumes are never touched.

💬 Ask your machine

"What is using my RAM?", "Free 10 GB safely", "Which repos haven't I touched in 90 days?"

It works with no AI model at all. You can optionally connect Ollama, LM Studio or a cloud model. Even then, the model can only propose changes, and every proposal goes through the same dry-run review.

Your agents can use it too, read-only

AGASTHY ships a read-only MCP server (agasthy mcp) with nine tools, and plugins for Claude Code, Codex and Cursor. Your agent can ask:

"What's still running from my last session?"
"What's on port 3000?"
"How many tokens did I use this week?"

It can't change anything. Agents can look, never touch. Every change stays in the app, behind a review.

/plugin marketplace add HMAKT99/Agasthy # Claude Code

Private by design

  • No account and no telemetry.
  • Everything runs locally.
  • The only automatic network request is an update check, and you can turn it off.
  • An append-only audit log records every action AGASTHY takes, and a privacy page lists exactly which programs it may run.

Try it in one line

curl -fsSL https://raw.githubusercontent.com/HMAKT99/Agasthy/main/install.sh | sh

The script verifies checksums and needs no admin rights. You can also download the DMG, AppImage or Windows installer (https://github.com/HMAKT99/Agasthy/releases/latest).

It's built in Rust (Tauri 2) with a React UI, and released under Apache-2.0.

What I'd love from you

It's early, about a week public. If you run coding agents, try it and tell me:

  1. How many leftovers did it find on your machine?
  2. What should it show next?

👉 https://github.com/HMAKT99/Agasthy: a ⭐ helps more people find it.