Skip to content

A team hub on the Grid

A hub is a wisp that belongs to a team, not to one person. It runs on a wisp Grid at its own address (https://acme.grid.example.com). The team’s shared agents, projects and triggers live there and run there, so an issue gets triaged even when everyone’s laptop is closed.

Your grid is wisp Cloud, or one you run on your own server and domain. Everything here works the same on either: this guide writes grid.example.com for your grid’s address, so a team on wisp Cloud reads grid.trywisp.dev there. Sign your wisp in to it once:

Terminal window
wisp cloud signin https://grid.example.com # or https://grid.trywisp.dev
  • People open the hub by their role in the team: owners and admins run it, members start tasks and triggers on it, viewers read.
  • Agents, projects and triggers live in a folder of YAML in a repo. wisp grid deploy sends that folder to the hub, from your terminal or from GitHub Actions on every merge. It works like Terraform: plan, review, apply.
  • Deploy keys let CI deploy without anyone’s sign-in. A key opens its own team’s hub and nothing else.
  • GitHub through the grid’s GitHub App (an hour’s token for the repos you pick, and webhooks), or a GH_TOKEN.
  • Secrets (the hub’s Claude sign-in, a token) are kept on the grid, never in the repo.
  • Your own SSO and SCIM: the team signs in with its identity provider, roles by group (Your team’s own sign-in).

Tell your agent to set it up

Rather do it by hand? Skip to step 1. Otherwise open Claude Code, Codex or any coding agent in the repo the hub’s folder should live in, and paste this. Fill in the four lines at the top. The agent does every step it can, and stops for the ones only you can do: signing in in a browser, installing the GitHub App, and typing secrets. It never asks you to paste a secret into the chat.

Paste into your agent
Set up a wisp team hub for my team, so our shared agents run on our grid instead of on our laptops.
Grid: https://grid.trywisp.dev
Team: acme
Repo the agents work in: acme/app
What they should do: triage each new issue (find the code it's about and comment what you found)
Follow https://trywisp.dev/docs/guides/declare/team-hubs/ and
https://trywisp.dev/docs/guides/declare/software-factory-as-code/ . `wisp team help` and `wisp grid help` list
every command. Work in this order, and stop and tell me at each step that needs me:
1. `wisp --version` (if it's missing: `npm i -g wisp-agents`), then `wisp cloud status`. If I'm not signed in to
the grid, run `wisp cloud signin <grid>` and wait while I finish it in the browser.
2. `wisp team` lists my teams. If the team isn't there, `wisp team new <team>`.
3. `wisp grid init <team> ops/hub` (it never overwrites a file). Then edit the folder for what I asked:
projects/app.wisp.yml names our repo; agents/ holds the crew (role, brief, `sandbox: job`); triggers/ says what
wakes them. Keep agent opencode with its free model unless I named another harness. Never write a secret's value
in the folder: reference it as ${secret:NAME}.
4. `cd ops/hub && wisp grid plan`. Fix every error it prints until it plans cleanly.
5. GitHub access: run `wisp team github <team> connect` and give me the link to open. If our grid has no GitHub App,
ask me to run `wisp team secret <team> GH_TOKEN` myself (it reads the token hidden). Any other secret the
folder references: the same, one command per secret, run by me.
6. Show me the plan, then `wisp grid deploy --yes` and `wisp grid deploys`. If it says the repo couldn't be
cloned, the hub has no GitHub access yet: wait until I've done step 5, then deploy again.
7. CI: `wisp team key <team> github-actions | grep -o 'wgt_[A-Za-z0-9_-]*' | gh secret set WISP_HUB_KEY` (the key
goes straight to GitHub: never print it). Commit ops/hub and .github/workflows/wisp-hub.yml on a new branch, and
open a pull request.
8. End with: what's live on the hub, what's left for me (each as one command or one link), and how to see it work.

1. Make a team

Making a team makes its hub too.

Sign in to your grid → Teams → New team. Give it a name (its address: acme) and, if you like, what it shows as (Acme). Make the team.

A hub sleeps when no one uses it and wakes when someone opens it or one of its triggers fires.

2. Bring people in

Role Can
owner everything, delete the team, make other owners
admin people, invite links, deploy keys, secrets, deploys
member start tasks and follow them up, run triggers and workflows, read everything
viewer read

On the team’s page, People → type a handle → pick a role → Add (change someone’s role later from the list beside their name). Or Invite links → pick a role, how many people and how long → Make a link. The link is shown once: send it, and whoever opens it, signed in, joins with that role.

3. Open the hub

The hub is a whole wisp: the same app you know, with the team’s tasks.

On the team’s page, Open the hub. You’re signed in there as yourself, with your role.

4. Give it its secrets

The hub and the sandboxes it makes start with these. A formula names them (${env:GH_TOKEN}); it never holds them.

On the team’s page, Secrets: sign the hub in to Claude with a token from claude setup-token, and set GH_TOKEN (a GitHub token that can read the team’s repos and comment on their issues), unless the team connects the grid’s GitHub App (step 5).

5. GitHub: the App, or a token

A hub reaches its team’s repos one of two ways:

  • The grid’s GitHub App (best). Install it on your org and pick the repos. The hub gets a fresh token for those repos every hour, and no one’s personal token sits on the grid. Each new or labelled issue, and each review request, reaches the hub’s triggers the moment it happens, waking the hub if it’s asleep.
  • A GH_TOKEN secret (step 4), on a grid without the App. The hub then polls GitHub every few minutes.

On the team’s page, GitHub → Connect GitHub. GitHub asks where to install the App and which repos it may use, then brings you back, connected.

Connecting checks that GitHub really let you install it on that account: a link to someone else’s installation connects nothing. With the App connected, the hub’s gh and git use its tokens, and a GH_TOKEN secret is used only after you disconnect. Webhooks only speed things up: the hub still polls, and an event fires a trigger once, whichever comes first. A webhook reaches the triggers of the project whose repo: names that repo.

Running your own grid: making its GitHub App

(The whole setup of your own grid, its DNS and HTTPS included, is in Run your own Grid.)

On GitHub, Settings → Developer settings → GitHub Apps → New GitHub App:

  • Callback URL and Setup URL: https://<your grid>/github/setup. Tick Request user authorization (OAuth) during installation.
  • Webhook URL: https://<your grid>/github/webhook, with a secret you make.
  • Repository permissions: Contents, Issues and Pull requests: read and write; Metadata: read.
  • Subscribe to events: Issues, Pull request.

Then give the grid its id, URL name and client id, and its three secrets (each also as a file with _FILE):

Terminal window
GRID_GITHUB_APP_ID=123456 GRID_GITHUB_APP_SLUG=acme-wisp GRID_GITHUB_APP_CLIENT_ID=Iv1.abc
GRID_GITHUB_APP_CLIENT_SECRET=… GRID_GITHUB_APP_PRIVATE_KEY_FILE=/etc/wisp/app.pem GRID_GITHUB_APP_WEBHOOK_SECRET=…

6. The hub as code

The quickest way in is a preset: wisp create issue-to-pr --hub acme (or pr-review, ci-fixer, software-factory, nightly-audit, dependency-updates) asks a few questions, writes the folder below with your repo as its project, and deploys it. See Set up a workflow in one command. To write the folder yourself:

Terminal window
wisp grid init acme ops/hub
ops/hub/
├── grid.yml # which grid and team this folder deploys to
├── projects/app.wisp.yml # the repos the hub works in
├── agents/triager.wisp.yml # crew members
├── triggers/issues.wisp.yml # what starts work
└── README.md
.github/workflows/wisp-hub.yml # plan on pull requests, deploy on merge

init never overwrites a file. The folder holds formulas, so everything in Build a software factory as code works there too: crew, workflows, connectors, modules, variables.

A project by its repo. On a hub, a project names its repo. Deploying clones it into the hub with the App’s token (or the hub’s GH_TOKEN):

wisp: 1
projects:
app:
repo: acme/app # or https://github.com/acme/app, git@github.com:acme/app.git

An agent and what wakes it:

wisp: 1
crew:
triager:
role: triager
agent: opencode # free models, no sign-in; or claude (wisp team login acme claude)
model: opencode/deepseek-v4.1-flash-free
mode: auto # it runs `gh issue comment` without asking
brief: Read each new issue, find the code it's about, and comment with what you found. Never merge.
sandbox: job # each job in a sandbox of its own, which the hub makes and drops
triggers:
triage-new-issues:
on: issue.opened
project: app
crew: triager
prompt: "A new issue: {event.summary}"

With sandbox: job, each job runs in a fresh sandbox on the grid: the repo, the hub’s secrets, and nothing else of the hub’s. Any harness runs there: Claude with the hub’s sign-in, opencode’s free models with none.

A hub sleeps when nobody uses it, and wakes by itself when one of its triggers is due (a poll, a schedule), so an issue opened at night is triaged at night.

7. Plan and deploy

Terminal window
cd ops/hub
wisp grid plan # what deploying would change on the hub
wisp grid deploy # plan, confirm, apply (--yes in scripts, --prune: delete what the folder no longer declares)
wisp grid deploys # who deployed what, from which commit
Plan (ops/hub)
+ project/app (new)
+ crew/triager (new)
+ trigger/triage-new-issues (new)
3 to add, 0 to change, 0 to remove, 0 unchanged
✓ applied 3 changes

From your terminal, wisp deploys as you, through your grid sign-in. The hub keeps one deploy at a time: a second one waits for the first and says whose it is.

Every deploy is the hub’s, wherever it runs. A field one teammate’s deploy declared and the next deploy from CI doesn’t goes, and --prune from CI removes what a deploy from a laptop made. A repo’s own .wisp/ applied on the hub stays its own.

8. Deploy from CI

On the team’s page, Access keys → Deploy keys → name it (github-actions) → plan and deploy → Make a key. Copy it: it’s shown once.

Put it in the repo’s secrets as WISP_HUB_KEY (gh secret set WISP_HUB_KEY). The workflow wisp grid init wrote then plans each pull request, with the plan as a comment, and deploys each merge to main:

- uses: WispAgents/wisp/action@main
with:
hub: ops/hub
deploy: ${{ github.event_name == 'push' && 'apply' || 'plan' }}
hub-key: ${{ secrets.WISP_HUB_KEY }}

Anywhere else, WISP_HUB_KEY=… wisp grid deploy --yes deploys straight to the hub. It needs no wisp running on that machine.

9. Webhooks from the internet

A hub has a public address, so GitHub, Sentry or Linear can start its webhook triggers directly. Declare the trigger and switch webhook triggers on in the folder; set its secret on the grid:

wisp: 1
settings:
automations.webhookTriggers: true
triggers:
sentry:
on: webhook
header: Sentry-Hook-Signature
secret: "${secret:SENTRY_HOOK}" # a team secret: wisp team secret acme SENTRY_HOOK
project: app
mode: plan
prompt: "A Sentry alert: {event.summary}. Find the cause; don't fix yet."

On a hub, ${secret:NAME} reads the team’s secrets, so the value never goes in the repo or through CI. Then make its URL (shown once):

On the team’s page, Access keys → Trigger URLs → the trigger’s name → Make a URL. Or in the hub itself: Settings → Automations → the trigger → Make a grid URL.

The token is the only way in, and the trigger still checks its secret or signature. The hub wakes for each call, so nothing waits for a laptop to come back.

10. Slack and Linear

A team’s Slack talks to its hub, and Linear hands it new issues. One folder declares both:

wisp: 1
# webhook triggers are on (step 9's settings)
connectors:
linear: # the agents' Linear tools, to comment on the issue
url: https://mcp.linear.app/mcp
headers: { Authorization: "Bearer ${secret:LINEAR_API_KEY}" }
channels:
team-slack:
transport: slack
enabled: true
token: "${secret:SLACK_BOT_TOKEN}" # the bot token, xoxb-…
routing:
signingSecret: "${secret:SLACK_SIGNING_SECRET}"
channel: C0123ABCD # where notices about tasks with no Slack thread go (#eng-agents)
allow: [anyone] # everyone in the workspace; or member IDs, [U01ANA, U02BEN]
cap: edits # the most a message may start: plan or edits
notifications:
digest-to-slack: { on: [standup-digest], to: team-slack } # a trigger's name: its run's answer
trouble: { on: [failed, asks], to: team-slack }
triggers:
linear-triage:
on: webhook
header: Linear-Signature
secret: "${secret:LINEAR_WEBHOOK_SECRET}"
match: { type: Issue, action: create, data.labels.name: agent }
project: app
crew: triager
prompt: "New Linear issue {event.payload.data.identifier}: {event.payload.data.title}. Comment on it with what you found."
slack-ask:
on: chat.message # a mention of the bot, or a DM
users: [anyone]
project: app
agent: claude
mode: plan
prompt: "{event.summary}"
standup-digest:
on: schedule
cron: every weekday at 9
tz: Europe/Zurich
project: app
mode: edits # it runs gh: Plan mode can't
prompt: "List the pull requests merged since yesterday at 9, one line each."
Terminal window
printf %s "$SLACK_BOT_TOKEN" | wisp team secret acme SLACK_BOT_TOKEN
printf %s "$SLACK_SIGNING_SECRET" | wisp team secret acme SLACK_SIGNING_SECRET
printf %s "$LINEAR_API_KEY" | wisp team secret acme LINEAR_API_KEY
printf %s "$LINEAR_WEBHOOK_SECRET" | wisp team secret acme LINEAR_WEBHOOK_SECRET
wisp team url acme linear-triage # paste it in Linear: Settings → API → Webhooks

In Slack’s app settings, Event Subscriptions → the channel’s URL (Settings → General → Phone → Slack on the hub shows it, with the app’s manifest). Open the hub first: Slack checks the URL at once, and an asleep hub can’t answer.

  • A message a chat.message trigger takes is that trigger’s task: the bot answers “On it” in the thread, the task’s answer follows there, and a reply in the thread follows the task up. With no such trigger, the channel starts its own task.
  • A connector whose secret isn’t set isn’t given to the agents (they’d wait on a sign-in nobody can give). Set it, and the next task has it.
  • Pick each trigger’s agent (agent:) or a crew member: a task on a harness nobody signed in to on the hub fails at once, and the trigger’s log and the Slack thread say why.

What a key and a role can’t do

  • A deploy key changes what’s declared on its own team’s hub. It can’t start tasks, read tasks or secrets, reach another hub or any machine, or make keys. A plan-only key can only read.
  • A member can’t change the hub’s settings, secrets, plugins or harness accounts, and can’t deploy. A viewer can only read.
  • Only a person makes a key, an invite link or a secret: wisp’s MCP tools never do, so none of them ever sits in an agent’s transcript.
  • Nobody signs in as a hub, and a team keeps at least one owner. An account that is a team’s only owner can’t be deleted until someone else is an owner.