{"_id":"@duskoide/pi-herdr-worker","name":"@duskoide/pi-herdr-worker","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@duskoide/pi-herdr-worker","version":"1.0.0","description":"Spawn worker pi agents in isolated Herdr panes for delegated task execution.","keywords":["pi-package","pi","herdr","agent","orchestration"],"license":"MIT","author":{"name":"duskoide"},"repository":{"type":"git","url":"git+https://github.com/duskoide/dotfiles.git","directory":"pi/pi-herdr-worker"},"homepage":"https://github.com/duskoide/dotfiles/tree/main/pi/pi-herdr-worker","bugs":{"url":"https://github.com/duskoide/dotfiles/issues"},"publishConfig":{"access":"public"},"dependencies":{"zod":"^4.4.3"},"pi":{"extensions":["./extensions"],"skills":["./skills"]},"gitHead":"93de6dc6b5c4e36c751ac810d9fb9c34ae29663b","_id":"@duskoide/pi-herdr-worker@1.0.0","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-GL+61I2F+wCir04QjFpR5rWU8IO4qvgPoUAnlu9XlFlJ6FrYGax+jAvGUIDO3gkaMSaRVQVlijxUAzj98Xr2rA==","shasum":"9a2076ac8058610101253d7ccc51d6257ec69bc3","tarball":"https://registry.npmjs.org/@duskoide/pi-herdr-worker/-/pi-herdr-worker-1.0.0.tgz","fileCount":6,"unpackedSize":28000,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD29Z2SMSZLSWENAJR7kDHFy7RH1GaUbiweVdZWpb/jaQIhAMWMrzkJKdkuhLZ0o5v09FNlb2MNZ2UZk4xjRTF7Nvlp"}]},"_npmUser":{"name":"duskoide","email":"rafipeen@gmail.com"},"directories":{},"maintainers":[{"name":"duskoide","email":"rafipeen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-herdr-worker_1.0.0_1785152117208_0.9207143992965501"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-27T11:35:17.078Z","1.0.0":"2026-07-27T11:35:17.344Z","modified":"2026-07-27T11:35:17.547Z"},"maintainers":[{"name":"duskoide","email":"rafipeen@gmail.com"}],"description":"Spawn worker pi agents in isolated Herdr panes for delegated task execution.","homepage":"https://github.com/duskoide/dotfiles/tree/main/pi/pi-herdr-worker","keywords":["pi-package","pi","herdr","agent","orchestration"],"repository":{"type":"git","url":"git+https://github.com/duskoide/dotfiles.git","directory":"pi/pi-herdr-worker"},"author":{"name":"duskoide"},"bugs":{"url":"https://github.com/duskoide/dotfiles/issues"},"license":"MIT","readme":"# pi-herdr-worker\n\nSpawn worker [pi](https://pi.dev) agents in isolated [Herdr](https://github.com/ogulcancelik/herdr) panes for delegated task execution. The primary agent acts as orchestrator, delegating work to isolated workers.\n\n## Install\n\n```bash\npi install npm:@duskoide/pi-herdr-worker\n```\n\n## Requirements\n\n- pi must be running inside a Herdr-managed pane (`HERDR_ENV=1`)\n- Herdr must be installed and running\n- Settings file at `~/.pi/agent/herdr-worker.json` (optional — sensible defaults are built in)\n\n## Slash Commands\n\n| Command | Usage | Description |\n|---------|-------|-------------|\n| `/worker` | `/worker <prompt> [name] [model] [timeout]` | Spawn worker with full control |\n| `/workerp` | `/workerp <prompt> [model]` | Quick spawn with auto-generated name |\n| `/workerlist` | `/workerlist` | List all running workers |\n| `/workerkill` | `/workerkill <name>` | Kill a specific worker |\n\n### Examples\n\n```bash\n/worker Implement the login page\n/worker Review code worker-review claude-sonnet-5\n/workerp Run the linter and fix errors\n/workerlist\n/workerkill worker-test-runner\n```\n\n## The `spawn_worker` Tool\n\n```ts\nspawn_worker({\n  prompt: \"Run tests and report any failures\",\n  name: \"worker-tests\",\n  model: \"gpt-4o\",\n  timeout: 180000,\n  direction: \"right\"\n})\n```\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `prompt` | string | required | The task to send to the worker |\n| `name` | string | auto-generated | Unique worker name (lowercase, hyphens, max 31 chars) |\n| `model` | string | from settings | Model ID (e.g. `gpt-4o`, `claude-sonnet-5`) |\n| `timeout` | number | `120000` | Timeout in milliseconds |\n| `direction` | `\"right\"` \\| `\"down\"` | `\"right\"` | Pane split direction |\n\n## Settings\n\nConfiguration lives at `~/.pi/agent/herdr-worker.json`:\n\n```json\n{\n  \"defaultModel\": \"claude-sonnet-5\",\n  \"allowedModels\": [\"gpt-4o\", \"claude-sonnet-5\", \"claude-sonnet-4-5\", \"gpt-4o-mini\"],\n  \"defaultTimeout\": 120000,\n  \"defaultDirection\": \"right\"\n}\n```\n\n## How It Works\n\n1. Splits the current pane for an isolated terminal\n2. Launches a pi worker with the chosen model\n3. Submits the task and waits for completion\n4. Reads the worker's output\n5. Closes the pane and stops the worker automatically\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-baea0a1e9c11c49750c1f4337658a1a1"}