{"id":51444726,"url":"https://github.com/albertoarena/deskhand","last_synced_at":"2026-07-05T15:00:48.430Z","repository":{"id":369463468,"uuid":"1279251515","full_name":"albertoarena/deskhand","owner":"albertoarena","description":"Isolated, test-passing Laravel environments per git worktree — for running parallel AI coding agents.","archived":false,"fork":false,"pushed_at":"2026-07-05T14:03:24.000Z","size":280,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-05T14:12:38.986Z","etag":null,"topics":["ai-agents","claude-code","cli","developer-tools","git-worktree","laravel","parallel-development","pest","php","sqlite","symfony-console","testing"],"latest_commit_sha":null,"homepage":"https://albertoarena.github.io/deskhand","language":"PHP","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/albertoarena.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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-06-24T14:07:35.000Z","updated_at":"2026-07-05T14:03:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/albertoarena/deskhand","commit_stats":null,"previous_names":["albertoarena/deskhand"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/albertoarena/deskhand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertoarena%2Fdeskhand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertoarena%2Fdeskhand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertoarena%2Fdeskhand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertoarena%2Fdeskhand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertoarena","download_url":"https://codeload.github.com/albertoarena/deskhand/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertoarena%2Fdeskhand/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35158308,"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-07-05T02:00:06.290Z","response_time":100,"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":["ai-agents","claude-code","cli","developer-tools","git-worktree","laravel","parallel-development","pest","php","sqlite","symfony-console","testing"],"created_at":"2026-07-05T15:00:47.585Z","updated_at":"2026-07-05T15:00:48.371Z","avatar_url":"https://github.com/albertoarena.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deskhand\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/albertoarena/deskhand/main/art/cover-dark.png\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/albertoarena/deskhand/main/art/cover-light.png\" alt=\"deskhand: isolated, test-passing Laravel environments per worktree, for running parallel AI coding agents\"\u003e\n\u003c/picture\u003e\n\n**deskhand — isolated, test-passing Laravel environments per worktree, for running parallel AI coding agents.**\n\n[![CI](https://img.shields.io/github/actions/workflow/status/albertoarena/deskhand/tests.yml?branch=main\u0026label=CI)](https://github.com/albertoarena/deskhand/actions/workflows/tests.yml)\n[![Repo views](https://raw.githubusercontent.com/albertoarena/deskhand/traffic-data/badge-views.svg)](https://github.com/albertoarena/deskhand)\n[![PHP](https://img.shields.io/badge/PHP-8.3%2B-777BB4?logo=php\u0026logoColor=white)](https://www.php.net)\n[![License](https://img.shields.io/badge/License-MIT-green)](./LICENSE)\n\nRunning several AI coding agents against one checkout causes collisions: agents overwrite each other's files, corrupt a shared database (fatal for event-sourcing projection rebuilds), and read each other's half-finished work. Git worktrees isolate **code** — but not the runtime environment. A fresh worktree has no `.env`, no `APP_KEY`, no `vendor/`, no database, no storage link, and every dev server fights over the same ports.\n\ndeskhand closes that gap. `deskhand up \u003cbranch\u003e` turns a bare worktree into a fully provisioned, **isolated, test-passing** Laravel environment — its own database, ports, env, and a fresh app key — and verifies it by running your Pest suite. `deskhand down` tears it all down, dropping **only** what deskhand created.\n\n\u003e Each agent gets its own **desk** (an isolated worktree environment). deskhand is the **hand** that sets it up and keeps it working.\n\n**Documentation:** https://albertoarena.github.io/deskhand\n\n## Requirements\n\n- PHP **8.3+** (deskhand is a global CLI; this is the PHP on *your* machine, not your project's pinned version)\n- Git, Composer\n- macOS or Linux (Windows is not supported)\n\n## Installation\n\n\u003e Available at v1.\n\n```bash\n# Global Composer tool\ncomposer global require albertoarena/deskhand\n\n# Or download the standalone PHAR from the latest GitHub Release\n```\n\n## Quickstart\n\n```bash\n# Provision an isolated, verified environment for a branch\ndeskhand up feature/billing\n\n# ... point an agent at .claude/worktrees/feature-billing and let it work ...\n\n# See what's running\ndeskhand list\n\n# Tear it down (drops only what deskhand created)\ndeskhand down feature/billing\n```\n\n## Commands\n\n| Command | What it does |\n|---|---|\n| `deskhand up \u003cbranch\u003e` | Create + provision + verify an isolated worktree environment |\n| `deskhand down \u003cbranch\\|slug\u003e` | Tear down, dropping only deskhand-created resources |\n| `deskhand list` | List all deskhand-managed worktrees |\n| `deskhand status [\u003cbranch\\|slug\u003e]` | Health-check managed worktrees |\n| `deskhand skill:install` | Install the Claude Code skill into `.claude/skills` (`--global` for the user) |\n\nKey flags on `up`: `--path`, `--db=sqlite|mysql`, `--shared-db`, `--url`, `--no-envaudit`, `--no-redis-isolation`, `--no-verify`. Full reference in the docs.\n\n## Claude Code skill\n\ndeskhand ships a [Claude Code skill](./skill/SKILL.md) so agents know when and how\nto use it — and the safety rules they must respect. Install it into a project (or\nfor your user with `--global`) so Claude Code discovers it:\n\n```bash\ndeskhand skill:install            # → .claude/skills/deskhand/SKILL.md\ndeskhand skill:install --global   # → ~/.claude/skills/deskhand/SKILL.md\n```\n\n## How it isolates\n\nFull database isolation by default (SQLite per worktree; `--db=mysql` when needed), deterministic slug-derived ports, a copied per-worktree `.env` with a fresh `APP_KEY`, conditional Redis namespacing, and per-worktree dependencies. See [`docs/isolation-model.md`](./docs/isolation-model.md).\n\n## Safety\n\ndeskhand creates and destroys databases, so trust matters. The cardinal rule: **it never drops a database it did not create** — teardown is driven entirely by a registry of what deskhand made, never by guessing names. See [`docs/safety-model.md`](./docs/safety-model.md).\n\n## Configuration\n\nZero-config works for a vanilla Laravel app. A committed `deskhand.yaml` covers per-project needs — including custom migrate/seed/test commands (e.g. a project's own `php artisan migrations`), port ranges, seeding, URL strategy (`serve` / Herd / Valet / custom), and post-up hooks. See the configuration reference in the docs.\n\n## Acceptance testing\n\ndeskhand has been exercised end-to-end against a real Laravel app: `up` provisions\nand verifies an isolated worktree (real composer, npm, artisan, migrate and a green\nsuite), and three coding agents then worked the **same codebase in parallel** —\neach in its own worktree with a distinct database, ports and `.env` — with zero\ncollisions, before `down` removed only what deskhand created.\n\nYou can replicate this two ways:\n\n- **Scripted (routine, ~free).** Scaffolds a fresh Laravel app, provisions N\n  isolated worktrees, runs a deterministic workload **concurrently** in each,\n  asserts isolation (distinct databases/ports, base untouched) and tears them down:\n\n  ```bash\n  scripts/acceptance/parallel-worktrees.sh        # 3 workers (default)\n  WORKERS=5 scripts/acceptance/parallel-worktrees.sh\n  ```\n\n  Prints `ACCEPTANCE: PASS`. Requires `composer` and `php` on `PATH`.\n\n- **With real AI agents (milestone).** Follow\n  [`docs/acceptance/ai-agents.md`](./docs/acceptance/ai-agents.md) to drive actual\n  coding agents in parallel worktrees — the real use case.\n\nThere is also a gated end-to-end test: `DESKHAND_TEST_LARAVEL=1 vendor/bin/pest`\nruns the full round-trip against a scaffolded Laravel app (skipped by default).\n\n## Contributing\n\nSee [`CONTRIBUTING.md`](./CONTRIBUTING.md). TDD is required; the [safety invariants](./docs/safety-model.md) are non-negotiable.\n\n## License\n\n[MIT](./LICENSE) © 2026 Alberto Arena\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertoarena%2Fdeskhand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertoarena%2Fdeskhand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertoarena%2Fdeskhand/lists"}