Plane Integration
Pilot integrates with Plane to receive work items and automatically implement them. It supports both Plane Cloud and self-hosted instances, with polling and webhook modes for issue detection.
Polling is the main path. The poller picks up each work item with the Pilot label, moves it through the Plane states, sets the status labels and writes the result as a comment. The webhook path only queues the work item for execution; see Webhook Mode.
Before You Start
- The Pilot label in each Plane project: a label with the name of
pilot_label(defaultpilot). The poller does not start without it. - The status labels (optional):
pilot-in-progress,pilot-doneandpilot-failed. When a label is missing, Pilot skips that step. - An API key for the workspace.
- The workspace slug.
- The project IDs (UUIDs) of the projects to watch.
Setup
1. Create a Plane API Key
- Go to your Plane workspace → Settings → API Tokens
- Click Create token
- Copy the API key
2. Find Your Project UUID
Your project UUID is visible in the Plane URL when viewing a project:
https://app.plane.so/{workspace}/projects/{project-uuid}/issues3. Set Up Webhooks (Optional)
For real-time issue detection:
- Go to Workspace Settings → Webhooks
- Click Create webhook
- Set the URL to
https://your-pilot.example.com/webhooks/plane - Select events: Issues
- Copy the signing secret
Always set a webhook_secret in production. When empty, signature verification is disabled (development mode only).
4. Configure Pilot
# ~/.pilot/config.yaml
adapters:
plane:
enabled: true
base_url: "https://api.plane.so" # Or self-hosted URL e.g. "https://plane.mycompany.com"
api_key: "${PLANE_API_KEY}"
webhook_secret: "${PLANE_WEBHOOK_SECRET}"
workspace_slug: "my-team" # Your Plane workspace slug
project_ids: # Projects to poll for pilot-labeled issues
- "project-uuid-1"
pilot_label: "pilot" # Issues with this label are picked up
polling:
enabled: true
interval: 30sWith the Enterprise persona, pilot onboard can write this block for you: pick Plane in the ticket source step, give the base URL, the API key, the workspace slug, the project IDs (one line, comma-separated) and the Pilot label, and the wizard tests them with one live request before it enables the block. When the config has several project entries and you give several Plane project IDs, the wizard then lists the IDs with numbers and asks, for each project entry, which Plane project it takes (a number, or empty for none); a Plane project that one entry took is not offered to the next. It sets the plane.project_id of each paired entry (see Several Plane projects), keeps a pairing of before on an empty answer, and the work items of the other Plane projects go to the default project.
Configuration Reference
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | false | Enable the Plane adapter |
base_url | string | https://api.plane.so | Plane API URL (cloud or self-hosted) |
api_key | string | required | Plane API key from workspace settings |
webhook_secret | string | — | HMAC-SHA256 secret for webhook verification |
workspace_slug | string | required | Your Plane workspace slug |
project_ids | []string | required | Project UUIDs to monitor |
pilot_label | string | "pilot" | Label name that triggers Pilot (case-insensitive) |
polling.enabled | bool | false | Enable polling for new issues |
polling.interval | duration | 30s | Poll interval |
Polling Mode
When polling is enabled, Pilot periodically queries Plane for issues matching:
- Project: belongs to one of the configured
project_ids - Label: has the
pilot_label(default:pilot)
Issues are processed oldest-first by creation date. Parallel execution is supported with configurable concurrency.
Label Lookup at Start
On start, the poller reads the labels of each configured project and looks up the Pilot label and the status labels by name (case-insensitive). Plane labels belong to one project, so each project gets its own label IDs, and the work item list of each project asks for the Pilot label ID of that project.
A project with no label of the name of pilot_label is skipped: the log says Pilot label not found in project; project is skipped with the project ID, and the poller looks up the labels of that project again at each poll, so a label added later is picked up without a restart. The start fails only when no configured project has the label: the log says pilot label "pilot" not found in any configured project, and Pilot retries the start with a backoff.
Priority
Plane sends the priority as text: none, urgent, high, medium or low. The poll path maps the text priority to the task priority (none gives no priority). The webhook path does not read the priority.
Crash-Safe Deduplication
Pilot uses a ProcessedStore backed by SQLite to track which issues have been handled. This prevents re-dispatching issues after a restart or hot upgrade — no configuration required.
Several Plane projects
By default, every work item goes to the default project, whichever Plane project it comes from. To send the work items of each Plane project to its own repository, give the project entry a plane block with the UUID of its Plane project:
projects:
- name: web
path: /srv/repos/web
plane:
project_id: "project-uuid-1"
- name: api
path: /srv/repos/api
plane:
project_id: "project-uuid-2"- For each work item, the poller takes the project entry whose
plane.project_idis the Plane project of the work item. The branch, the base branch and the pull request follow that project. - A work item whose Plane project matches no entry goes to the default project. When at least one entry has a
planeblock, the log line for that task is a warning. - Two entries with the same
plane.project_id, or aplaneblock with an emptyproject_id, make the config fail to load; the error names the entries. - Each Plane project still has to be listed in
adapters.plane.project_idsto be polled. - Only the polling path routes by Plane project. The webhook path sends every work item to the default project.
Webhook Mode
For real-time issue detection, configure Plane webhooks to notify Pilot when issues are created or updated.
A work item from a webhook goes to the task queue only. Pilot does not set the status labels, does not change the state and does not write a comment for it, and it does not record the work item as processed. The webhook path does not read the priority.
Endpoint
POST /webhooks/planeSignature Verification
Plane signs webhook payloads with HMAC-SHA256 and sends the signature in the X-Plane-Signature header. Pilot verifies the signature using the configured webhook_secret.
If webhook_secret is empty, signature verification is skipped. This is intended for development only.
Supported Events
Pilot reads the event and action fields of the payload:
| Event | Action | Behavior |
|---|---|---|
issue | created | Process if the work item has the Pilot label |
issue | updated | Same as created: process if the work item has the Pilot label |
issue | Any other (for example deleted) | Ignored |
| Any other | — | Ignored |
An updated event is not checked for a label change. Every update of a work item that has the Pilot label queues the work item again.
The work item must also belong to one of the project_ids (all projects when the list is empty). The event carries label UUIDs; Pilot looks up the UUID of the label with the name of pilot_label in the project of the event through the Plane API, and keeps it for 10 minutes. Without an api_key, pilot_label must be the label UUID itself.
State Transitions
On the poll path, Pilot updates issue state groups as it works:
| Event | State Group |
|---|---|
| Task dispatched | started |
| Pull request merged | completed |
| Execution succeeded with no pull request | completed |
| Execution failed | State unchanged (manual triage) |
A work item whose run opens a pull request stays in the started group until the pull request merges. At the merge, Pilot moves the work item to the first state of the completed group and posts one comment with the link of the pull request. This merge step is done by autopilot, for a merge by autopilot and for a merge by hand. Without autopilot nothing sees the merge, so Pilot moves the work item to the completed group at the end of the run, as for a run with no pull request. A work item whose pull request Pilot does not watch (for example a GitLab merge request) is completed when the pull request opens. When the project has no state of the completed group, the state does not change and Pilot logs a warning.
Pull Request Closed With No Merge
A pull request that closes with no merge leaves the work item in the started group and opens it for a second run. Autopilot sees the close, for a close by hand and for a close by autopilot that does not hand the pull request to a fix issue, and then:
- takes the
pilot-donelabel off the work item, - takes the
pilot_label(default:pilot) off the work item, - clears the mark of the work item in the processed store (see Crash-Safe Deduplication),
- posts one comment with the link of the pull request that says to add the
pilot_labelagain.
A label that the project or the work item does not have is skipped. When the pilot_label cannot be taken off, the mark stays and Pilot logs a warning: with the label still on and no mark, the poller would start the second run by itself. When the mark cannot be cleared, Pilot posts no comment and logs a warning: with the mark still in the processed store, the poller does not start a second run when the pilot_label is added again.
When autopilot closes the pull request itself to hand it to a fix issue (after a CI failure or a review that asks for changes), it does none of these steps: the work item keeps the pilot-done label and its mark, and the work goes on in the fix issue.
To start the second run, add the pilot_label to the work item again. The poller picks it up at the next poll. When autopilot has no state store there is no processed store: the poller keeps its marks in memory only, so the second run starts after the next restart of Pilot, and the comment says so.
A later pull request of the same work item that also closes with no merge gets its own comment. A work item whose pull request Pilot does not watch gets none of these steps.
Labels Applied
On the poll path, Pilot applies labels to track issue status:
| Label | When |
|---|---|
pilot-in-progress | Task dispatched |
pilot-done | Execution succeeded (at the end of the run, also when the pull request is not merged yet) |
pilot-failed | Execution failed |
Comments Posted
On the poll path, Pilot posts one comment on the work item for each event:
| Event | Comment |
|---|---|
| Task dispatched | Pilot started working on this issue |
| Pull request opened | PR created with the number and the link (not posted again when a later run returns the same pull request) |
| Pull request merged | Pull request merged with the link (posted once) |
| Pull request closed with no merge | Pull request closed with no merge with the link and the label to add for a second run (posted once per pull request) |
| Execution failed | Pilot execution failed with the error |
| Execution succeeded with no change | Pilot execution completed but no changes were made with the branch and the duration |
A run that succeeds with a commit but no pull request, or an epic, posts Pilot execution completed successfully with the branch and the duration. A superseded or canceled run posts no comment.
Task ID Format
The task ID is built from the sequence number of the work item, the number of the work item in its project; the Plane project identifier is not used. The two paths give different task IDs:
- Poll path: work item
WEB-42(sequence number 42) → Task IDPLANE-42 - Webhook path: work item
WEB-42(sequence number 42) → Task IDTASK-PLANE-42 - Branch name, on both paths:
pilot/PLANE-42
Autopilot Integration
PRs created from Plane issues are automatically wired into the autopilot pipeline. CI monitoring, auto-merge, and the feedback loop all work the same as with GitHub and Linear issues — no extra configuration required.
Running Pilot with Plane
pilot start --plane --githubThis starts the Plane adapter alongside the GitHub adapter for PR creation.
Troubleshooting
Issues Not Picked Up
- Verify the project UUID matches exactly (check the URL in Plane)
- Confirm each project has a label with the name of
pilot_label(case-insensitive); look forpilot label ... not found in any configured projectin the logs - Check that
polling.enabledistrueor webhooks are configured - Look for polling activity in Pilot logs
Webhook Not Triggering
- Verify the webhook URL is accessible from Plane’s servers
- Check the signing secret matches between Plane and Pilot config
- Confirm the correct event types are selected in Plane webhook settings
- Check Pilot logs for signature verification errors
Self-Hosted Instances
- Ensure
base_urlincludes the protocol (https://) - Do not include a trailing slash in the URL
- Verify the API key has workspace-level access