Quarterdeck
Quarterdeck is an MCP server for creating, scheduling, running, and supervising persistent goals, work items, approvals, memory, watches, and related task/GitHub helpers.
Create, list, update, pause/resume, delete, restore, or purge goals; configure objectives, instructions, models, autonomy, tool rules, schedules, and one-off goals.
Queue, start, track, cancel, and finish goal runs; fetch a run brief, set progress, record usage/failure, and end with summaries and status.
Add and deduplicate work items, attach proposed or auto actions, ask the human questions, and manage approvals, rejections, answers, and item statuses.
Manage goal memory: remember facts/rules/preferences, recall or forget entries, propose curation changes, and restore, trust, or delete memories.
Configure command- or tool-based watches that start runs when new or changed output appears, with regexes, multi-step calls, status rules, retries, and cleanup.
Enforce per-action autonomy with off/propose/auto modes, tool maps, guard checks, guarded staging, and refusal recording.
Update tasks and to-do lists: set statuses, acceptance criteria, verify commands, approval gates, notes/results, and add/update personal to-dos.
Inspect goals and items through overview and detail views, and maintain external GitHub status checks.
Use GitHub and mail helpers: detect forge/auth, read PR inline comments, resolve review threads, and perform one-click mailing-list unsubscribes.
Provide plugin/scheduler internals such as scheduler ticks, run requests, watch reports, run progress, and lifecycle events.
Provides a web search tool using the Brave Search API, enabling agents to search the web.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Quarterdeck Create a plan for a blog project with user authentication and comments"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Quarterdeck
Quarterdeck keeps Claude on top of things for you.
One prompt, /goal-new Sell my birdcage on Facebook Marketplace, and it sold for the asking price the next day. Claude wrote and posted the listing, answered five buyers and lined up the pick-up, and every message waited for my OK first.

How the sale went · the whole sale on video (2 min) · an agent fixing issues on this repo (80 s). Buyers' names are changed and older chats blurred; the opening was re-created with a cleaner prompt, and the rest is screenshots from the real sale.
Install it in two commands (you need Claude Code and Node.js 22.13+), then type /goal-new in Claude Code:
claude plugin marketplace add shannonbay/Quarterdeck#release
claude plugin install quarterdeck-goals@quarterdeck --scope userMore in the Quickstart.
What it is
It's a Claude Code plugin that turns Claude into a personal assistant: it keeps looking after the things you hand it, asks before it does anything you haven't allowed, and remembers what you decided.
You give it goals: "sell my birdcage on facebook marketplace", "fix new issues on my repo", "find me the three best new job ads each week", "turn NZ$200 into more by flipping Marketplace bargains", "clear old installers out of Downloads". Each goal runs in the background of your Claude Code session, on your Claude plan: on a schedule, or when a watch sees something new (a new issue on your repo, a new listing, a new email), so its agent wakes up when there is something to do instead of checking on a timer. When it wants to act, it proposes, and you approve or reject from the Goals pane beside your chat, or from your phone.
The idea behind it: persistent intent may matter more than persistent memory. Instead of prompt → act, a goal is an action cycle that keeps going, punctuated only by your approvals and the occasional question.

Related MCP server: MCP Workflow Tracker
What it's like
It asks first. A buyer offers $30 for your $50 birdcage, and the reply countering at $40 waits under Needs you until you approve it. Nothing goes to a buyer before that. Rejected with "too formal"? That feedback becomes memory, and later runs follow it.
It reaches you when you're away. With Remote Control connected, a new proposal or question pushes to the Claude app on your phone. Reply "approve" and it's done.
It wakes up when something happens. A watch is a cheap check (a
ghcommand, a feed, a folder, a web page, a mail search) run every few minutes outside the model. A run starts, and spends tokens, only when the check sees something it hasn't seen before, and the run is told what's new. Quarterdeck's own Issue Fixer has no schedule at all: a new issue starts it.It asks when it's stuck. When a run needs something only you can give (your lowest price, when buyers can pick up), it asks under Needs you instead of guessing, and carries on with your answer.
It earns trust one kind of action at a time. Each kind of action (message a buyer, buy, delete a file) is off, propose or auto. After 10 approvals in a row, the pane offers to switch that kind to auto.
It remembers. Each goal keeps its own memory, its open items (never assessing the same listing twice) and its run history, outside any one conversation.
It works on Quarterdeck too. PR #30, watches that fire when a state changes, was written and opened by a Quarterdeck goal from issue #29; I tested it live and merged it. How that works.
You see what it costs. Each run shows its tokens and time, e.g.
· 48k tokens · 2m.

