{"id":50499763,"url":"https://github.com/daedlock/claude-sentinel.el","last_synced_at":"2026-06-02T10:31:37.599Z","repository":{"id":351389640,"uuid":"1210788770","full_name":"daedlock/claude-sentinel.el","owner":"daedlock","description":"Monitor and manage Claude Code CLI instances in Emacs vterm buffers","archived":false,"fork":false,"pushed_at":"2026-04-14T19:04:03.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T21:09:46.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daedlock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-14T18:57:20.000Z","updated_at":"2026-04-14T19:04:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/daedlock/claude-sentinel.el","commit_stats":null,"previous_names":["daedlock/claude-sentinel.el"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/daedlock/claude-sentinel.el","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedlock%2Fclaude-sentinel.el","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedlock%2Fclaude-sentinel.el/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedlock%2Fclaude-sentinel.el/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedlock%2Fclaude-sentinel.el/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daedlock","download_url":"https://codeload.github.com/daedlock/claude-sentinel.el/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedlock%2Fclaude-sentinel.el/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33818565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-02T10:31:36.831Z","updated_at":"2026-06-02T10:31:37.581Z","avatar_url":"https://github.com/daedlock.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Sentinel\n\n\u003e **Experimental** — This package was built for my personal setup (Doom Emacs + vterm + persp-mode). It works well for me but is not production-ready. Feel free to fork and adjust for your own workflow.\n\nMonitor and manage [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI instances running in Emacs vterm buffers.\n\nClaude Sentinel tracks the state of every Claude Code session across workspaces, providing a dashboard, modeline indicator, tabbed header-line, and desktop notifications — so you always know what your agents are doing.\n\n## Features\n\n### Dashboard (`claude-sentinel-dashboard`)\nA tree-structured buffer grouping Claude instances by workspace.\n\n- Collapsible workspace nodes with instance counts\n- Animated spinner for working instances\n- Duration display since last state change\n- LLM-generated session summaries\n- Jump to any instance with `RET`\n\n**Keybindings:**\n| Key   | Action                    |\n|-------|---------------------------|\n| `RET` | Jump to instance / toggle fold |\n| `TAB` | Toggle workspace fold     |\n| `d`   | Kill instance             |\n| `g`   | Refresh                   |\n| `q`   | Quit                      |\n\n### Modeline (`claude-sentinel-modeline`)\nA pre-cached modeline segment showing live status of all Claude instances.\n\n- `⠂ 2/5` — 2 working out of 5 total\n- `✳ 3` — 3 waiting for input\n- Click to open the dashboard\n\nWorks with `doom-modeline` (as a named segment) and vanilla Emacs.\n\n### Header-line tabs (`claude-sentinel-headerline`)\nTabbed header-line for Claude vterm buffers.\n\n- Shows tabs only when 2+ instances share the same project\n- Click tabs or use `M-]` / `M-[` to switch between sibling instances\n- Auto-switches to sibling when a buffer is killed\n\n### Notifications (`claude-sentinel-notify`)\nDesktop notifications when instances change state.\n\n- Notifies on `waiting` and `dead` states\n- Multi-backend: D-Bus, `notify-send`, `message` fallback\n- Debounced waiting notifications (default 3s) to avoid false alerts during tool calls\n\n## States\n\nClaude Sentinel tracks four states via vterm title changes (OSC sequences):\n\n| State     | Meaning                        |\n|-----------|--------------------------------|\n| `working` | Claude is processing / running tools |\n| `waiting` | Claude is waiting for user input |\n| `shell`   | Shell prompt (Claude not active) |\n| `dead`    | Buffer killed or process exited |\n\n## Installation\n\n### Doom Emacs\n\nAdd to `packages.el`:\n\n```elisp\n(package! claude-sentinel :recipe\n  (:host github :repo \"daedlock/claude-sentinel\"))\n```\n\nAdd to `config.el`:\n\n```elisp\n(use-package! claude-sentinel\n  :config\n  (claude-sentinel-mode 1)\n  (claude-sentinel-dashboard-mode-global 1)\n  (claude-sentinel-headerline-mode 1)\n  (claude-sentinel-notify-mode 1))\n\n;; Add modeline segment (doom-modeline)\n(use-package! claude-sentinel-modeline\n  :after doom-modeline\n  :config\n  (claude-sentinel-modeline-mode 1)\n  (doom-modeline-def-segment claude-sentinel\n    (claude-sentinel-modeline-string))\n  ;; Add to your modeline layout:\n  ;; (doom-modeline-def-modeline 'main\n  ;;   '(... claude-sentinel ...))\n  )\n\n;; Keybindings\n(map! :leader \"c c\" #'claude-sentinel-dashboard)\n```\n\n### Manual\n\nClone this repo and add to your `load-path`:\n\n```elisp\n(add-to-list 'load-path \"/path/to/claude-sentinel\")\n(require 'claude-sentinel)\n(claude-sentinel-mode 1)\n```\n\n## Requirements\n\n- Emacs 28.1+\n- [vterm](https://github.com/akermu/emacs-libvterm)\n- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI\n\n## LLM Summaries\n\nClaude Sentinel can auto-generate short session titles using an LLM via [OpenRouter](https://openrouter.ai/). This requires an API key:\n\n```elisp\n(setq claude-sentinel-openrouter-api-key \"sk-or-...\")\n```\n\nWithout this, instances will show their project name instead of a summary. The default model is Gemini 2.0 Flash (cheap and fast).\n\n## Optional\n\n- **Desktop notifications**: Requires D-Bus or `notify-send` on Linux.\n\n## API\n\n```elisp\n(claude-sentinel-instances)     ; list of all tracked instances\n(claude-sentinel-total-count)   ; total instance count\n(claude-sentinel-working-count) ; working instance count\n(claude-sentinel-waiting-count) ; waiting instance count\n```\n\nEach instance is a struct with fields: `buffer`, `project`, `workspace`, `state`, `state-changed-at`, `title`, `summary`.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaedlock%2Fclaude-sentinel.el","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaedlock%2Fclaude-sentinel.el","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaedlock%2Fclaude-sentinel.el/lists"}