Projects Monitor
See what every Claude Code session is doing across all your VS Code windows, jump to the
one that needs you, open your projects from one list and keep track of the hours worked
on each.

Windows only. Projects Monitor works with local Claude Code sessions on Windows 10
and 11.
Why
When you work on several projects at once, each one has its own VS Code window and its
own Claude Code session. The agent moves on by itself, but it doesn't tell you when
it finishes, when it is still working or when it is waiting for you to approve a
permission. To find out, you have to hop from window to window and look at each
terminal or panel.
That wastes time in both directions:
- Claude sits blocked waiting for an approval and you don't notice until you come
back.
- You finish a task and switch to a window where Claude was still working, or worse,
where it had stopped on a usage limit or an authentication error.
It isn't a problem with Claude Code: it is a lack of overall visibility over
processes that run in parallel, in different windows.
Claude Code exposes hooks: points in the agent's lifecycle that run a command of your
own. Projects Monitor uses them to learn, without changing anything in the agent, when a
turn starts, when it needs a permission, when it finishes and when it fails, and shows
all of it in one place:
- Visibility without switching windows. How many sessions are working, how many need
you and how many are idle, at a glance.
- What it is asking for. Not just "needs you": the actual message or question, so you
can decide whether it is worth interrupting what you are doing.
- Silent blocks caught. Pending permissions, usage limits and API errors, where the
agent just stops and nobody notices.
- Back in one click. A click (or a shortcut) takes you to the session that needs
attention.
- One place for your projects. The list comes from a folder of
.code-workspace
files: save a new workspace and it shows up; delete it and it is gone.
- Hours per project, without timers. Claude's working time and yours are recorded
automatically and add up in a report you can bill from.
- Zero friction for the agent. Monitoring is passive: it doesn't change how Claude
behaves, adds no noticeable latency and can't block a tool.
Features
Six states
Every session is in one of six states:
| State |
Meaning |
What it expects from you |
| Working |
The agent is running a turn |
Nothing, carry on |
| Needs permission |
A tool needs approval |
Approve or deny |
| Needs answer |
The agent asked a question with options, or opened a form |
Answer |
| Idle |
The turn ended and it waits for your next message |
Write when you like |
| Error |
The turn died because of a failure (usage limit, auth, network) |
Check and retry |
| Ended |
The session closed, or its process is gone |
Nothing (it is cleaned up) |
The important difference is between needs you (a permission or a question: a process
is stopped, waiting for you) and idle (all good, nothing running). That is what lets
the list sort by urgency without noise. A session with no events for a long time while
working shows as stale.
Two honest limits:
- "Needs you" covers the cases where the agent stops explicitly (a permission, a
question with options, a form). If Claude ends its turn with a question written in
plain text, the session shows as Idle, with that question visible as its last
message.
- Claude Code doesn't report when you approve a permission, only when the tool finishes.
So that a false alarm doesn't linger, if the request arrived in the window you were
looking at, or you left that window after seeing it, the session shows as probably
answered (yellow bell) and stops counting as "needs you".
Project tree
A view of its own in the activity bar lists your projects, each marked with the most
urgent state of its sessions. Projects keep a fixed alphabetical order, so the list
works as a predictable launcher; the urgency shows in the icons, the status bar and the
quick pick.
- Project catalog. Point
projectsMonitor.workspacesFolder at the folder where you
keep your .code-workspace files and every workspace in it is listed, with or without
sessions. It updates live. Remote workspaces (WSL, SSH, containers) can be listed and
opened too. Without a folder, the view lists only folders with live sessions.
- Other. Sessions in folders outside your workspaces are grouped under Other.
- Open or jump. Click a project to focus the window that has it open, or open it in
a new window. Inline actions open it in a new window or in the current one.
- Session details. Each row shows the state and how long ago it changed; the tooltip
shows the title, model, message and Claude's last answer.
Status bar and quick pick
The status bar shows the counts per state: needs you, error or stale, working and idle.
Click it, or press Ctrl+Alt+M, to open a quick pick with every session sorted by
urgency and jump to any of them.

Notifications

