Repository navigation
feat(mcp): worker agents tell Patchy what it lacks or got wrong - #1228
Merged
Merged
Conversation
allisonmahmood
force-pushed
the
feedback/portal
branch
2 times, most recently
from
November 11, 2026 14:25
1e26cf5 to
bda5bd3
Compare
allisonmahmood
force-pushed
the
feedback/mcp
branch
from
November 11, 2026 14:48
16144d7 to
7f149f3
Compare
Owner
Author
Acceptance: PASS with notesChecked Done means
Golden journeys
Focused tests and current page evidenceThe consent page at this head: At phone width: Jordan’s list before withdrawing the request and feedback: Rollback answers: match the diff. No migration or infrastructure change is added. The base store already accepts and lists surface Not run
Notes
|
allisonmahmood
force-pushed
the
feedback/portal
branch
from
November 11, 2026 15:33
124ed0c to
68681b8
Compare
allisonmahmood
force-pushed
the
feedback/mcp
branch
from
November 11, 2026 15:33
7f149f3 to
f3b09d7
Compare
A fifth fixed tool, tell_patchy { kind, text, why? }, sends Patchy's team a
request or feedback through Feedback's service as the connection's person,
with surface mcp and the client name they approved as the agent. It passes
the door's gates and agent access like the other four, and never Runtime's
admission. A request answers { id, similar, next, url }, feedback
{ id, next, url }; url is the person's page at <public origin>/feedback.
Refusals carry the store's codes. The door's instructions gain a clause
naming it and stay under 512 characters with the longest names.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…atchy Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
#1218 moved the request and feedback bounds into @patchy/api; the tool's input schema now reads them there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
allisonmahmood
force-pushed
the
feedback/mcp
branch
from
November 11, 2026 15:46
f3b09d7 to
ca3a636
Compare
Owner
Author
This was referenced Nov 11, 2026
allisonmahmood
added a commit
that referenced
this pull request
Nov 12, 2026
…ey shortcuts (#1421) ## What changed This adds release 42's What's new entry, written from `1cd6d12`. It covers everything merged since release 41's `through` (`a25a9c5`), and sets the `patchy` release to `0.42.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. | Change | PRs | | --- | --- | | New: Tell Patchy what it's missing | #1217, #1218, #1219, #1227, #1228 | | New: Turn off single-key shortcuts | #1276, #1279, #1301 | | Fixed: Typing reaches the patch again | #1407, #1412 | | Fixed: Dialogs in patches keep your place | #1420, #1255 | | Behind the scenes: plainer facts for agents building patches | #1249, #1256, #1297, #1418 | | Behind the scenes: Patchy stores teams and audiences ahead of teams | #1416 | | Patch changes: Mod+/ and `client.close()` in patchy/hotkeys; single-key shortcuts can be off; Tab wraps in plain modal dialogs | #1279, #1301, #1420 | #1376 is release 41's own entry. #1400, #1406, #1414, #1415, #1302, #1413 and #1419 are test, CI and dev tooling and need no line. The teams bridge (#1416) ships alone in this release so teams (#1417) can follow in the next one with a release to roll back to that reads its data closed. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. - **Rollback safety, from the live commit `7f93b91` (release 41) to this PR's merge.** No PR in the range is labelled `one-way`, and every Release impact answer says release 41 still works: - **#1217** adds migration `0037_feedback`, a schema release 41 never reads. **#1227** and **#1228** write into it. - **#1276** adds migration `0038_single_key_shortcuts`, a column with a default that release 41 never selects. - **#1416** adds migrations `0039_company_teams` to `0041_connection_audiences`, which hold tables that stay empty until teams ship, and widens one scope check. Its CI rehearsal ran `7f93b91 → head → 7f93b91 → head` on one set of data, and all four steps passed. - **#1279**, **#1301**, **#1255** and **#1420** change the SDK and the shell. Patches built on this release carry a `shortcutSetting` manifest field that release 41 reads without refusing, and its shell names no frame, so every shortcut stays on. - **#1218** and **#1219** add CLI commands and an optional `feedbackHint` in `--json` failures. A CLI from this release refuses to publish to an older instance before sending anything, as any mismatched release does. - Everything else is skill text, docs, tests and CI. If this release misbehaves, roll back to `7f93b91` (release 41). Written by Claude Opus 5.5 in Claude Code, through T3 Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Stacked on #1227, the dashboard's
/feedbackpage, so Patchy MCP never ships ahead of the page every answer links.What changed
People's own agents reach Patchy only through Patchy MCP, and never load the
patchyskill. The door could send a patch's missing tool to its owner, but a missing Patchy capability, or a Patchy fault, had nowhere to go.The door gains a fifth fixed tool,
tell_patchy { kind: "request" | "feedback", text, why? }. It sends Patchy's team a request or feedback as the connection's person, through #1211'sFeedbackservice, with surfacemcpand the client name the person approved as the agent. Every answer links the person's page at<instance>/feedback, where they see or withdraw what their agent sent. The door's instructions name the tool, and the consent page says an agent can do this.Closes #1214
Part of #1210
How it works
{ id, similar, next, url }, with up to three{ id, title, status, note? }. Feedback answers{ id, next, url }.nextnames no CLI command and no linking. When a match has shipped, it says to tell the person using its note. It always says they can see or withdraw what was sent aturl.urlis the public origin the door already reads (PATCHY_PUBLIC_BASE_URL) plus/feedback.whyon feedback is refused, not ignored. The store keeps exactly what was sent, so dropping a reason the agent wrote would quietly lose it. A blankwhycounts as none, as the service treats it.workbearer, the person's requests a minute, and theagent_access_offrefusal while access is off. It reads no patch, passes no patch's admission and mints no token. The service spends its ownfeedback.sends.perMinute.invalid_textwithdetails: { field },contains_secretwithdetails: { secrets: [{ field, kind }] }(never the value), andrate_limitedwithretryAfterSeconds. Atexttoo long for a request's title says a request's text is one line and the rest goes inwhy.destructiveHintleft out, the MCP default would mark it destructive.Look at
A worker agent on a local instance (
pnpm dev up brightline, Jordan via a Claude Code connection frompnpm dev mcp-token, a shipped general request written with psql as OPERATIONS.md shows):Both submissions were stored as Jordan, via the connection's client. The door's request events carry the submission's id and the two limits it spent. A grep of the dev log for the why, the feedback text and the token finds none of them.
The tool as
tools/listshows it{ "name": "tell_patchy", "title": "Tell Patchy", "description": "Send Patchy's team a feature request or feedback about Patchy itself, as the person you act for: a request when Patchy can't do something, such as an integration or capability they need; feedback when it does, but wrongly or confusingly, such as a refusal that made no sense. A patch's own missing tool goes to the patch's owner, not here. Send each once. Leave out keys and tokens, connection strings, rows, file contents, other people's personal details and pasted logs; a credential is refused. A request answers similar ones with their status, and a shipped one's note says how to use it.", "inputSchema": { "type": "object", "properties": { "kind": { "type": "string", "enum": ["request", "feedback"], "description": "request: Patchy can't do it. feedback: it does, but wrongly or confusingly." }, "text": { "type": "string", "minLength": 1, "maxLength": 4000, "description": "For a request, its title: one line saying what Patchy should do, 3–200 characters. For feedback, what happened and what you expected, up to 4,000." }, "why": { "type": "string", "maxLength": 4000, "description": "A request's reason: what the person is trying to do and why it matters. Requests only: feedback with a why is refused, so put everything in its text." } }, "required": ["kind", "text"], "additionalProperties": false }, "annotations": { "readOnlyHint": false, "destructiveHint": false, "idempotentHint": false } }The consent page gains one line in what the agent can do: "It can send requests and feedback to Patchy’s team". The screenshots this PR carried showed the consent page before the UI overhaul (#1332–#1354); the line now sits in the overhauled page's
canList, and here it is at this head, from the acceptance run:How it was verified
Tests (
packages/mcp, 77 pass;packages/auth's consent test):The revisions test lists and calls
tell_patchyon 2026-07-28's per-request envelope, then on 2025-11-25 and 2025-06-18. The access-off test now includestell_patchyand checks that nothing was stored. "Both show" reads the person's own list throughFeedback.list, the list the dashboard's page shows.pnpm verify(Node 24, as CI runs it): format, lint, typecheck, synth, postgres-concurrency, cli-smoke, install, tier2-smoke and browser passed.testandtest (bun)failed only in files this PR doesn't touch, under load from other worktrees. The CLI's stub-server files failed on a stray localGET /in their request logs;cliLook.test.tspasses alone. The PGlite files (Tables,PgliteCompanyDatabases, the Postgres dev fixture),LocalTaskProviderandRequestEventstimed out or counted a stray request, and pass alone,RequestEvents12/12 in the bun lane's config as well. After rebasing onto feat(portal): send Patchy a request or feedback, and see what you sent #1227 (one conflict, the status sentence indocs/product.md› Requests and feedback, which now names the store, the dashboard and this door as built),packages/mcppassed again (77).Rebased 2026-11-11 onto feat(portal): send Patchy a request or feedback, and see what you sent #1227 after the store and the CLI merged and main took the UI overhaul. Two conflicts: the consent line moved into the new consent page's list, and
docs/product.md's status line now names every door as built. One new commit readstell_patchy's bounds from@patchy/api, where feat(cli): patchy request and patchy feedback #1218 moved them. After it:packages/mcp77, the consent test 21 andpackages/api64 pass, with lint and typecheck.Not checked: a real worker agent choosing the tool on its own. The local Codex worker couldn't run because this machine's Codex login had expired, and the Claude worker signs in through a person's browser. The
/feedbacklink is the dashboard's page from feat(portal): send Patchy a request or feedback, and see what you sent #1227, which this stacks on.Hit every surface. These applied:
docs/API.md› Agent tools re-rendered frompackages/api/src/markdown.ts. The MCP protocol dates are unchanged.packages/mcp/GLOSSARY.md(five fixed tools, sends through Feedback), the Patchy MCP lines inGLOSSARY-MAP.md(its context and its relationship, which gains Feedback),docs/product.md› Patchy MCP (what an agent reaches, confirmation, what a client learns first, the tools, bounds, consent) and › Requests and feedback, and ADR-0014, which named four tools. Also the count in the README, Analytics' glossary and the wide event's comment, and Publishing's glossary.These did not apply: the CLI and its skills, since worker agents load none; migrations, since the store's schema already allows surface
mcp; the dev loop; company resources.Release impact
Additive: a new tool in a list clients cache for up to 24 hours. A client that cached the old list sees
tell_patchythe next time it lists. Nothing existing changes shape, and the protocol dates stay the same.mcpin thefeedbackschema, which the store from feat(feedback): Patchy stores requests and feedback #1211 already accepts and lists.tell_patchyget-32602 unknown_toolfrom it until they list again, as for any tool name the door doesn't have.Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated from T3 Code.