[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110601":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":8,"language":10,"languages":8,"totalLinesOfCode":8,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":14,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":8,"rankLanguage":8,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":8,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":15,"starSnapshotCount":15,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},110601,"jsm-hq","jsmastery-pro\u002Fjsm-hq","jsmastery-pro",null,"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@therealjsmastery\u002Fjsm-hq","TypeScript",122,39,51,4,0,18,69,16,65.67,"MIT License",false,"main",[24,25,26,27,28,29,30],"ai-orchestration","claude-code","codex","jsmastery","npm-package","sandbox","workflow-automation","2026-11-23 18:47:52","2026-11-22 23:02:31","# JSM HQ\n\n**Run a team of AI coding agents on your repo, and watch them work in a pixel-art office.**\n\n[![npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@therealjsmastery\u002Fjsm-hq?color=cb3837&label=npm)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@therealjsmastery\u002Fjsm-hq)\n[![license](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fl\u002F@therealjsmastery\u002Fjsm-hq)](LICENSE)\n[![node](https:\u002F\u002Fimg.shields.io\u002Fnode\u002Fv\u002F@therealjsmastery\u002Fjsm-hq)](https:\u002F\u002Fnodejs.org)\n\n![The JSM HQ office: a lead and two developers at their desks, the task board on the wall, pull requests on the board and the review gate on the belt](docs\u002Fimages\u002Foffice.png)\n\nOne **lead** agent plans the work and hands out tasks. Each **worker** gets its own desk, its own copy of your repo and its own Docker Sandbox, then opens a pull request. You see it all happen: the plan on the wall, agents at their desks, PRs moving through review.\n\nAgents run **Claude Code** or **Codex**. Everything runs on your machine.\n\n## Why use it\n\n- **A real team, not one chat.** The lead splits the work into small tasks (one task, one branch, one PR) and assigns them. Agents message each other through HQ.\n- **Safe by default.** Each agent works in its own Docker Sandbox, a small VM that can't touch the rest of your computer. Websites are blocked until you allow them.\n- **You stay in charge.** Anything an agent needs from you (a decision, an API key, a blocked website) shows up in **Action items**. HQ never merges for you.\n- **Your workflow.** Pull requests on GitHub, reviewed by CodeRabbit, Greptile, Copilot or you.\n- **Knows your stack.** Pick your tools (Next.js, Clerk, Stripe, Supabase…) and agents get their official agent skills and docs access.\n\n## Quick start\n\nFrom inside a git repo that has a GitHub remote:\n\n```bash\nnpx @therealjsmastery\u002Fjsm-hq@latest\n```\n\nHQ opens in your browser and walks you through the rest:\n\n1. **Welcome:** name the project and pick a lead and workers (Claude Code or Codex for each).\n2. **Setup checklist:** anything missing on your machine is listed with the command to fix it.\n3. **Start team** in the top bar, then message the lead, for example: *\"Plan two small tasks for Dwight and assign the first one.\"*\n\n**First time?** The [getting-started guide](docs\u002Fgetting-started.md) takes you from a fresh machine to a working team in about 15 minutes, on macOS, Linux and Windows.\n\n**Just trying it?** Use a throwaway repo:\n\n```bash\nmkdir hq-test && cd hq-test\ngit init -b main && echo \"# HQ test\" > README.md && git add . && git commit -m init\nnpx @therealjsmastery\u002Fjsm-hq@latest\n```\n\n### Options\n\n```\njsm-hq --repo \u003Cpath>   the repo to manage (default: current folder)\n       --port \u003Cn>      HQ port (default: 7420)\n       --no-open       don't open the browser\n       --version, --help\n```\n\nUse it often? `npm install -g @therealjsmastery\u002Fjsm-hq`, then run `jsm-hq` in any repo.\n\n## Requirements\n\n| What | Why |\n| --- | --- |\n| Node.js 20+ | Runs HQ |\n| git and a GitHub repo | Each agent clones it, pushes a branch and opens a PR |\n| GitHub CLI (`gh`) | Reads PRs and reviews |\n| Docker Sandboxes (`sbx`) | Each agent runs in its own VM |\n| tmux (macOS, Linux) | Agents keep running if you close HQ |\n| A Claude or ChatGPT account | For the agents themselves |\n\nSandboxes need **macOS 14+ on Apple silicon, Windows 11, or Ubuntu 24.04+**. On other machines, set agents to **Local** in Settings → Team: they run Claude Code or Codex directly on your machine, with permission prompts on.\n\nYou don't need to install these by hand first. HQ checks for each one and shows the exact command. The [getting-started guide](docs\u002Fgetting-started.md) has every step.\n\n## How it works\n\n![An agent's drawer: its live terminal, its sandbox, websites it tried to reach, and tabs for its task and messages](docs\u002Fimages\u002Fagent-drawer.png)\n\n1. **You tell the lead what to build.** It creates a board of small tasks, each with the files it may touch, and assigns them.\n2. **Workers build in their own sandboxes.** Each one pulls `main`, makes a branch, writes the code and opens a PR titled `[TASK-ID] …`.\n3. **HQ follows the PRs on GitHub.** Review comments go back to the author; a passing PR is reported to the lead; a merged PR marks the task done.\n4. **Agents ask when they're stuck.** A question, a blocked website or a missing key shows up in **Action items** and on the agent's card.\n5. **You review and merge.**\n\nClick any agent to open its drawer: its live terminal, a shell inside its sandbox, its task, its messages, and the websites it tried to reach. Drag the drawer's edge to make it wider, or maximize it. **Terminal** in the top bar opens your own shell in the repo or any agent's folder.\n\nMore detail on workspaces, sandboxes, MCP servers, app variables and what HQ saves: **[How it works](docs\u002Fhow-it-works.md)**.\n\n## Troubleshooting\n\n| Problem | Fix |\n| --- | --- |\n| A setup check shows \"!\" but the tool works | You may be on an old HQ. Run `npx @therealjsmastery\u002Fjsm-hq@latest` (npx can keep an old version cached). |\n| Start fails: \"network policy has not been initialized\" | A new Docker Sandboxes install needs a base policy once: `sbx policy init balanced`. |\n| Agents fail to start with a sign-in error | Your Docker sign-in expired. Run `sbx login`, then **Check again** in the setup checklist. |\n| Agents can't push or open PRs | Run `sbx secret set github --command \"gh auth token\"`, and check the repo has a GitHub `origin`. |\n| A Codex agent waits on \"Do you trust this folder?\" | Answer it once in the agent's terminal. HQ never answers trust prompts for you. |\n| A CLI sign-in in a sandbox opens the browser, then fails on `localhost:\u003Cport>` | Press **Forward port** in the agent's drawer, then reload the page. |\n| An agent's state never changes | The sandbox can't reach HQ. `sbx policy ls` should show `localhost:\u003Cport>` and `host.docker.internal:\u003Cport>` allowed; HQ adds them on start. |\n| \"Port 7420 is in use\" | Another HQ is running. Stop it, or use `--port 7421`. |\n| Windows: `listen EACCES` on start | Windows reserved that port. Use `--port 8420`. |\n| `posix_spawnp failed` when opening a terminal | Run `npx clear-npx-cache`, then `npx @therealjsmastery\u002Fjsm-hq@latest`. |\n\n**Remove a project:** delete each agent in Settings → Team (this removes its sandbox and, if you choose, its folder), then delete `~\u002F.jsmhq\u002F\u003Cproject>`.\n\n## Docs\n\n- [Getting started](docs\u002Fgetting-started.md): install everything and run your first team.\n- [How it works](docs\u002Fhow-it-works.md): workspaces, sandboxes, GitHub, MCP, settings and files.\n- [Contributing](CONTRIBUTING.md): run HQ from source and release it.\n- [Security](SECURITY.md): report a vulnerability privately.\n\n## License\n\nCode: [MIT](LICENSE). The JSM HQ name and logo are not covered by the license; see [TRADEMARKS.md](TRADEMARKS.md).\n","JSM HQ 是一个本地运行的 AI 编程团队协同工具，用于在代码仓库中自动规划、分发和执行开发任务。它模拟真实软件团队结构：一名 Lead 代理负责任务拆解与调度，多名 Worker 代理在隔离的 Docker 沙箱中并行工作，各自克隆仓库、创建分支、提交 Pull Request，并通过可视化像素风办公室界面实时呈现协作流程。支持 Claude Code 和 Codex 模型，强调安全性（默认沙箱隔离、网络受限）与可控性（所有人工介入点以 Action Items 显式提示，不自动合并）。适用于本地代码优化、小型功能迭代、学习项目自动化开发等需可解释、可审计、低风险 AI 协作的场景。",2,"2026-11-24 04:39:26","CREATED_QUERY"]