- When a session starts needing you, a compact notification appears with Go,
Snooze and Dismiss. It closes by itself when the block is resolved, or a few
seconds after you see it.
- It shows only once, in the window you are looking at, no matter how many windows are
open. Sessions in the window you are already in aren't notified.
- If no VS Code window is focused (you are in the browser, for example), it goes out as a
Windows notification instead; clicking it takes you to the session.
- Priority projects. Mark the projects that can't wait (client ones, for example)
with Toggle Priority Project: their alerts play a subtle sound, and they also tell
you when Claude finishes a turn. The rest alert silently.
Time tracking
Projects Monitor records how long each project was worked on, from three sources:
| Source |
What it measures |
| Claude |
Time with Claude working on the project, even if you aren't looking |
| Focus |
Time with the project's window focused and in use; it stops after a few minutes without activity |
| Manual |
Work outside VS Code (meetings, calls, the browser): a start/stop timer per project, or an entry with start and end, editable later |
- A union, not a sum. Within a project the sources don't add up: watching Claude work
counts once.
- Truly parallel. Across projects they do overlap: you on one project and Claude on
two others count time on all three.
- Waiting isn't working. While Claude waits for a permission nobody is working; if
you are at the window answering, focus already counts it.
Show Time Report opens a report per project and date range: total, daily bars and a
table, with CSV export and Copy as Image to paste the total and the chart into a
message. The report remembers the last day you reported, so the next one starts the day
after.

