{"id":46869158,"url":"https://github.com/zemse/claudeman","last_synced_at":"2026-03-10T19:33:30.280Z","repository":{"id":341119601,"uuid":"1136515991","full_name":"zemse/claudeman","owner":"zemse","description":"Remote control multiple ClaudeCode sessions using telegram","archived":false,"fork":false,"pushed_at":"2026-02-14T06:34:58.000Z","size":1042,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-28T09:10:55.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/zemse.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-01-17T20:39:11.000Z","updated_at":"2026-02-25T14:55:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zemse/claudeman","commit_stats":null,"previous_names":["zemse/claudeman"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zemse/claudeman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fclaudeman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fclaudeman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fclaudeman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fclaudeman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zemse","download_url":"https://codeload.github.com/zemse/claudeman/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fclaudeman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30350112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-03-10T19:33:29.666Z","updated_at":"2026-03-10T19:33:30.269Z","avatar_url":"https://github.com/zemse.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# claudeman\n\nManage multiple Claude Code sessions using tmux.\n\n## Features\n\n- **Multi-session TUI** - Monitor all Claude sessions in a terminal UI with real-time status updates\n- **Remote control via Telegram** - Control sessions from anywhere via Telegram bot\n- **Claude suggestions** - When Claude provides a suggestion after completing work, it appears as a button in Telegram for instant application\n- **Permission prompts as buttons** - Prompts appear as interactive Telegram buttons showing tool type, command, and description\n- **Multi-session status** - `/status` shows summary with drill-down buttons for multiple sessions, full log for single session\n\n## Install\n\n```bash\nnpm install -g claudeman\n```\n\nRequires: Node.js \u003e= 18, tmux, Claude Code CLI\n\n## Usage\n\n```bash\nclaudeman                      # Open TUI\nclaudeman new \u003cname\u003e           # Create session in current directory\nclaudeman new \u003cname\u003e -c \u003cpath\u003e # Create session at specific path\nclaudeman new \u003cname\u003e --attach  # Create and immediately attach\nclaudeman list                 # List all sessions\nclaudeman attach \u003cname\u003e        # Attach to session\nclaudeman kill \u003cname\u003e          # Kill session\nclaudeman status-json          # Output sessions status as JSON\n```\n\n## TUI (Text User Interface)\n\nLaunch with `claudeman` (no arguments).\n\n### Navigation\n\n- `j` / `↓` - Move down\n- `k` / `↑` - Move up\n- `1-99` - Jump directly to session number (type digits within 1 second)\n- `r` - Refresh session list\n\n### Actions\n\n- `Enter` - Attach to selected session\n- `p` - Toggle preview (shows session output without attaching)\n- `d` - Toggle auto-detach (auto-detach when Claude starts working after you attach)\n- `n` - Toggle desktop notifications (notify when session finishes working)\n- `t` - Toggle Telegram bot (if configured)\n- `q` - Quit\n\n### Status Indicators\n\n- **working** (yellow) - Claude is actively processing\n- **needs attention** (green) - Claude is waiting for input\n\n## Telegram Bot\n\nControl your Claude Code sessions remotely via a Telegram bot. Get notified when a session needs attention, view prompt options as inline buttons, and reply directly from Telegram.\n\n![Telegram Bot Screenshot](docs/telegram-bot.png)\n\n### Setup\n\n1. Create a bot with [@BotFather](https://t.me/BotFather) on Telegram and copy the bot token\n2. Get your chat ID from [@userinfobot](https://t.me/userinfobot)\n3. Run setup:\n\n```bash\nclaudeman tg-setup\n```\n\nThis saves your bot token, chat ID, and a projects directory (used by `/clone`) to `~/.claudeman/telegram.json`.\n\n### Running the bot\n\nThe Telegram bot auto-starts when you open the TUI (`claudeman`) if configured. You can toggle it on/off with `t` in the TUI.\n\nYou can also run it standalone:\n\n```bash\nclaudeman tg\n```\n\nThe bot polls sessions every 2 seconds and sends you a Telegram message whenever a session transitions from working to needing attention.\n\n### Bot commands\n\n| Command            | Description                                                                                                                   |\n| ------------------ | ----------------------------------------------------------------------------------------------------------------------------- |\n| `/start`           | Show help and available commands                                                                                              |\n| `/status`          | Show all sessions with status. Single session: shows full output. Multiple sessions: shows summary with buttons to drill down |\n| `/create \u003cpath\u003e`   | Create a new session at the given path (supports `~` for home directory)                                                      |\n| `/clone \u003cgit_url\u003e` | Clone a repo into your projects directory and create a session                                                                |\n\n### Interacting with sessions\n\n- **Inline buttons** - When a session shows a prompt with options, tap a button to respond\n- **Reply to a message** - Reply to any session message to send text input to that session\n- **Direct messages** - Send a message without replying to send to the most recent session (or one awaiting custom input)\n- **Custom input** - Some prompts offer a \"Type something else\" or \"Other\" option; tap it, then send your text (no need to reply)\n\n### How notifications work\n\nThe bot polls sessions every 2 seconds. When a session transitions from **working** → **needs attention**, you receive a Telegram message with:\n\n- Session name\n- Latest Claude output (solution)\n- Permission prompt buttons (if any)\n\n## Advanced Commands\n\nThese commands are primarily for development and debugging:\n\n```bash\nclaudeman snapshot \u003cname\u003e          # Capture current tmux pane output\nclaudeman snapshot-parse \u003cname\u003e    # Parse and display working status + solution\nclaudeman snapshot-test \u003cname\u003e     # Save snapshot + parsed output to JSON\nclaudeman snapshot-fixture \u003cname\u003e  # Save as test fixture in tests/fixtures/\n```\n\n## Configuration Files\n\nAll configuration is stored in `~/.claudeman/`:\n\n- `sessions.json` - Session metadata (name, cwd, creation time)\n- `telegram.json` - Telegram bot config (token, chatId, projectsDir)\n- `tg.pid` - PID lock file for Telegram bot (prevents multiple instances)\n- `tg-messages.json` - Maps Telegram message IDs to session names (last 500)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemse%2Fclaudeman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzemse%2Fclaudeman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemse%2Fclaudeman/lists"}