Projects · Planner

A task board your AI agent can work from

Most task apps stop at the to-do list. Planner gives every task a written plan, then lets you hand that task to an AI coding agent with one link. The agent reads the plan, does the work, shows its progress live under the task, and leaves a comment when it's done.

9 min read

  • next.js
  • ai agents
  • claude code
  • supabase
github.com/sawissac/planner

The idea

When you ask an AI agent to build something, the hard part is rarely the code. It's writing down what you actually want: the goal, the constraints, what to watch out for. That writing usually lives in a chat that disappears, or a doc nobody links to the task.

Planner keeps it on the task. Every task has a thought, a Markdown document for the plan. That same thought is what an agent reads when you hand the task over, and the agent's progress and results come back as comments on that same task. Planning and doing stay in one place.

The workspace

Work is organised in files (one per project or area), each with its own groups and tasks. A task has a title, its thought, a priority, a progress state, any number of assignees, and a work window that can be a single day or a range.

The same tasks show up in six views:

ViewWhat it's for
TodoA sortable, filterable table, with drag-and-drop between groups
BoardKanban columns by progress; drag a card to change its state
TimelineEach group's tasks laid out over time
ThoughtsA list of tasks with their plans open for reading and editing
AnalyticsCharts, a heatmap and a word cloud of your tasks
UsersThe people you assign tasks to, each with a short note on their role

Board columns are your progress states, so adding a column adds a state, and every change shows up in the table too. Search, sorting and filters survive a reload, and undo and redo go back up to 100 steps across tasks, groups, files and people.

Writing the plan

Thoughts and comments are written in a rich Markdown editor. Select some text and a small AI menu appears:

  • Shorten rewrites the selection more tightly.
  • Ideate treats it as an idea and adds the model's continuation after it.
  • Custom takes any instruction you type and replaces the selection with the result.

Each one is a single undoable edit, so trying an idea costs nothing.

A built-in assistant

A chat panel can run the whole workspace for you. Bring your own key for Gemini or for OpenRouter (which lists its free models), add as many keys as you like, and ask in plain language: "make a file for the Chiang Mai trip with a group per day", "move everything assigned to Mai to next week", "add a Blocked column to the board".

Behind the chat is a set of tools the model can call to create, edit and delete files, groups, tasks and people, search tasks by date or assignee, and manage board columns. It can also describe the app's own features when you ask what Planner can do.

Handing a task to an agent

This is the part Planner is built around. Every task has a Copy context button. It copies a one-line ask plus a link to that task in Planner's Plan API:

text
Do this plan
https://your-planner/api/plan/<task-id>?fileId=<file-id>

Paste that into Claude Code, and the agent:

  1. Reads the task's thought: that's the plan.
  2. Does the work in your repo.
  3. Reports what it's doing as it goes. The steps appear live under the task's comments in Planner.
  4. Posts a Done comment summarising what changed.

Copy the context of a comment instead, and the agent fixes whatever is still open in it (a Bug list, say) and marks it Resolved. Agents can also upload screenshots and attach them to a comment, or download images you attached to show them a problem.

The link carries no secret. The agent authenticates with a Plan API key (pln_…) that you create under Settings → API keys and save once on your machine:

bash
~/.claude/skills/planner-for-claude-code/scripts/planner.sh login --clipboard

Before copying, Planner saves any open drafts and syncs, so the agent reads exactly what's on your screen.

A Plan API key acts as you until you revoke it. Never commit one or paste it into a chat; the login command above reads it straight from the clipboard into a file only you can read. If a key leaks, revoke it in Settings.

Four agents, one workflow

The repo ships the same workflow for four platforms:

SkillPlatformCan edit your repoReaches localhost
planner-for-claude-codeClaude CodeYesYes
planner-for-cursorCursor (Agent)YesYes
planner-for-chatgptChatGPT, as a custom GPTNoNo; needs a public HTTPS URL
planner-for-geminiGemini, via AI Studio or a scriptNoOnly through the script

ChatGPT and Gemini can't touch your files, so for coding tasks they write the code in their reply and say in their comment that it still has to be applied.

Running the agent from Planner

Copying a link still means switching windows. For Claude Code, Planner can start the run itself. A small local server in execute-cli/claude sits between Planner and the claude CLI on your computer:

bash
pnpm claude-server

On first start it creates its own token and listens on 127.0.0.1:4319. Paste the URL and token into Settings → API keys → Claude Code server, and every task gets a Run agent button: pick a project folder, add any extra instructions, and go.

Permissions stay with you. When the agent wants to do something that needs approval (run pnpm, push with git, write outside the folder), the call pauses and Planner shows it under the task with Allow and Deny. By default, an unanswered request is denied after 10 minutes and a run is stopped after 30.

Auto mode lets Claude Code's own safety check approve routine actions and block risky ones like force pushes, so only the cases it can't decide come to you.

The bridge only binds to loopback and refuses any other host, and every call needs its token. It can still run commands on your machine, so only list tools in allowedTools that you would run without looking.

Where your data lives

Planner is local-first. There's no login wall: without an account, everything stays in your browser (IndexedDB, via localforage). It can also be installed as an app from the browser.

Sign in and turn on cloud sync, and your files sync through Supabase. Sync merges rather than overwrites: it keeps track of what this device and the server last agreed on, so it can tell your edits apart from changes made elsewhere. A change an agent makes through the Plan API shows up in your tab when you come back to it.

Images embedded in thoughts and comments are served by a separate image server (pnpm image-server, on 127.0.0.1:3033). It's paired to your account with its own token, and agents reach it through the same Plan API key.

Keyboard first

ShortcutAction
?Show every shortcut
Shift FToggle fullscreen
Shift SToggle the sidebar
Shift ZToggle focus mode
↑ ↓Move between table rows
EnterEdit the focused row
SpaceToggle done
DelDelete the row

Focus mode hides everything except the task table.

Under the hood

LayerTech
FrameworkNext.js 16, React 19
StateRedux Toolkit, TanStack Query, TanStack Table and Virtual
EditorMDXEditor (Lexical)
Chartsd3, d3-cloud
BackendSupabase (auth, Postgres, migrations)
Local storelocalforage
Side serversBun: the Claude Code bridge and the image server
Designcompacto-ui components, palettes and tokens

Run it yourself

The hosted version is at planner-alpha-green.vercel.app. To run your own:

bash
git clone https://github.com/sawissac/planner.git
cd planner
pnpm install
pnpm dev

Planner expects a Supabase project even if you never sign in. Apply the migrations in supabase/migrations to one, then put its details in .env.local:

bash
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your-publishable-key
SUPABASE_SECRET_KEY=your-secret-key

The secret key is only used on the server, by the Plan API and the image server. Never give it a NEXT_PUBLIC_ name. To run Supabase on your own machine instead, the repo includes a Docker Compose stack (copy docker/.env.example to docker/.env first):

bash
pnpm supabase:up

The Claude Code bridge and the image server are optional extras, started with pnpm claude-server and pnpm image-server (both need Bun).


Planner started as a place to write plans down before handing them to an agent, and grew into the place where the agent picks them up and reports back. Try it at planner-alpha-green.vercel.app, or read the source on GitHub.