{"id":50392911,"url":"https://github.com/leostera/pi-tools","last_synced_at":"2026-05-30T19:01:49.621Z","repository":{"id":360652395,"uuid":"1251095385","full_name":"leostera/pi-tools","owner":"leostera","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-27T09:15:54.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T10:25:28.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leostera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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},"funding":{"github":"leostera"}},"created_at":"2026-05-27T08:34:36.000Z","updated_at":"2026-05-27T09:15:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/leostera/pi-tools","commit_stats":null,"previous_names":["leostera/pi-tools"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/leostera/pi-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Fpi-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Fpi-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Fpi-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Fpi-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leostera","download_url":"https://codeload.github.com/leostera/pi-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Fpi-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33705207,"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-05-30T02:00:06.278Z","response_time":92,"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-05-30T19:01:49.239Z","updated_at":"2026-05-30T19:01:49.612Z","avatar_url":"https://github.com/leostera.png","language":"TypeScript","funding_links":["https://github.com/sponsors/leostera"],"categories":[],"sub_categories":[],"readme":"# pi-tools\n\nA monorepo/workspace for Pi extensions and tools.\n\n## Extensions\n\n### `pi-tui`\n\nA pi.dev extension that lets Pi drive terminal/TUI applications via a managed PTY and a local web overlay.\n\nRun from the repo root:\n\n```sh\nnpm install\nnpm run build\npi\n```\n\nThen inside Pi:\n\n```txt\n/tui-run nethack\n/tui-status\n/tui-stop\n```\n\nWith explicit terminal size:\n\n```txt\n/tui-run --cols 140 --rows 40 nethack\n```\n\nRemote TUI over SSH:\n\n```txt\n/tui-run --cols 140 --rows 40 ssh -tt starbase2 dwarffortress\n```\n\nOpen the overlay:\n\n```txt\nhttp://127.0.0.1:7777\n```\n\nThe project-local shim at `.pi/extensions/pi-tui/index.ts` loads `pi-tui/index.ts`, so Pi auto-discovers it when started from the repo root.\n\n### `pi-obs`\n\nA pi.dev extension for controlling OBS Studio via obs-websocket.\n\nOBS Studio must have WebSocket enabled, usually at:\n\n```txt\nws://127.0.0.1:4455\n```\n\nOptional environment variables:\n\n```sh\nOBS_WEBSOCKET_URL=ws://127.0.0.1:4455\nOBS_WEBSOCKET_PASSWORD=your_password\n```\n\nCommands inside Pi:\n\n```txt\n/obs-connect [url] [password]\n/obs-status\n/obs-start-stream\n/obs-stop-stream\n```\n\nTools registered for agents:\n\n- `obs_stream_status`\n- `obs_start_stream`\n- `obs_stop_stream`\n\nThe project-local shim at `.pi/extensions/pi-obs/index.ts` loads `pi-obs/index.ts`.\n\n### `pi-gui`\n\nA pi.dev extension for observing GUI applications via screenshots/screen sampling.\n\nCurrent backend: macOS `screencapture` + `osascript`. You may need to grant Screen Recording permission to your terminal/Pi app in macOS Privacy \u0026 Security settings.\n\nCommands inside Pi:\n\n```txt\n/gui-screenshot [App Name]\n/gui-apps\n```\n\nTools registered for agents:\n\n- `gui_screenshot`\n- `gui_foreground_app`\n- `gui_list_apps`\n- `gui_capture_series`\n\nCaptures are written to `gui-captures/` and ignored by git.\n\nThe project-local shim at `.pi/extensions/pi-gui/index.ts` loads `pi-gui/index.ts`.\n\n## Workspace commands\n\n```sh\nnpm run build   # rebuild native deps and validate imports\nnpm run check   # validate imports without rebuild\n```\n\n## Future ideas\n\n- `pi-pi`: use Pi to supervise/control other Pi agents.\n- `pi-gui`: like `pi-tui`, but observes and controls graphical desktop applications.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleostera%2Fpi-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleostera%2Fpi-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleostera%2Fpi-tools/lists"}