Skip to content
Back to skills

Plandillo Setup

ASecurity

Use when installing Plandillo skills or a client plugin, connecting a workspace to Claude Code, Claude Desktop or Codex, setting up optional hooks or the Codex runner, or diagnosing missing tools and connection errors.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsjavascriptjavashellnodegitapidatabase

Works with

  • claude code
  • claude desktop
  • terminal
  • cli
  • api
  • mcp

Security analysis

A92/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned December 3, 2026

npx -y skills add huntly-digital/plandillo --skill plandillo-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plandillo Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Plandillo Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/huntly-digital-plandillo-setup/badge)](https://www.skillsdirectory.com/skills/huntly-digital-plandillo-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: plandillo-setup
description: Use when installing Plandillo skills or a client plugin, connecting a workspace to Claude Code, Claude Desktop or Codex, setting up optional hooks or the Codex runner, or diagnosing missing tools and connection errors.
---

# Connect an agent to Plandillo

A new installation needs two things: the planner instructions and a connection to the user's workspace. A working MCP connection already supplies the core workflow. If only the skills were installed, continue with **Connect the workspace** below.

## Choose an installation

| Starting point | What to do |
|---|---|
| A running board, macOS or Linux | In **Integrations → Agent setup**, select the CLI and **Skills + MCP for this board**. Copy the command into a terminal. It installs all Plandillo skills and registers MCP for that client. Follow the printed login instructions in the browser. |
| A team using skills.sh | In the target project run `npx skills add huntly-digital/plandillo --skill plandillo plandillo-reference plandillo-setup plandillo-infographics --agent codex claude-code`. Select just one agent if appropriate. Add `-g` for a personal install. |
| A team using native plugins | Add the repository marketplace and install its Plandillo plugin using the commands below. The plugin includes all Plandillo skills and MCP for a local board at `http://localhost:7777/mcp`. In Claude Code, set `PLANDILLO_URL` to a self-hosted board's `/mcp` URL before starting it. For a self-hosted board in Codex, or Code Mode, use the board installer or skills.sh and register your URL. |
| An agent with only a shell, a script or CI | Install the skills by any method here, then `plandillo-cli` as in **Use the CLI**. The agent calls the same tools through the shell. |
| Manual install | Download each SKILL.md from **Integrations** into its own named folder under `~/.claude/skills/` or `~/.agents/skills/` (Codex). The signed-in UI works on self-hosted workspaces. For Claude Desktop projects, copy the workflow into project instructions if needed. |

Codex:

```sh
codex plugin marketplace add huntly-digital/plandillo
codex plugin add plandillo@huntly-digital
```

Claude Code:

```sh
claude plugin marketplace add huntly-digital/plandillo
claude plugin install plandillo@huntly-digital
```

Use one distribution method per client to avoid loading duplicate instructions. In a local checkout, replace the repository slug after `marketplace add` or `skills add` with the absolute path to the checkout. For an embedded installer matching your server version, use its own **Integrations** tab.

## Connect the workspace

1. Open the intended workspace and **Integrations**. Select **MCP** for individual tools at `/mcp`, or **Code Mode** for one JavaScript tool at `/mcp/code`. Use the URL shown there. A hosted workspace usually uses HTTPS. The local default is `http://localhost:7777`.
2. Select your client, choose **MCP only** and use **Copy config**. Register the URL. Codex can open sign-in automatically. If needed, run `codex mcp login plandillo`. For Claude Code use `claude mcp login plandillo`. For a plugin connection select its server in the client's MCP settings. Claude Code also offers authentication in `/mcp`.
3. In the browser, sign in if prompted, select the workspace and approve the requested permissions. A local single-user board requires a loopback address. The client handles token exchange and renewal. For Claude Desktop, the generated config runs `mcp-remote` via `npx`; Desktop needs access to Node. An OAuth-capable remote connector can use a reachable hosted HTTPS URL directly.
4. In a fresh session, ask for `list_projects({})`. On Code Mode send `{"code":"return await codemode.list_projects({})"}` to `code`. Confirm the expected projects and the successful read in the board's call log. An empty list is valid for a fresh workspace. Check the actor label before relying on attribution. The **Check the connection** step on the MCP page shows the client's last successful call. Until that call succeeds (for example `codex mcp list --json` still says `not_logged_in`), sign in and do not write through the REST API: REST entries carry the owner's name, not the agent's.

To switch endpoints or workspaces, authorize the new connection. Revoke it in the workspace’s **Integrations → Connected apps**. For scripts and bearer-only clients, store the manual workspace token in the client’s secret settings. Keep credentials out of chats and shared config.

## Use the CLI

`plandillo-cli` gives an agent, a script or CI the board's tools without an MCP client. It uses the same `/mcp` endpoint, permissions and call log.

1. Install it with the board's own installer: **Integrations → Agent setup → Terminal: plandillo-cli** copies `curl -fsSL https://plans.example.com/api/cli/install.sh | PLANDILLO_URL=https://plans.example.com sh`, or on Windows `$env:PLANDILLO_URL='https://plans.example.com'; irm https://plans.example.com/api/cli/install.ps1 | iex`. It downloads the latest release, checks its checksum, installs into `~/.local/bin` (Windows: `%LOCALAPPDATA%\Programs\plandillo-cli`, added to `PATH`) and runs the browser sign-in, so step 2 is done. Run it again to update. With Homebrew, `brew install huntly-digital/tap/plandillo-cli` installs it without signing in (do step 2) and `brew upgrade plandillo-cli` updates it; Scoop, winget and Linux packages are planned. In a Plandillo checkout, `make cli` builds `bin/plandillo-cli`. `plandillo-cli version` prints the installed version.
2. Sign in: `plandillo-cli login https://plans.example.com` (the local default is `http://localhost:7777`). The browser opens; select the workspace and approve. Clear the write checkbox for reads only. Add `--code` to authorize Code Mode as well. Without a browser on that machine (SSH, CI), copy the workspace token from **Integrations** (a selfhost server asks for the account password first) and run `plandillo-cli login https://plans.example.com --with-token < token.txt`, or set `PLANDILLO_URL` and `PLANDILLO_TOKEN` as secrets.
3. Check with `plandillo-cli status`, then `plandillo-cli list_projects`. Set `PLANDILLO_AGENT` (for example `codex`) so task history names the agent.

Keep the skills in step with the CLI: `plandillo-cli skills` reports skill files in `~/.claude/skills`, `~/.agents/skills` or the current project that are older than the installed CLI or missing, and `plandillo-cli skills update` rewrites them (`--agent claude-code` or `--agent codex` installs into a new folder). Start a new agent session afterwards. A plugin installation updates through its plugin manager instead.

The sign-in is saved in the user's config directory (`plandillo/cli.json`, readable only by the user) and sent only to the board it belongs to. For a second board, point `PLANDILLO_CLI_CONFIG` at another file. If MCP is also connected, the agent uses MCP; keep the CLI for shells without it. Commands and exit codes are in `plandillo-reference`.

## Run Codex from the board

**Run in Codex** on a task (shown when the project has a repository in **Project settings → General**) queues it; `plandillo-cli runner` on the owner's computer claims it, starts a Codex thread in the local checkout and sends the first message: the board's fixed template asking Codex to read that task with `get_task` and follow the `plandillo` skill. The browser only picks the template's language (ru, en, uk) and cannot send its own text, so a board session can start Codex on a task but never tell it what to do. It works from a phone too: the phone only queues. The runner asks the board for work; the board never connects to the computer.

1. Install `plandillo-cli` (above) and the Codex CLI on the computer, sign Codex in, and connect this board to Codex over MCP so the thread can read the task.
2. In **Integrations → Run in Codex from your computer**, create the runner token. It is shown once, only its digest is stored, and it can only claim and report launches of this workspace: no MCP, no other API. **Replace** or **Revoke** stops the old one at once.
3. Save `runner.json` next to `cli.json` (macOS `~/Library/Application Support/plandillo/`, Linux `~/.config/plandillo/`, Windows `%AppData%\plandillo\`; `PLANDILLO_RUNNER_CONFIG` sets another path), readable only by the user:

```json
{
  "url": "https://plans.example.com",
  "token": "plr_…",
  "repos": { "https://github.com/owner/name": "/Users/me/code/name" }
}
```

`repos` maps the repository exactly as the project shows it (`owner/name` means `https://github.com/owner/name`) to the absolute path of its checkout; the runner claims only these. Optional: `name` (shown on the card, up to 64 characters; default the host name without `.local`, cut to 64), `codex` (the executable; default `codex`), `approval_policy` (default `never`) and `sandbox` (default `workspace-write`). With `never`, Codex runs commands and edits files inside the sandbox without asking anyone, and anything that would need approval fails; the runner refuses every approval request Codex sends, so a stricter policy makes such steps fail rather than wait. `workspace-write` lets Codex write only inside the checkout. Review the result in the Codex chat. `url` defaults to the CLI's board; `PLANDILLO_RUNNER_TOKEN` overrides `token`.
4. Run `plandillo-cli runner` and keep it running (a terminal, or launchd/systemd). Ctrl+C or SIGTERM stops it; launches it was running are reported as failed.

The card shows the state: queued, claimed, running, done (Codex finished its first turn) or failed with the reason; **Cancel** works while queued. A launch no runner claims within 15 minutes expires, and one whose runner stops reporting for 2 minutes fails; a repeated click while a launch is open does not start a second thread. **Open chat** opens `codex://threads/<id>` in the Codex app on that computer. The runner starts `codex app-server` per launch and uses its documented `initialize`, `thread/start` (`cwd`, `approvalPolicy`, `sandbox`) and `turn/start` methods.

## Diagnose a connection

| Observation | Next check |
|---|---|
| Skills are visible but no planner tools | Check that the selected workspace has a registered HTTP MCP connection and restart the client. On Code Mode, seeing only `code` is expected. |
| Connection refused | Check that the configured host and port are reachable from the client. For a local installation check whether the Plandillo process or container is running. |
| The plugin connects to localhost, but the board is elsewhere | The plugin defaults to `http://localhost:7777/mcp`. In Claude Code, set `PLANDILLO_URL` to the board's `/mcp` URL and start a new session. Codex keeps the plugin address fixed; run the board installer from Integrations. |
| HTTP 401 | Use the client’s MCP login again for this endpoint after expiry or revocation. For a manually configured bearer, check the workspace and the client’s secret after rotation. |
| HTTP 403 | Check the failing host/origin against the operator's permitted hosts. Use the public URL shown in Integrations for a hosted board. |
| Read succeeds, write is missing or returns `forbidden` | Check both the approved OAuth permissions and the workspace’s access mode. Authorize again to request additional access. |
| A specific tool is missing or returns `tool_disabled` | Check its switch in Integrations. Fresh installations disable `delete_tasks`. |
| Code Mode returns `unavailable` | In selfhost, the operator checks the isolated worker. Ordinary MCP uses its own endpoint and the same workspace policy. |
| `plandillo-cli` exits with 3 | Run `plandillo-cli status`. Sign in again with `login`; a browser sign-in expires when the owner revokes it in **Connected apps**, a workspace token when it is rotated. `forbidden:` means read-only access or a switched-off tool. |
| A launch stays queued or expires | Check that `plandillo-cli runner` is running (Integrations shows when it last asked) and that `repos` in `runner.json` names the repository exactly as the project does. Exit 3 from the runner means the token was replaced or revoked; any other exit names what the board refused. It retries only network failures and a busy board. |
| A launch fails at once | The card shows Codex's message. Check that `codex` runs in that checkout and is signed in, or set `codex` in `runner.json` to its full path. |
| `plandillo-cli` exits with 4 | Check the address in `status` (`--url`, `PLANDILLO_URL` or the saved sign-in) and that the board is running. |
| The cause is unclear | Run **Check connection** in Integrations. It checks the server, MCP protocol, token, allowed hosts and database. Compare with the client's error and the call log. |

For starting a new server, administrator bootstrap and worker configuration, see the [hosting guide](https://github.com/huntly-digital/plandillo/blob/main/docs/hosting.md).

## Optional session reminders

Install hooks only when the user wants reminders for tracked work. Merge these entries into the existing `hooks` object. Claude Code accepts project-level `.claude/settings.json`; Codex uses `~/.codex/hooks.json`, which applies across projects. The Integrations tab also provides a copy button.

```json
{
  "hooks": {
    "SessionStart": [{ "hooks": [{ "type": "command", "command": "plandillo-cli hook session-start" }] }],
    "Stop": [{ "hooks": [{ "type": "command", "command": "plandillo-cli hook stop" }] }]
  }
}
```

The hooks run `plandillo-cli`, so they work the same on macOS, Linux and Windows; install it first (see **Use the CLI**). They read no board and need no sign-in. `SessionStart` supplies a reminder and says when the installed skills are older than the CLI. `Stop` requests a final check once per turn and passes on the second stop. To keep only the startup reminder, remove the Plandillo Stop entry.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.