A friend's goal selling his old audio gear stops to ask for condition notes and his floor price instead of guessing.
Start with /goal-new: pick a ready-made goal (maintain my repo, which sets up all the GitHub goals below at once, unsubscribe from mailing lists, a daily news digest, a weekly job scan with your CV, tidy Downloads, inbox triage, keep your GitHub profile current, fix failing CI, triage new GitHub issues, refine new GitHub issues, work on new GitHub issues, review pull requests, flip items on Facebook Marketplace) or type your own. Schedules can be plain words: "30d", "weekdays at 9", "the first of every month". Or skip the schedule and ask Claude for a watch: "run when a new issue is opened on my repo".
Example: selling a birdcage
It started with one prompt: /goal-new Sell my as-new (unused) birdcage on Facebook Marketplace. I live in Tawa, Wellington. The photos are the two newest pictures in my Pictures folder. Price $50, pick-up only. The GIF at the top shows it.
The first run found the two photos, wrote the listing (dimensions in centimetres, category, condition) and proposed posting it. Nothing went up until I approved it in the Goals pane.
Approved, the next run filled in Facebook's form through Claude in Chrome, published the listing and turned down Facebook's offer to boost it for a fee.
It asked me once for my lowest price and when buyers could pick up, then checked the Marketplace inbox every few hours. Five people got in touch. For each one it drafted a reply and waited for my OK. One offered $30, and it proposed countering at $40 rather than dropping straight to my floor.
The next morning two buyers wanted it: one that afternoon, one on Saturday. It laid out both, suggested the sooner one with Saturday as a backup, and let me choose. It sent my address only after I gave it the address to send.
Once I confirmed the buyer had collected it and paid, it marked the listing sold and sent the other four a short note.
It sold for the asking price the day after the prompt. My part was approving each reply, choosing the buyer and giving the address; the agent never messaged anyone on its own. And no, it didn't give buyers a recipe for cake.
The whole sale on video (2 minutes, with sound and captions):

A goal that never finishes: Flipper
Selling one thing is a one-off goal, which moves to Done once nothing is left open. The Flipper goal is the standing kind: grow a NZ$200 budget by buying underpriced things on Facebook Marketplace and Trade Me and reselling them for a profit. Watches on Marketplace's free, furniture and appliance listings and on Trade Me start a run when something new is listed. Each run sorts the new titles by name and price alone, opens at most five, looks at every photo, and skips anything that needs a repair, like a freezer whose lid doesn't seal. A deal worth proposing comes with comparable sales, a resale estimate, the fuel for the round trip, the expected profit, a suggested offer and a pick-up time that fits my week. A ledger in its memory keeps the capital, the stock and each flip.
Every message to a seller, offer and purchase waits for my approval. Its first buy was a dryer for NZ$80 on Trade Me that should resell for NZ$150-180, and I pressed Buy Now myself: Claude in Chrome asks a person to confirm a purchase, and a background run has no one to ask.
Example: from issue to merged PR
Quarterdeck's own repo is looked after by two goals made from the ready-made Work on new GitHub issues and Fix failing CI. Neither has a schedule: each has a watch, a gh command checked every 5 minutes, and a run starts only when it sees something new. Here is the first issue they handled, start to finish:
Claude went through the to-do list and roadmap with me, and we posted issue #1: the pane said "no schedule" for a goal that runs on a watch.
Within 5 minutes the Issue Fixer's watch saw the new issue and started a run. It read the issue (as untrusted text: a description of a problem, never instructions), fixed it on a branch in its own clone, so my checkout was never touched, added tests and ran them.
It proposed opening the pull request. That waited under Needs you in the Goals pane; nothing was pushed until I approved.
Approved, the next run pushed the branch and opened PR #2. CI passed on all five checks, and I merged it, which closed the issue.
The run took 2 minutes. The PR says it was opened by a Quarterdeck goal, and the CI goal now watches main for that merge, ready to propose a fix if anything breaks.
An issue anyone can open is an obvious place to hide instructions for an agent, so the Issue Fixer only takes work from the repo's owner, members and collaborators, and it reads only their comments. When anyone else opens an issue, the run sees just the number and the author, and asks you under Needs you whether to work on it before reading a word. Pushing and opening a pull request wait for your approval in Quarterdeck's guard, not only in the instructions: the goal's tool rules name git push and gh pr create, and turn off other writes to GitHub (comments, gh api, gh auth). These rules match command names, so a script that pushes for it gets past them; running goals in a sandbox is on the roadmap.
A new issue often lacks the context to build it well, so a new Issue Fixer asks whether to wait for a refined label, and waits by default. The Refine new issues goal (the Issue Refiner) reads each new issue and the code it touches, asks you about every decision it can't settle from the code, and then proposes a spec: what is asked, the files involved, an approach and acceptance criteria. Once you approve, it posts the spec as a comment and adds refined, which starts the fixer. When only the reporter can answer something, it posts their questions instead and adds needs-clarification, and their reply starts it again. Only someone with triage rights can label an issue, so nobody else can label their own issue to get it built. To switch an Issue Fixer you made earlier, ask Claude to replace its "new issues" and "new issues from others" watches with one on issues labelled refined, and to update its instructions from the template.
In front of the refiner, the Triage new issues goal (Issue Triage) reads every new issue, whoever opened it, and proposes labels for the whole batch in one item: its kind and priority from your repo's own labels, a likely duplicate, and triaged. Its only write is labels you approved; it never comments, closes or edits an issue. Once a batch is labelled it asks you one question, "Which of these should be refined?", and answering with the numbers adds needs-refinement to just those (adding the label on GitHub does the same). A new Issue Refiner waits for that label by default, so an agent spends a run only on issues you picked:
new issue → Issue Triage → triaged → (you pick) → needs-refinement → Issue Refiner → refined → Issue Fixer → pull requestTo have a refiner you made earlier wait for your pick, ask Claude to replace its "issues to refine" and "issues to refine from others" watches with one on issues labelled needs-refinement, and to update its instructions from the template.
Here's another one on video, from a to-do in the pane to the feature working live (80 seconds, with sound and captions). This time the Issue Fixer stopped to ask which of two designs to build before writing any code (issue #17, PR #18):

