Quick start
This guide is for people who want to use SWARQ in their own project. It takes about five minutes. You do not need to clone this repository.
SWARQ keeps a task board in your project, in .swarq/, so you and your agents can plan work, assign it, and hand it back. The board lives in the repository next to your code.
1. Check the requirements
- Node.js 22 or later (
node --version) - A git repository for your project (
git initif you do not have one yet)
2. Run SWARQ without installing it
The swarq command is published on npm as @h4shed/swarq. You can run it with npx, which downloads it on first use:
npx -y @h4shed/swarq@0.7.0 helpThe output lists the features: board, tasks, github, review, mcp, and init-workspace. Pin the version as shown, so your project does not change under you when a new release comes out.
3. Create a workspace in your project
From your project’s root:
npx -y @h4shed/swarq@0.7.0 init-workspaceThis creates the following, and it is safe to run again:
| Path | What it is |
|---|---|
.swarq/board.json |
The board: its name, the agent slots, and the task state |
docs/project/handoff.md |
A handoff note for the next session to read first |
CHANGELOG.md |
A changelog for your release notes |
release-contract.config.json |
Settings for the changelog check |
.gitignore entries |
Rules that keep credential files out of git |
.githooks/pre-commit |
A hook that blocks commits that contain a token or a private key |
It also sets core.hooksPath to .githooks, so the hook runs for this repository.
Check the board:
npx -y @h4shed/swarq@0.7.0 board showA new board shows empty todo, in-progress, and blocked sections. To learn how to add tasks and agent slots, read Set up a new workspace.
4. Work with tasks
Create a task and set its status:
npx -y @h4shed/swarq@0.7.0 tasks helpThe tasks commands print JSON. Use them to create a task, set its status, assign it, log hours, or print a project summary.
For the board itself:
| Command | What it does |
|---|---|
board next |
Lists the ready tasks, in the order they should start |
board assign <id> |
Gives a ready task to a free agent slot |
board release <id> --to done |
Hands a task back, as todo, done, or blocked |
board check |
Shows overdue check-ins and free agent slots |
board show |
Prints the board as Markdown |
board view |
Prints the board as columns, with progress, milestones, and recent changes |
board auto-assign |
Assigns ready tasks as assignment.automation in board.json says. --dry-run only lists them |
board readme |
Refreshes the SWARQ snapshot in your README.md. --check only reports whether it is stale |
Run npx -y @h4shed/swarq@0.7.0 board help for every option.
5. Use SWARQ from Claude Code
SWARQ includes a Claude Code plugin, swarq-pm. It starts a local MCP server with the swarq_ tools, so Claude can read the board and update tasks. The server runs on your machine and reads the workspace in your project.
Follow Connect Claude to a workspace to install the plugin and check that the server connects.
Claude can also use the swarq commands in the terminal, so the plugin is optional.
6. Know what is not available yet
- The claude.ai connector is not available. The hosted connector needs sign-in, which is not built yet, so claude.ai cannot connect to SWARQ. Use the Claude Code plugin above instead. See Planned work.
- GitHub sync is optional.
swarq github syncneeds aSWARQ_PATenvironment variable (GITHUB_TOKENandGH_TOKENalso work). Without it, the board stays local. You do not need a token to create or use a board.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
no board at .swarq/board.json |
You are not in the project root | Run the command from the project root, or pass --board <dir> |
npx is slow the first time |
It is downloading the package | Run it again. Later runs use the cache |
| The commit is blocked by the secrets check | A staged line looks like a token or key | Remove the value, rotate it if it was real, and commit again. The message names the file and line, never the value |
node: command not found or an error about the Node version |
Node.js is older than 22 | Install Node.js 22 or later |
For changes to SWARQ itself, see Install SWARQ, which is for contributors.