{"id":50614906,"url":"https://github.com/deevus/pi-zmx","last_synced_at":"2026-06-06T07:04:10.633Z","repository":{"id":353882830,"uuid":"1219766553","full_name":"deevus/pi-zmx","owner":"deevus","description":"Execute shell commands in persistent zmx sessions from pi","archived":false,"fork":false,"pushed_at":"2026-05-21T03:54:09.000Z","size":44,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-21T10:12:52.146Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deevus.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-24T07:40:59.000Z","updated_at":"2026-05-21T04:05:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/deevus/pi-zmx","commit_stats":null,"previous_names":["deevus/pi-zmx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deevus/pi-zmx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fpi-zmx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fpi-zmx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fpi-zmx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fpi-zmx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deevus","download_url":"https://codeload.github.com/deevus/pi-zmx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fpi-zmx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33972420,"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-06T02:00:07.033Z","response_time":107,"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-06T07:04:09.886Z","updated_at":"2026-06-06T07:04:10.628Z","avatar_url":"https://github.com/deevus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @deevus/pi-zmx\n\nA [pi](https://github.com/badlogic/pi-mono) extension that executes shell commands inside persistent [zmx](https://zmx.sh) sessions.\n\n## Features\n\n- **Persistent sessions** — filesystem effects, background processes, and exported env vars survive across tool calls\n- **Non-blocking** — `zmx_run` sends commands and returns immediately; use `zmx_wait` when you need to block\n- **Human-in-the-loop** — start a process, prompt the user to attach and enter a password or interact, then continue\n- **Auto session naming** — defaults to the pi session display name if set; otherwise requires an explicit session name\n\n## Requirements\n\n[zmx](https://zmx.sh) must be installed and on your `PATH`:\n\n```bash\nbrew install neurosnap/tap/zmx\n```\n\nOr download a binary directly from [zmx.sh](https://zmx.sh/#binaries).\n\n## Install\n\n```bash\npi install npm:@deevus/pi-zmx\n```\n\n## Tools\n\n| Tool | Description |\n|---|---|\n| `zmx_run` | Send a shell command to a zmx session (non-blocking) |\n| `zmx_wait` | Wait for session tasks to complete |\n| `zmx_history` | View recent scrollback from a session |\n| `zmx_list` | List active zmx sessions |\n| `zmx_kill` | Kill one or more zmx sessions |\n| `zmx_attach` | Get instructions for manually attaching to a session |\n\n## Commands\n\n| Command | Description |\n|---|---|\n| `/zmx` | Interactive session manager (attach / create / kill) |\n\n## Usage\n\n### Basic\n\n```\nzmx_run(session=\"my-project\", command=\"npm test\")\nzmx_wait(session=\"my-project\")\nzmx_history(session=\"my-project\", lines=50)\n```\n\n### Human-in-the-loop (e.g. password prompt)\n\n```\nzmx_run(session=\"my-project\", command=\"sudo apt update\")\nzmx_attach(session=\"my-project\")\n# → tells the human to run: zmx attach my-project\n# → human enters password and detaches with Ctrl+\\\nzmx_wait(session=\"my-project\")\nzmx_history(session=\"my-project\")\n```\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeevus%2Fpi-zmx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeevus%2Fpi-zmx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeevus%2Fpi-zmx/lists"}