CodePanel
list_plans

list_plans

The CodePanel MCP tool that lists your saved plans, newest first, with each plan's status, repository and step counts, so a new session can find its work.

On this page›

list_plans returns the plans your agent saved with create_plan, newest change first, as short summaries: planId, title, status, repo, progress counts and where a sub-plan sits. It is how a new session finds the plan it should continue. It needs only the read scope, and it works only where the deployment has plan tracking turned on.

When to call it

  • At the start of a session, with status: "active", to see which plans are still open before you start something new.
  • To find one repository's plans, with repo.
  • To look for a sub-plan, with includeSubplans: true. Without it you see top-level plans only.

A summary has no steps and no nextAction. Pick a planId and call get_plan for those.

Inputs

Input Type Required Description
repo string no Repository as owner/name
status active or completed or abandoned no
includeSubplans boolean no

It only reads: the server marks it readOnlyHint: true, so clients that ask before a write can run it without asking.

All three are optional. status is active, completed or abandoned. A plan becomes completed on its own when every step is done or skipped, so filter on active to see open work.

repo must be a repository you have connected. Otherwise the call fails with Repository not found, the same answer as for a repository that belongs to someone else.

If plan tracking is off on the deployment, the call fails and lists nothing:

CodePanel: Plan tracking is off on this deployment (PLAN_TRACKING)

Your agent can't turn it on. The operator of the deployment sets PLAN_TRACKING=on.

What it returns

An object with one key, plans, sorted by last change, newest first, at most 100 long. Each plan has:

  • planId, title and status.
  • repo: the repository's owner/name, or null when the plan has none.
  • parentPlanId and parentStep (like S2): both null for a top-level plan; for a sub-plan, the plan and step it expands.
  • progress: total, done, skipped, inProgress, blocked and pending step counts.
  • updatedAt: when the plan last changed, in milliseconds since the epoch.

An account with no plans gets { "plans": [] }.

Examples

These responses come from a test account on a local backend. The plans are seed data.

All top-level plans

Call
{}
Result
{
  "plans": [
    {
      "parentPlanId": null,
      "parentStep": null,
      "planId": "xd71wj8v0x96qcpb5d3vy5awws8j7y2b",
      "progress": {
        "blocked": 1,
        "done": 1,
        "inProgress": 1,
        "pending": 1,
        "skipped": 0,
        "total": 4
      },
      "repo": "codepanel-dev/api-server",
      "status": "active",
      "title": "Move sessions to signed cookies",
      "updatedAt": 1794613737488
    },
    {
      "parentPlanId": null,
      "parentStep": null,
      "planId": "xd7f0z9xe597ptw841acfse8ps8j69n7",
      "progress": {
        "blocked": 0,
        "done": 2,
        "inProgress": 0,
        "pending": 0,
        "skipped": 1,
        "total": 3
      },
      "repo": "codepanel-dev/web-app",
      "status": "completed",
      "title": "Dark mode for the settings pages",
      "updatedAt": 1794355257488
    },
    {
      "parentPlanId": null,
      "parentStep": null,
      "planId": "xd782rbw6q5vqf16qwe6pdt3md8j62sj",
      "progress": {
        "blocked": 0,
        "done": 1,
        "inProgress": 0,
        "pending": 1,
        "skipped": 0,
        "total": 2
      },
      "repo": "codepanel-dev/docs-site",
      "status": "abandoned",
      "title": "Rewrite the docs search",
      "updatedAt": 1793836857488
    }
  ]
}

The first plan is still open with one step in progress and one blocked. The second finished with one step skipped. The third was abandoned. update_plan explains how a plan ends up there.

The same step without MCP

Surface Form
CLI codepanel plans [owner/name] [--status active] [--all]; --all adds sub-plans (CLI)
HTTP API GET /plans with repo, status and includeSubplans
Dashboard The Plans page, which appears once an account has a plan

What the server tells your agent

The description your agent reads when it lists the tools:

Your saved plans, newest first: planId, title, status, repo, parentPlanId, parentStep and progress counts. Top-level plans only unless includeSubplans. Call get_plan for one plan's steps and nextAction. Needs PLAN_TRACKING on the deployment.

Last updated