Requirements
- Windows 10 or 11.
- VS Code 1.90 or later (desktop).
- Windows PowerShell 5.1 (built into Windows).
- Claude Code: the VS Code extension (
anthropic.claude-code) or the command-line tool.
Tested with Claude Code 2.1.311 to 2.1.332; earlier versions may lack some hook events.
Getting started
- Install Projects Monitor from the VS Code Marketplace (or Open VSX).
- On first start, Projects Monitor offers Install Hooks…. The confirmation dialog
lists exactly what it changes (see below). You can also run Projects Monitor:
Install or Update Hooks from the Command Palette at any time.
- Restart the Claude Code sessions that were already open: they pick up new hooks only
when they start.
- Start a Claude Code session in any window. It shows up in the Projects Monitor view and
in the status bar.
- Optional: run Projects Monitor: Choose Workspaces Folder… to list all your
projects.
If nothing shows up, run Projects Monitor: Check Setup (see
Troubleshooting). Projects Monitor: Get Started opens a
walkthrough with these steps.
What it changes on your machine
Projects Monitor changes another tool's configuration and runs PowerShell from hooks, so
here is everything it touches:
| What |
Where |
Details |
| Claude Code hooks |
%USERPROFILE%\.claude\settings.json |
Adds hooks for 11 Claude Code events. Each one runs powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File <reporter>. They run asynchronously, except the session-end hook, which can delay Claude's exit by at most 5 seconds. Your other hooks are kept, and a backup (settings.json.bak-<timestamp>) is saved before every change |
| Reporter script |
%USERPROFILE%\.claude\projects-monitor\reporter.ps1 |
A copy of the script the hooks run. It is updated automatically when the extension updates |
| Data folder |
%USERPROFILE%\.claude\projects-monitor\ |
One small JSON file per session, shared state between VS Code windows, and the time tracking logs (time\) |
| Terminal environment |
VS Code integrated terminals |
A PROJECTS_MONITOR_WINDOW variable that tells which window a session runs in |
The reporter only writes inside its data folder. It never writes to Claude Code's output,
always exits successfully, and never blocks a tool.
To undo it:
- Projects Monitor: Uninstall Hooks removes only its own hooks from
settings.json
(with a backup).
- Uninstalling the extension also removes the hooks, once VS Code finishes the uninstall
(after a restart).
- The data folder stays, because it holds your time tracking history. Delete
%USERPROFILE%\.claude\projects-monitor\ by hand if you don't need it. Without hooks
the reporter never runs.
Commands
| Command |
What it does |
Show Sessions (Ctrl+Alt+M) |
Quick pick with every session, most urgent first |
| Open Project |
Focus or open a catalog project |
| Open Project in New Window / in Current Window |
Open a catalog project |
| Choose Workspaces Folder… / Reveal Workspaces Folder |
Set or open the folder with your .code-workspace files |
| Install or Update Hooks / Uninstall Hooks |
Add or remove the Claude Code hooks |
| Check Setup |
Diagnose the installation (see Troubleshooting) |
| Get Started |
Open the setup walkthrough |
| Toggle Priority Project |
Mark a project as priority (sound and end-of-turn alerts) |
| Start Timer / Stop Timer |
Manual timer per project |
| Add Time Entry… / Edit Time Entries… |
Add, edit or delete manual time |
| Show Time Report |
Hours per project and date range |
| Clear Ended Sessions / Refresh |
View maintenance |
From the tree, sessions also offer Go to Session, Snooze Notifications and
Remove from List.
Settings
| Setting |
Default |
Description |
projectsMonitor.workspacesFolder |
"" |
Folder with your .code-workspace files (top level only). Accepts ~ and %VAR%. Empty lists only folders with live sessions |
projectsMonitor.notifyOn |
needsPermission, needsAnswer, error |
Which states trigger a notification |
projectsMonitor.toast |
true |
Windows notification when no VS Code window is focused; when off, the alert waits until you come back |
projectsMonitor.priorityProjects |
[] |
Projects whose alerts play a sound, by the name shown in the list |
projectsMonitor.priorityNotifyOnFinish |
true |
Priority projects also alert when Claude finishes a turn |
projectsMonitor.prioritySound |
%WINDIR%\Media\Windows Notify System Generic.wav |
Sound for priority projects; empty for none |
projectsMonitor.snoozeMinutes |
30 |
How long Snooze silences a session |
projectsMonitor.staleMinutes |
60 |
Minutes without events after which a working or blocked session shows as stale |
projectsMonitor.retentionMinutes |
60 |
Minutes an ended session stays in the list |
projectsMonitor.focusTracking |
true |
Track focused time for the time report |
projectsMonitor.focusIdleMinutes |
10 |
Minutes without activity after which focus time stops (it ends at your last activity) |
projectsMonitor.timeRetentionDays |
400 |
Days to keep the automatic time logs; 0 keeps them forever. Manual entries and reports are never deleted |
projectsMonitor.pollInterval |
2000 |
Polling interval in milliseconds, used only if file watching fails |
Privacy
- Nothing leaves your machine. No network calls, no telemetry.
- Your prompts are never stored, not in the session files, the time logs or the debug
log.
- What is stored: per session, the project folder, state, model, title, the tool and
message of a pending request, and the first 500 characters of Claude's last answer (to
show it in the tree). Time logs store only states, times, folders and window IDs.
- The debug log, when you turn it on, records event types and error types, never content.
Troubleshooting
Run Check Setup first. Projects Monitor: Check Setup writes a report to the
Projects Monitor output channel: Claude Code found, the hooks in settings.json, the
reporter copy, the PowerShell Execution Policy and language mode, a live test of the
reporter and the time of the last event. Your user folder is shown as ~, so you can
paste the report into an issue.
No sessions in the view.
- Sessions that were open before installing the hooks only show up after a restart.
- In Claude Code,
/hooks lists the hooks it has loaded. Check that disableAllHooks
isn't set in your Claude Code settings.
Execution Policy. The hooks run PowerShell with -ExecutionPolicy Bypass, which wins
over the local policy. It can't win over a policy set by Group Policy (MachinePolicy or
UserPolicy set to Restricted or AllSigned); Check Setup reports it, and only an
administrator can change it.
Antivirus or application control. Some security tools block PowerShell scripts, or
run PowerShell in Constrained Language Mode (AppLocker, WDAC). Check Setup's live test
catches both. Allowing %USERPROFILE%\.claude\projects-monitor\reporter.ps1 usually fixes
it.
No Windows notifications. Check that Windows notifications are on for Visual Studio
Code and that Do Not Disturb is off. While no notification can be shown, blocks still
appear in the tree and the status bar.
Debug log. To see what the reporter receives:
Set the environment variable PROJECTS_MONITOR_DEBUG=1 for Claude Code, for example
in %USERPROFILE%\.claude\settings.json:
{ "env": { "PROJECTS_MONITOR_DEBUG": "1" } }
Restart the Claude Code session.
The log is at %USERPROFILE%\.claude\projects-monitor\logs\reporter.log. It records
event types and errors, never prompts or messages.
Remove the variable when you are done.
Reporting a bug. Open an issue at
github.com/theviderlab/projects-monitor/issues
with the Check Setup report and your Claude Code version. Report security problems
privately, as SECURITY.md explains.
Compatibility with Claude Code
Projects Monitor depends on Claude Code's hook events and their fields. It supports the
current version of Claude Code; when Claude Code changes its hooks, a new version of the
extension follows, and on update it offers Update Hooks. If a future Claude Code
version renames an event, the affected state stops updating (for example, a session
stays Working) until the extension is updated; Claude Code itself is never affected.
Contributing
See CONTRIBUTING.md. The design is documented in
docs/architecture.md and the decisions behind it in
docs/decisions.md.
Disclaimer
Projects Monitor is an independent project. It is not affiliated with, endorsed by or
sponsored by Anthropic. Claude and Claude Code are trademarks of Anthropic, PBC.
License
MIT