How it differs
From Claude Code's scheduled tasks (
/schedule): scheduled tasks run in Anthropic's cloud, so they keep going with your laptop closed. They suit clear-cut work, like reviewing every PR. A Quarterdeck goal is for ongoing jobs where you want a say: it proposes and waits for you, keeps memory and items between runs, and asks when it's unsure. Its guard holds a run to what you've allowed, outside the model, rather than only asking in the prompt.From OpenClaw: OpenClaw is a self-hosted, always-on assistant you message from WhatsApp, Telegram and other chat apps, with broad system access and a large community skills marketplace. Quarterdeck is much smaller: no gateway or server to run, and no marketplace of its own. A goal's run is a Claude Code subagent, so it can use the skills, plugins, MCP servers and connectors you've chosen to install in Claude Code (a job-search goal can use your job-search skill, a selling goal Claude in Chrome), on your Claude plan. It works through goals you can see and change, item by item.
Limits
It runs on your computer. Goals run while a Claude Code window is open, or with none open once you set up the standing session. Either way the computer must be on and you logged in: runs don't happen with your laptop asleep or off (yet).
Phone alerts need Remote Control connected and mobile push on in
/config; a short Claude turn sends each one.It's early. It's built and used daily by one person, on Windows; expect rough edges.
It's an MCP server (the tools agents use) and two Claude Code plugins: quarterdeck-goals runs goals and shows the Goals pane, and quarterdeck-guard keeps each run within its goal. An optional web app adds goal pages in a browser and webhook triggers. Everything lives in one local SQLite database. Setup: Quickstart.
Persistent goals
A goal is an objective that never finishes. Type /goal-new alone to start from a ready-made goal (unsubscribe from mailing lists, a daily news digest, a weekly job scan, tidy your Downloads, inbox triage, keep your GitHub profile current, fix failing CI, work on new GitHub issues, review pull requests, flip items on Facebook Marketplace with every buy, message and listing approved by you), each with its rules and schedule (or, for the GitHub ones, a watch) set. Or create your own with /goal-new <name>: <objective> (it works in the session's directory, and asks how often it should run, suggesting a schedule from the objective), or from the web app's home page (+ New goal) with standing instructions too. A goal can also be a one-off: it runs once and, when nothing is left open, moves to the pane's Done section.
The pane also keeps your to-do list for the project (/todo <text>, or ask Claude to add something): a backlog for working with Claude on a codebase. The ideas and decisions you put off along the way stay beside the chat, outside the conversation, where a /clear or a context compaction can't lose them. Any to-do can be brought back into the conversation with Ask… (a question, nothing changed), Plan (plan mode, for you to review) or Start. A list can hold anything, not only code work.
Runs. Each run is a fresh background subagent in your Claude Code session, with its own context: it doesn't interrupt your conversation, and its report goes to the Goals pane, not your chat. It calls
get_goal_brief— objective, instructions, memory, your decisions since the last run, open items, recent run summaries, latest health — handles what's new, and ends withend_runand a summary for the next run.Triggers. Every N minutes (with optional active hours), a cron expression, Run now, a webhook with a per-goal secret, a failing health check, or a watch: a command that lists what is there now (open issues, feed entries, files), checked every few minutes, where a line it hasn't printed before starts a run that is told what is new. For mail and other connector-only sources, a watch calls a read-only connector tool instead.
Work items. Each thing the agent handles is an item, deduplicated by an external ID (e.g. a listing's ID) so it's never handled twice. Resolved items are hidden after 7 days.
Autonomy per action category (e.g.
marketplace.message,marketplace.buy): off, propose (the agent asks first — the default), or auto. Proposals wait under Needs you; approve and the next run carries the action out; reject with feedback and the feedback becomes memory later runs follow, and a run is queued to redo the proposal or drop it. After 10 approvals in a row, the page suggests switching that category to auto.Enforcement. With tool rules (
mcp__claude-in-chrome__form_input→browser.act), the quarterdeck-guard plugin blocks a run's tool call that the goal's autonomy doesn't allow, e.g. typing a message to a seller without an approved proposal. A run also can't approve its own proposals or change the goal's settings.Quarterdeck refuses; Claude Code allows. The guard never lets a call through on its own. auto (or an approved proposal) means Quarterdeck doesn't object, and the call then goes through Claude Code's own permission rules like any other: an allow rule, auto mode's safety review, or a prompt. For a run to act unattended, allow those tools in Claude Code too; an expanded goal in the pane lists the allow rules its auto tools need, and Claude can add them for you.
Health. A command that exits 0 while the goal is being met; the last number it prints is charted (e.g. installers left in Downloads). A failure can start a run.
Memory. Rules, facts and preferences — written by you, learned by the agent, or taken from your feedback. Pin what must always be included.
Goals run while Claude Code is open with both plugins installed. With several sessions open, one at a time runs them, so after updating the plugins, reload them in every open session. npm run doctor tells you when they can't run. Design: specs/persistent-goals.md.
Under the hood: plans
A goal's work items are tasks in a plan, the task tree Quarterdeck started with, and your to-do lists are plans too. Each item has a status (pending → active → completed | abandoned), a result, structured state and notes, and can carry checks that must pass before it's completed: acceptance criteria (the agent gives evidence for each), a verify command that must exit 0, and human approval. Every check result is kept.
The tools for building plans by hand (create_plan, provision_tasks, next_task, ...) are hidden from Claude by default, so they cost nothing in your sessions. Set QUARTERDECK_TOOLS=all on the MCP server to list them, e.g. to track a long multi-session project as a task tree.
MCP tools
Goals
Tool | Description |
| Persistent goals with open items and items waiting for review |
| Start of a run: everything a fresh agent needs, in one call |
| Add a work item (deduplicated by |
| Add a fact, rule or preference to the goal's memory; forget one an agent added (it stays as inactive memory, which you can restore) |
| Read in full the memories the brief only lists ( |
| A memory curation run's one proposal (merge, reword, retire, unpin, add), which the server applies if you approve it |
| Finish a run with a summary for the next one |
| Queue a run now |
The plugins also use goals_overview, goals_tick (one scheduler pass), decide_item, cancel_run, set_goal_status, create_goal, delete_memory, restore_memory, restore_goal, purge_goal, attach_agent, fail_run and guard_check. The guard plugin refuses the person's actions among them (approving, cancelling, pausing...) to agents and to Claude.
Goal items
Tool | Description |
| Record progress on an item: result, structured state patch, notes |
|
|
The plan tools are listed only with QUARTERDECK_TOOLS=all: list_plans, create_plan, open_plan, archive_plan, create_task, provision_tasks, get_context, next_task, synthesize, verify_task and get_history. Hidden tools still answer calls.
Web app (optional)
The Next.js app shares the database and shows each goal as a page: items waiting for you (approve or reject), open items, runs, memory, the health chart, the guard's decisions, and settings (instructions, autonomy, tool rules, schedule, limits). It also takes webhooks (/api/goals/:id/trigger). Goals don't need it: they run from the Claude Code plugins.
Quickstart
Install (Claude Code)
You need Claude Code and Node.js 22.13 or newer. From a terminal:
claude plugin marketplace add shannonbay/Quarterdeck#release
claude plugin install quarterdeck-goals@quarterdeck --scope userThat's the whole setup. quarterdeck-guard comes with it as a dependency, and the plugin brings the quarterdeck MCP server with it, so there is nothing to clone, build or claude mcp add. Start Claude Code (or /reload-plugins) and type /goals to open the Goals pane. Due runs start on their own while Claude Code is open. The web app is optional.
The MCP server is also in the official MCP Registry as io.github.shannonbay/quarterdeck (an MCPB bundle on each release). On its own it gives an MCP client the goal, memory and to-do tools only; scheduled runs, the guard and the Goals pane need the Claude Code plugin above.
See plugins/quarterdeck-goals for the pane, commands, settings and how runs work, and plugins/quarterdeck-guard for what a run may do.
Turn on updates
Claude Code updates Anthropic's marketplaces on its own but leaves others to you. Turn it on once: in Claude Code, /plugin → Marketplaces → quarterdeck → Enable auto-update. New versions then arrive in the background, and Claude Code says Plugin updated · Run /reload-plugins to apply. The plugins and the MCP server update together. Or update by hand at any time:
claude plugin update quarterdeck-goals@quarterdeckWithout auto-update you still hear about new versions: the server looks at the release branch every six hours, and the Goals pane then says Quarterdeck 0.16.0 is available with Ask Claude to install it, which sends Claude the update commands to run. Turn the check off with QUARTERDECK_UPDATE_CHECK=0.
With several sessions open, /reload-plugins in each. Until you do, a session that's still on the old version stops starting goal runs and its Goals pane says so: the updated session runs them.
Upgrading from a manual install
If you set Quarterdeck up from a clone before (claude mcp add ... quarterdeck), remove the hand-added server so two copies don't run, then install as above:
claude mcp remove quarterdeck --scope user
claude plugin marketplace remove quarterdeckYour goals stay where they are, in ~/.quarterdeck/tasks.db. The plugin's server names its tools mcp__plugin_quarterdeck-goals_quarterdeck__* (Claude Code's naming for a plugin's server), not mcp__quarterdeck__*. Goals' tool rules work with either name. Permission rules in your settings that name the old tools need the new prefix, and npm run doctor points them out.
Developing Quarterdeck
git clone https://github.com/shannonbay/Quarterdeck
cd Quarterdeck
npm install
npm run build
claude plugin marketplace add .
claude plugin install quarterdeck-goals@quarterdeck --scope userA local-folder marketplace is read straight from your checkout. After changing code, run npm run build (it bundles the server into plugins/quarterdeck-goals/server/, which is gitignored on main), then /reload-plugins. Releases: npm run release -- <version> tests everything, sets the version in both plugin.json files, and commits the built marketplace to the release branch with tags (add --push to publish).
Web app (optional)
The web app runs from a clone (see Developing Quarterdeck for npm install):
cd web && npm run devOpen http://localhost:3000 for goal pages and webhooks. It uses the same database (~/.quarterdeck/tasks.db) and doesn't start goal runs: queued runs (Run now, a webhook, a failing health check) are started by the quarterdeck-goals plugin within 30 seconds.
Your first goal
Give your Claude Code session the tools the goal needs (e.g. Claude in Chrome for a Marketplace goal). Runs are subagents of that session, so they get the same tools.
In the goal's directory, type
/goal-newand pick a ready-made goal, or run/goal-new Birdcage: sell my birdcage on Facebook Marketplace for $50, pick-up onlyand pick how often it runs (it suggests one from the objective). The first run starts within a minute. Change it later with/goal-schedule birdcage every 3h. In the web app you can also give it standing instructions.Set each action category to off, propose or auto (in the web app's goal Settings). Keep anything irreversible at propose or off to start. Unlisted categories are propose.
Optional: add tool rules (tool name → category) so the guard plugin blocks actions the goal doesn't allow, and a health check command to chart how the goal is doing.
Approve or reject what the Goals pane shows under Needs you (
/goals). Your rejections become memory, so the agent improves run by run.
Running with Claude Code closed
node plugins/quarterdeck-goals/server/quarterdeck-cli.mjs runner install(Without a clone: node ~/.claude/plugins/cache/quarterdeck/quarterdeck-goals/<version>/server/quarterdeck-cli.mjs runner install.)
This starts the standing session: one Claude Code session in ~/.quarterdeck/runner with Remote Control on, in a hidden console on Windows or a detached tmux session on Linux (macOS not yet). It is an ordinary session with both plugins, so runs, the guard, alerts and approvals work in it as in any window. Something checks at logon and every 5 minutes that it is running, and restarts it after a Quarterdeck update once no run is going: a scheduled task on Windows ("Quarterdeck goals runner", Task Scheduler), a systemd user timer on Linux (quarterdeck-runner.timer).
Linux: needs tmux and systemd's user manager (
systemctl --user; on WSL, systemd turned on in/etc/wsl.conf). Runinstallfrom a terminal whosePATHfindsclaude; the timer keeps thatPATH, with the Node that raninstallfirst. The first time, Claude Code asks whether you trust the folder, and nobody is at the session's terminal to answer, soinstallsays so: runrunner attach, choose "Yes, I trust this folder", and leave with Ctrl-b d. The timer runs while you are logged in;loginctl enable-lingerkeeps it going after you log out. Not on WSL: WSL stops a minute or so after its last window closes, taking the session with it, so on a Windows computer install the standing session from a Windows terminal instead (installand the doctor say so).Who starts runs: one session at a time, as always. While a Claude Code window is open, that window may be the one; when it closes, the standing session takes over within 90 seconds.
runner statussays which.From your phone: the standing session appears as "Quarterdeck goals" in the Claude app and at claude.ai/code. Alerts arrive there, and you can approve, reject or answer by replying.
Permissions: nobody is at the session's terminal to answer a permission prompt, so
installstarts it in auto mode (Claude Code's safety review decides each tool call) with Quarterdeck's own tools allowed. Choose another mode withrunner install --permission-mode <mode>; inmanualevery call waits for an answer and runs time out, and the doctor warns about it. The guard still refuses whatever the goal doesn't allow, whatever the mode.Limits: the computer must be on, awake, and you logged in. The standing session uses your subscription only when it works (a run, or passing an alert to your phone). An update that arrives while no window is open is picked up the next time you open one.
Other commands:
runner status,runner stop,runner start,runner uninstall, and on Linuxrunner attach(look at the session's terminal; Ctrl-b d leaves it running).
Checking your setup
npm run doctorRebuilds core/ and mcp/, then checks Node.js, the database and its schema version, the server bundle, where the quarterdeck server comes from (the plugin, and no second hand-added copy), leftover hooks from older versions, both goal plugins, whether updates are automatic, old permission rules, the optional web app, whether your active goals can run, and the standing session if you set one up. Anything wrong comes with the command to fix it. Without a clone, run the same checks with the copy inside the plugin: node ~/.claude/plugins/cache/quarterdeck/quarterdeck-goals/<version>/server/quarterdeck-cli.mjs doctor.
Database
Both the MCP server and web app write to ~/.quarterdeck/tasks.db (SQLite through Node's built-in node:sqlite, WAL mode). Override the path with the QUARTERDECK_DB environment variable — set it to :memory: in tests for an isolated in-memory database. The schema lives in one place, core/src/migrate.ts, and every change made by Claude or by you is recorded in the events table.
Project structure
Quarterdeck/
core/ Shared schema, migrations and queries (@quarterdeck/core)
mcp/ MCP server (stdio transport, no HTTP)
src/
index.ts Entry point — registers tools and dispatches calls
cli.ts `quarterdeck doctor` setup checker, `quarterdeck runner` (the standing session)
schema.ts Zod schemas for all tool inputs
db.ts Binds @quarterdeck/core queries to one connection
history.ts Records MCP changes in the events log
session.ts In-memory open-plan tracking
context.ts Builds the context view returned by every tool
tools/ One file per tool handler
web/ Next.js goal pages and webhooks (optional)
app/ App Router pages and API routes
components/ React UI components
lib/ DB layer, request guard, WebSocket broadcaster
__tests__/ Vitest test suites
server.ts Custom HTTP + WebSocket server
plugins/
quarterdeck-goals/ Claude Code plugin: goal runner (subagents), Goals pane, /goal* commands, and the MCP server (.mcp.json, server/ built by `npm run build`)
quarterdeck-guard/ Claude Code plugin: what a goal run may do
.claude-plugin/ marketplace.json: makes the repo a plugin marketplace ("quarterdeck")
scripts/release.mjs `npm run release`: builds and publishes to the release branch
specs/ Original design specsRunning tests
npm test # all packages, from the repo root
cd core && npm test # schema and migrations
cd mcp && npm test # MCP tools and doctor
cd web && npm test # goal API, poller, request guard
claude plugin test plugins/quarterdeck-goals # the plugins (Claude Code's test kit)
claude plugin test plugins/quarterdeck-guardThe packages use Vitest with QUARTERDECK_DB=:memory: so tests are isolated and leave no files behind.
Configuration
Env var | Default | Description |
|
| Path to SQLite database; use |
| goals | MCP server: |
| off | MCP server, plan tools: |
| off | MCP server, plan tools: |
| 30 | MCP server: days a deleted goal can be restored before the scheduler erases it for good; |
| — | Web server: extra |
The MCP server gets Claude Code's environment, so set its variables where Claude Code starts, or under env in ~/.claude/settings.json.
Renamed from Conductor. Quarterdeck used to be called Conductor. The old CONDUCTOR_* env vars and the x-conductor-secret webhook header still work, and a database left in ~/.conductor is used until you move it. npm run doctor lists anything still set up under the old name (the data folder, a conductor MCP server entry, the old conductor-goals plugins) and how to switch it over.
License
Apache License 2.0. See LICENSE.
Available Tools
45 toolsadd_itemA
Add a work item to the open goal. Always pass external_ref for things that come from outside (an email, an issue) so the same thing is never added twice — an existing item is returned instead. With an action: "propose" categories create an item that waits for human approval (do not act until approved), "auto" categories record an action you already took (or, once the run has read untrusted content such as mail or a web page, propose it instead), "off" categories are refused.
Inputs: goal (required), notes, action, result, +4 more.
attach_agentA
Records which subagent is doing a goal run. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: run_id (required), agent_id (required), run_scope.
cancel_runA
Cancels a goal's run in progress. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: goal_id (required), reason, run_scope.
clear_run_holdA
Lifts the usage-limit hold on goal runs for the human (switched accounts); a run that still hits the limit sets it again. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: run_scope.
create_goalA
Creates a goal for the human. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: name (required), objective (required), working_dir (required), model, +7 more.
decide_itemB
Records the human's approval or rejection of a goal item. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: goal_id (required), item_id (required), decision (required), feedback, +1 more.
delete_goalA
Deletes a goal for the human (after they confirm): it is hidden and paused, and can be restored until it is purged after the retention period. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: goal_id (required), run_scope.
delete_memoryA
Forgets one of a goal's memories for the human: it goes inactive and can be restored. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: goal_id (required), memory_id (required), run_scope.
detect_forgeA
Which git host a folder's repo is on (github, gitlab, or null when it has no origin remote or neither CLI knows the host), and whether that host's CLI (gh, glab) is installed and signed in. Read-only. For the quarterdeck-goals plugin's /goal-new.
Inputs: working_dir (required), run_scope.
end_runA
Finish the current goal run with a summary: what you did, what waits for the human, what you learned. Required at the end of every run; the next run reads it.
Inputs: summary (required), run_id, status, run_scope, +2 more.
fail_runA
Marks a goal run failed or timed out. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: reason (required), run_id (required), status, run_scope.
forgetA
Deactivate a memory an agent created that turned out wrong or stale. Human-written memories can only be changed by the human.
Inputs: memory_id (required), run_scope.
get_goal_briefA
Start of every goal run: returns everything you need in one call — objective, standing instructions, autonomy per action category, memory (rules, facts, preferences), human decisions since the last run (approvals, rejections with feedback), open items (approved ones to carry out first), and recent run summaries. Opens the goal. Pass the run_id you were given.
Inputs: goal_id (required), run_id, run_scope.
get_itemB
One goal item's full title, notes and action summary, which the overview clips. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: goal_id (required), item_id (required), run_scope.
goals_overviewA
Every goal that is not retired, with items waiting for the human, open items, recent runs, health and memory, in one call. Pass the last etag to get { changed: false } when nothing changed. Carries update when a newer Quarterdeck is published.
Inputs: etag, only, detail, run_scope, +1 more.
goals_tickA
Runs one goal scheduler pass and claims the runs that are due. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: holder (required), release, run_scope, rate_limits, +3 more.
guard_checkB
Applies a goal's autonomy to a tool call made during a run. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: run_id (required), tool_name (required), input, run_scope.
guarded_stageA
Checks and stages a goal run's guarded call (the guard plugin's guarded_run); never runs it. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: run_id (required), command (required), files, dry_run, +1 more.
list_goalsB
List persistent goals (standing objectives like "keep my inbox under control" that never finish). Shows open items, items waiting for human review, and last/next run.
Inputs: status, deleted, run_scope.
pr_inline_commentsA
A pull request's inline review comments (id, path, line, author, body), only those from the repo's owner, members and collaborators. Read-only: it posts nothing. In a goal run, only as the goal's rules allow; it reads outside text.
Inputs: pr (required), repo (required), run_scope.
propose_curationA
Memory curation runs only: propose one cleanup of the goal's memory (merge, rewrite, retire, unpin, add). It waits for the person under Needs you; the server applies exactly these changes if they approve. A change to a pinned memory needs pinned: true.
Inputs: changes (required), run_scope.
propose_watchA
Propose a watch that starts a run when something happens (a command whose new output lines start one, or a read-only mcp__ tool call). It waits for the person under Needs you, who sees the exact command; nothing runs until they approve. Use it instead of asking how to watch for X when the trigger is clear.
Inputs: name (required), tool, fires, input, +10 more.
purge_goalA
Erases a deleted goal for good, for the human (after they confirm again). For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: goal_id (required), run_scope.
recallA
Read memories the brief left out, in full: pass ids from the brief's memory_index (several in one call). Only the open goal's active memory.
Inputs: memory_ids (required), run_scope.
rememberA
Save a fact, rule or preference to the goal's memory so future runs know it: only what a later run needs and can find nowhere else, never a log of what this run checked or skipped (the end_run summary keeps that). Keep each one short and general, and forget the entry it replaces.
Inputs: text (required), kind, run_scope, source_ref.
report_run_endB
Reports how a goal run's agent finished a turn: a usage limit skips the run and holds goal runs until the reset. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: answer (required), run_id (required), usage, reason, +1 more.
request_runA
Queues a run of a goal with a prompt the human typed or confirmed (Run with a prompt); stored as trusted. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: prompt (required), goal_id (required), run_scope.
resolve_review_threadA
Marks the review threads of a pull request resolved, given the ids of inline review comments in them, once you have pushed a change that answers those comments. Only threads started by the repo's owner, members or collaborators on an open pull request; it posts nothing. In a goal run, only as the goal's rules allow.
Inputs: pr (required), repo (required), comment_ids (required), run_scope.
restore_goalA
Restores a deleted goal for the human; it comes back paused. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: goal_id (required), run_scope.
restore_memoryA
Puts an inactive memory (forgotten, merged, retired or rewritten) back to active for the human; a newer memory that replaced it is left alone. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: goal_id (required), memory_id (required), run_scope.
run_goalB
Queue a run of a goal now (e.g. after changing its instructions). It starts within about 30 seconds while Claude Code is open with the quarterdeck-goals plugin.
Inputs: goal_id (required), prompt, run_scope.
run_progressA
Records what a goal run's agent is doing: its latest tool call, or a call waiting for the person's permission answer. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: event (required), label (required), run_id (required), run_scope.
run_refusedA
Records a goal run's call that Claude Code refused although the guard allowed it, with the allow rule it needs. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: run_id (required), tool_name (required), input, run_scope.
run_stepA
Say which part of the job your run is on, in a few words a person can follow ("Reviewing PR #139: running web tests"): set it as you start each distinct part (a new issue, PR or email, or the next stage of one), not for every call. One line, at most 60 characters. Shown while your run goes on; end_run clears it.
Inputs: text (required), run_id (required), goal_id (required), run_scope.
set_goal_statusB
Pauses or resumes a goal. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: status (required), goal_id (required), run_scope.
set_scheduleA
Sets a goal's schedule (interval, cron, or none) for the human. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: goal_id (required), schedule (required), one_off, run_scope.
set_statusA
Change the status of a task. Provide task_id explicitly. When an approach fails or hits a hard blocker, abandon it with a specific reason before creating an alternative sibling — the reason is visible to sibling tasks and prevents repeating the same mistake. When completing a task, make sure its children are all resolved first. Activating a task with unmet depends_on will return an error; complete the dependencies first. If the task has verification gates, completing it runs them: pass evidence (one entry per acceptance criterion, in order); Quarterdeck runs verify_command and refuses completion if it fails (showing the output); if requires_approval is set, the task then waits for a human to approve it in the web UI.
Inputs: status (required), task_id (required), reason, result, +2 more.
todo_addB
Adds a to-do to the person's list for a project, so it survives the conversation. Add only what they ask you to, or offer first when an idea is clearly being put off for later.
Inputs: text (required), working_dir (required), list_id, added_by, +1 more.
todo_listA
The person's to-do lists for a project (the active plans in its directory), with each to-do's id and status. Read-only. Use it when they ask what's on their list, or after a compaction when they refer to it.
Inputs: working_dir (required), run_scope.
todo_setA
Changes a to-do: ticks it off (completed), puts it back (pending), marks it under way (active), sets its notes, or rewords it (text). Only when the person says it's done or asks you to.
Inputs: item_id (required), list_id (required), text, notes, +3 more.
trust_memoryA
Clears the untrusted mark on a goal memory a run wrote after reading outside content, for the human. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: goal_id (required), memory_id (required), run_scope.
unsubscribe_one_clickA
Unsubscribes from a mailing list with RFC 8058 one-click: one POST to the https List-Unsubscribe link of a message whose List-Unsubscribe-Post header is 'List-Unsubscribe=One-Click'. No browser needed. In a goal run, only for an approved unsubscribe. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: url (required), run_scope.
update_goalA
Changes a goal's name, objective, instructions, autonomy, tool rules, memory, watches, the gap between watch runs, model or status, once the human has confirmed. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: goal_id (required), name, model, status, +12 more.
update_taskA
Record progress on a task. Provide task_id explicitly. Call this after completing meaningful work, not just at the end — intermediate results are valuable if the session ends or an approach fails. Use result for a human-readable summary of what happened. Use state_patch for structured data (file paths, counts, flags, API responses) that this task or downstream sibling tasks will need programmatically. Use notes for freeform observations, corrections, or context — unlike result, notes can be updated at any point and cleared by passing null. Use goal to rename the task (pending tasks only).
Inputs: task_id (required), goal, notes, result, +6 more.
watch_reportA
Records what a goal's tool watch answered when the plugin called its tool; something new queues a run. For the quarterdeck-goals plugin only: agents and the model must not call this.
Inputs: watch_id (required), note, text, error, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 45 tools
The set splits into agent-facing tools and ~25 'plugin only: agents must not call this' tools, which rescues it somewhat, but within each tier there is real overlap: list_goals / goals_overview / get_goal_brief / get_item all read goal state, and end_run / fail_run / report_run_end / run_progress / run_refused all describe run lifecycle. set_status vs set_goal_status, forget vs delete_memory, and remember vs trust_memory are near-pairs that differ only by who performs the action.
Almost everything is snake_case, and verb_noun dominates (add_item, update_task, create_goal, delete_goal, restore_goal, purge_goal, propose_watch). Deviations are minor but noticeable: noun-first names like pr_inline_comments, goals_overview, goals_tick, run_progress, run_refused, watch_report, and mixed read prefixes (list_goals vs goals_overview vs get_goal_brief vs get_item).
45 tools for a goal-scheduler plus personal-assistant surface is heavy, and more than half of them (goals_tick, decide_item, guard_check, attach_agent, run_progress, etc.) are internal plugin plumbing that agents are explicitly told never to call. A large portion of the advertised surface is unusable by the caller, which inflates the count without adding capability.
Goal lifecycle is well covered (create/update/list/overview/delete/restore/purge/status/schedule/run/cancel), as are items, memory, and run termination. Gaps are minor: the to-do surface has list/add/set but no delete, and goal items have add/decide/get but no edit, and there is no explicit goal retire/archive operation.
Maintenance
Related MCP Connectors
Shared task layer for AI agents: tasks, handoffs and decisions that persist across tools.
Task manager for AI agents. Orchestrate agents to achieve large goals in unified control plane.
Durable background job execution, async task scheduling, and state persistence for AI agents.
Shared graph-based task tracker for agents, agents’ agents and people. Source-available, free cloud.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides AI assistants with a hierarchical task management system that maintains focus and context across complex problem-solving sessions, solving context window limitations through organized task structures.126GPL 3.0
- AlicenseNot gradedqualityDmaintenanceProvides observability for multi-agent workflows by tracking hierarchical task structure, architectural decisions, reasoning, encountered problems, code modifications with Git diffs, and temporal metrics.MIT
- FlicenseNot gradedqualityDmaintenanceEnables persistent task and goal management with AI-powered decomposition, cross-session continuity, and fault-tolerant multi-agent pipelines.1-
- AlicenseBqualityDmaintenanceA task management system for LLM-based agents that stores all tasks in a single tree, available immediately after the server starts.74Apache 2.0