← All help topics

Safety

Why an item is locked

Every reason AgentTidy refuses to clean something, and what to do.

A locked item shows its reason under the title and in the details panel. The common ones:

  • Active session working in my-app: an agent, terminal or dev server is working in that project. Let it finish or quit it, then scan again.
  • Cursor is running — quit it before cleaning this item: the app that owns these files is open. Quit it, then scan again.
  • Contains uncommitted git changes: a worktree has work that isn’t committed. Commit or discard it first.
  • Modified in the last hour (or 24 hours): it’s still being written to. It’s offered again later.
  • Contains a protected file: sign-in, key or config files are inside. AgentTidy never removes these.
  • Couldn’t check: AgentTidy couldn’t confirm it’s safe, so it stays untouched.

Active & Protected in the sidebar shows what’s running right now and everything it locks.