ccmon
Terminal monitor for Claude Code sessions and subagents in real time. Run ccmon to watch your agents.
Features
- Real-time monitoring — watch subagent status, output, and activity as they run
- Session filtering — view agents from the current project, a specific project, or all projects
- Status tracking — running, completed, interrupted, or unknown states with visual indicators
- Auto-refresh — updates every 0.5 seconds without manual intervention
- Stale expiry — completed/interrupted agents are automatically removed after 10 minutes of inactivity
- Manager agent visibility — shows which specialised agent is currently running in manager-type agents
Requirements
- Python 3.11+
Install
Homebrew (macOS, recommended)
brew install einerlei/tap/ccmon
pipx (cross-platform)
pipx install ccmon
pip
pip install ccmon
Development setup
git clone https://github.com/einerlei/ccmon.git
cd ccmon
uv sync
uv run ccmon
Usage
ccmon
ccmon --project /path/to/project
ccmon --all
Key bindings
| Key | Action |
|---|---|
r |
Manual refresh |
q |
Quit |
Architecture
The monitor is a single-file Python application using the Textual TUI framework.
Data sources:
- Sessions:
~/.claude/sessions/*.json— contains PID, working directory, and session ID - Subagents:
~/.claude/projects/{project-dir}/{session-id}/subagents/— per-agent metadata and message logs
How it works:
- Loads active sessions from the sessions directory, filtering by project if specified
- For each live session, discovers subagents and reads their
.meta.json(metadata) and.jsonl(messages) - Infers agent status by analysing message history and checking process liveness
- Expires completed/interrupted agents after 10 minutes without activity
- Renders a two-column grid of agent panes with scrolling output
- Refreshes every 0.5 seconds to keep the view current
Development
# Install with dev dependencies
uv sync
# Run tests
uv run pytest -q
# Lint and format
uv run ruff check
uv run ruff format --check
# Run the monitor
ccmon
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -am 'Add feature') - Push to the branch (
git push origin feature/my-feature) - Open a Pull Request
All code must pass ruff check and ruff format --check. Add tests for new functionality.
Changelog
See CHANGELOG.md
Metadata
Release files for ccmon 0.5.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ccmon-0.5.7.tar.gz | 40.7 kB | With provenance | Details for ccmon-0.5.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ccmon-0.5.7-py3-none-any.whl | Python 3 | none | any | Details for ccmon-0.5.7-py3-none-any.whl |
Total release size: 49.3 kB
Release files / ccmon-0.5.7.tar.gz
| Download URL | ccmon-0.5.7.tar.gz |
|---|---|
| Size | 40.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa53dd95138e18962fecf71454965e7666f66c38a0c14e964c079a7e7a552aee
|
|
BLAKE2b-256 checksum How to use checksums |
9f25f8976c4890b677df13229dcd3889ab459b5d36b7fd48f4da7140fd6f0795
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 20, 2026.
Transparency logRelease files / ccmon-0.5.7-py3-none-any.whl
| Download URL | ccmon-0.5.7-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
403a7f9d1606305f5d1280b42173bca17a042d0881631df33e29a1a5a388fd90
|
|
BLAKE2b-256 checksum How to use checksums |
95e4c2e0fcf7bb2f5c3449b29395b7ec2d99a6ed5df13791242023760210f86b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 20, 2026.
Transparency logSecurity for ccmon 0.5.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ccmon-0.5.7.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.