{"id":50719623,"url":"https://github.com/tomplex/periscope","last_synced_at":"2026-06-09T22:30:39.626Z","repository":{"id":357718023,"uuid":"1238085761","full_name":"tomplex/periscope","owner":"tomplex","description":"Live browser dashboard over tmux sessions — every window becomes a card, modal opens a live xterm.js terminal, parses Claude Code pane status (branch / PR / CI / spinner / recap).","archived":false,"fork":false,"pushed_at":"2026-06-03T13:12:38.000Z","size":8177,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T15:08:26.822Z","etag":null,"topics":["claude-code","tmux"],"latest_commit_sha":null,"homepage":"","language":"Python","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/tomplex.png","metadata":{"files":{"readme":"README.md","changelog":"history/README.md","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-05-13T19:54:20.000Z","updated_at":"2026-06-03T13:14:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tomplex/periscope","commit_stats":null,"previous_names":["tomplex/periscope"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomplex/periscope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomplex%2Fperiscope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomplex%2Fperiscope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomplex%2Fperiscope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomplex%2Fperiscope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomplex","download_url":"https://codeload.github.com/tomplex/periscope/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomplex%2Fperiscope/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34129072,"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-09T02:00:06.510Z","response_time":63,"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":["claude-code","tmux"],"created_at":"2026-06-09T22:30:38.077Z","updated_at":"2026-06-09T22:30:39.617Z","avatar_url":"https://github.com/tomplex.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# periscope\n\nA live dashboard over your tmux sessions. Every window becomes a card; click\ninto a card to open a full live terminal (xterm.js + tmux `pipe-pane` over\nWebSocket), send keystrokes, focus the window in tmux, or rename it. Parses\nClaude Code pane status — branch, PR, CI state, recap, spinner — and surfaces\nwhat's pending input.\n\nBuilt for the \"I have 30 tmux windows across 5 sessions with various Claude\nCode agents running, and I want a single pane of glass\" workflow.\n\n## Requirements\n\n- `tmux` (any reasonably modern version)\n- [`uv`](https://docs.astral.sh/uv/) for running the single-file script\n- Node 20+ + `npm` — the frontend is a Vite-built bundle (`static/dist/`)\n- A modern browser (uses WebSockets)\n- Optional: `ANTHROPIC_API_KEY` for the ✨ auto-rename feature\n\n## Run\n\n```sh\nnpm install \u0026\u0026 npm run build   # one-time / whenever static/src/ changes\nuv run server.py\n```\n\nOpen \u003chttp://127.0.0.1:8765/\u003e. Polls every 3s; the modal opens a live\nWebSocket bridge to the selected pane.\n\nFor the always-on / launchd-managed setup and the prod/dev port split,\nsee [CLAUDE.md → Development workflow](./CLAUDE.md#development-workflow-prod--dev-split)\nand `bin/periscope`.\n\n### Frontend HMR (optional)\n\nFor hot-reload while editing `static/app.js` or `static/styles.css`:\n\n```sh\nnpm install        # one-time\nnpm run dev        # then visit http://127.0.0.1:5174/\n```\n\n`npm run dev` runs the FastAPI server **and** Vite together via\n`concurrently`; ctrl+c stops both. Vite proxies `/api/*` and `/ws/*` to\nFastAPI, so only one URL matters in the browser. There's no build step —\nproduction still loads `static/` as-is from FastAPI on :8765.\n\n## Native app (macOS)\n\nPeriscope can run as a native `.app` — its own Dock icon and Cmd-Tab\nentry instead of a browser tab. The app is a thin [Tauri](https://tauri.app)\nshell that loads the dashboard from `http://127.0.0.1:8765`, so the\nserver still has to be running (`uv run server.py`, or the launchd\nservice via `bin/periscope install`).\n\nDownload the latest `.dmg` from\n[Releases](https://github.com/tomplex/periscope/releases), or build it\nfrom source:\n\n```sh\ncd src-tauri\ncargo tauri build        # needs the Rust toolchain + `cargo tauri`\nopen target/release/bundle/macos/Periscope.app\n```\n\nRelease `.dmg`s are **unsigned**, so Gatekeeper blocks them on first\nlaunch. After dragging Periscope.app into /Applications:\n\n```sh\nxattr -dr com.apple.quarantine /Applications/Periscope.app\n```\n\n## Auto-rename (optional)\n\nThe ✨ button on each session header asks Haiku 4.5 to suggest fresh,\ndescriptive names for every window in the session based on current pane\ncontent. Requires an Anthropic API key:\n\n```sh\ncp .env.example .env\n# then edit .env and paste your key\n```\n\n## Channels (Claude push/reply)\n\nPeriscope can push messages into the Claude Code sessions it spawns and\nsurface Claude's replies in its UI. This uses Claude Code's\n[channels](https://code.claude.com/docs/en/channels) feature, currently\nin research preview.\n\n### One-time setup\n\nClaude Code keeps user-level MCP servers under the `mcpServers` key in\n`~/.claude.json`. Merge the periscope entry in (don't overwrite the\nfile — it holds lots of other Claude Code state):\n\n```sh\njq '.mcpServers.periscope = {\n  \"command\": \"uv\",\n  \"args\": [\"run\", \"--script\", \"/ABSOLUTE/PATH/TO/periscope/channel_shim.py\"]\n}' ~/.claude.json \u003e ~/.claude.json.tmp \u0026\u0026 mv ~/.claude.json.tmp ~/.claude.json\n```\n\nReplace `/ABSOLUTE/PATH/TO/periscope/` with your local checkout path.\nAfter this, restart any running `claude` sessions you want channels in\n(it's read at invocation time) or spawn fresh ones via periscope's\n`+ claude` button.\n\n### How it works\n\nWhen you click `+ claude` in periscope, the spawned command is\n`claude --dangerously-load-development-channels server:periscope`. Claude\nlaunches `channel_shim.py` as a stdio child. The shim proxies MCP\nmessages over a unix socket (`/tmp/periscope-mcp.sock`) to periscope's\nin-process MCP server, and reconnects transparently across periscope\nrestarts.\n\nThe `--dangerously-load-development-channels` flag is required because\nchannels are in research preview — bare `--channels` only resolves\nallowlisted entries.\n\n### Using channels\n\n- **Push to Claude:** open a pane's modal, type a message in the\n  composer in the Messages section, and submit. Claude sees it on its\n  next turn as a `\u003cchannel source=\"periscope\"\u003e` block.\n- **Replies from Claude:** Claude can call the `reply` tool with\n  `kind=\"need_human\"`, `kind=\"done\"`, or `kind=\"info\"` (the default).\n  Messages show in the modal's Messages section; `need_human` triggers a\n  pulsing red border on the pane card and fades the rest of the grid.\n\nIf a session was started outside periscope (no dev-channels flag), the\npush composer is disabled with a tooltip.\n\n## License\n\nMIT — see [LICENSE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomplex%2Fperiscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomplex%2Fperiscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomplex%2Fperiscope/lists"}