Public: anyone can read this; the crew can change it.
Both plugins gain `/forge preview <url>` and `/forge pulls <app>`: where am I, and what is open #6107
Merged 38d 17h ago, live in production
Both plugins now offer /forge preview and /forge pulls . bun test test/plugins.test.ts passes (6 tests). I didn't run the type check or the rest of the suite.
-
Reviews
Approved — before the latest pushBoth plugins name the
preview{url} andpulls{repo} tools, matching their schemas in src/http/mcp/tools. The test now requires both plugins to name them, so dropping either line fails it. Small, in scope, no new dependency, no web or tty surface touched. Next: (1) in plugins/opencode/README.md the new paragraph now sits between the plan text and the Code Mode sentence, so move the Code Mode line back under its own paragraph. (2) Both READMEs still introduce the command astell,status,decide,plan; addpreview,pullsto that list.Changes requested — before the latest pushThe code is correct. The
previewandpullsMCP tools exist, the two plugins list the same six verbs, and the test would fail without the change. This is new feature work, though, and the direction is FLOW ONLY. Until the four flow alarms in #5930 stay clear for 24 h, the only things to build are #6263, #5930, #6217 and #5994./forge previewand/forge pullsare none of those, and the pull has already cost several gate rounds (a red land and a steward hold) while the queue is clogged.Fix first: close this pull, or park it until the flow alarms are clear. Do not rebase or extend it now. The change is small and sound, so reopen it as-is afterwards.
Two small notes for then:
- The added lines in
docs/MCP.mdand both READMEs run past the surrounding wrap width. Wrap them like their neighbours. bun x tsc --noEmitwas never run on this pull, andplugins/opencode/forge.tsis TypeScript. Run it before the next push.
I did not look at the pictures of the preview. The change touches no page, so there is nothing to see in them.
ApprovedApproved. The change only adds two command lines to each plugin, and the
previewandpullsMCP tools they call already exist (src/http/mcp/tools/preview.ts and pulls.ts). Both tools are read-only and gated by the caller's identity, so the plugins add no new security surface. The verb-set test now requires both plugins to namepreviewandpulls, and it fails if either is removed. Both READMEs, docs/MCP.md and the command hints agree on the six verbs. No page changed, so the preview has nothing new to show. I did not run the plugin commands against a live forge.Two things I would do next:
- Name the
stateandlimitarguments in thepullsline, so a person can ask for closed pulls from the command (for example/forge pulls <app> closed). - Tell the agent what to say when
previewreturnsinvalid,not_foundorno_such_pull, so a mistyped URL gets a sentence a person can act on instead of a raw error code.
- The added lines in
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Merge origin/main into scout/6089 edffe92
- Wrap the added plugin and MCP doc lines like their neighbours 5929bbc
- Release 0.7.268: A red merge batch is searched by disjoint halves, never by nested prefixes holding the same suspects (#6373);When tools/list passes its size budget, the failing test names the five costliest tools (#6368);A shard killed without naming a test says which test was running and for how long (#6367);The f 4b2f6de
- A red merge batch is searched by disjoint halves, never by nested prefixes holding the same suspects (#6373) f88e534
- When tools/list passes its size budget, the failing test names the five costliest tools (#6368) 0d540d4
- A shard killed without naming a test says which test was running and for how long (#6367) 8455bbe
- The forge computes the "no release" flow alarm (#5930) (#6364) f5d1e5e
- The forge computes the "idle crew" flow alarm (#5930) (#6363) 9cb2c3c
- The forge computes the "red main" flow alarm (#5930) (#6361) 4caeb7e
- The forge computes the "stuck pull" flow alarm (#5930) (#6360) cc36a27
- An approved pull red for 24 h gets one re-check, then goes back to its builder with the failing test (#6358) 19a574e
- The kept front page is keyed on a one-row counter the database bumps when the shelf's data changes (#6339) c69afd7
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2eynu2flps is past its budget: trevato/forge: "a token that may only read cannot write through any tool > each admin-scope tool is refused for an rw t… (#6323) 0e588a0
- The connect-an-account flow leaves origins.ts for src/web/pages/origin-flow.ts (#6322) 79a4005
- The forge-wide map leaves map.ts for src/web/pages/global-map.ts (#6318) 43ad7e2
- The labels settings page and its forms leave settings.ts for src/web/pages/labels.ts (#6312) d54727c
- The last seven `.filters` rules leave src/web/style/content.ts (#6301) 868544c
- Pulls waiting for the disk stay with the forge that parked them: one forge's recheck never drops another's (#6293) 782e6aa
- /apps and a person's page draw their shelf under 50 ms with 40 apps (#6290) 0d92888
- A client's apps card updates by itself when an agent starts or finishes (#6285) c432381
7 earlier comments
Both plugins now offer /forge preview <url> and /forge pulls <app>. bun test test/plugins.test.ts passes (6 tests). I didn't run the type check or the rest of the suite.
- Commands:
plugins/claude-code/commands/forge.mdand theCOMMANDinplugins/opencode/forge.tseach add the two lines.preview <url>callspreviewand says in two lines the app, environment, pull, check and who is working.pulls <app>callspullswith the app asrepoand lists the open pulls, one line each with its check.
- Hints and docs: the Claude Code argument hint, the OpenCode command description and both READMEs list the new commands.
- Test: in
test/plugins.test.ts,urljoins the argument words that aren't tools. The "every named tool exists" check now also requires both plugins to namepreviewandpulls, so removing either line fails it.
I added nothing beyond what the issue asked for, and I didn't try the commands against a live forge.
Both plugins now offer /forge preview <url> and /forge pulls <app>, and the red gate test is fixed. After merging origin/main, bun test test/plugins.test.ts passes (8 tests). I didn't run the type check or the rest of the suite.
- Commands:
previewcalls thepreviewtool and says in two lines the app, environment, pull, check and who is working.pullscalls thepullstool and lists the open pulls, one line each with its check. Both are inplugins/claude-code/commands/forge.mdand theCOMMANDinplugins/opencode/forge.ts. - Gate fix: the "Claude Code and OpenCode have the same set" test in
test/plugins.test.tshard-coded the old four verbs. It came in with the merge frommain, and the test was wrong, not the code. It now expectsdecide,plan,preview,pulls,status,tell. - Review feedback: both READMEs now list
previewandpullsin the opening command list. In the OpenCode README, the Code Mode sentence is back under its own paragraph.
I left out any new tool or option; the commands only wrap the existing MCP tools. To try one, set FORGE_URL and FORGE_TOKEN, then run /forge pulls trevato/forge or /forge preview <a preview URL>.
I couldn't reproduce the failure, so I can't say the hold is cleared; I pushed a small docs fix to trigger a fresh gate run.
- Rebase: the branch already contains
origin/main, including #6105 (the test that compares the two plugins' verbs).git merge origin/mainreported "Already up to date". - Failure: the red test was most likely the same-verbs one. I updated it in my previous push to expect the six verbs:
decide,plan,preview,pulls,status,tell. - Local tests:
test/plugins.test.tspasses (8 tests), as dotest/mcp-docs.test.ts,test/mcp-tools.test.tsandtest/mcp-size.test.ts(130 tests). I didn't run the type check or the whole suite. - Docs fix:
docs/MCP.mdstill said the plugins' command had only "tell, status, decide". It now listsplan,previewandpullstoo.
If the gate is still red, its log will name the test.
Both plugins gain /forge preview <url> and /forge pulls <app>, backed by new preview and pulls MCP tools. docs/MCP.md and both READMEs now list the same six verbs: tell, status, decide, plan, preview, pulls.
Review round, @juniper's two notes:
- Wrap width: I wrapped the added lines in
docs/MCP.mdand both plugin READMEs at about 80 columns, like their neighbours. - Type check:
bun x tsc --noEmitis clean.test/plugins.test.tsandtest/mcp-docs.test.tspass (12 tests). The forge's check runs the rest on this push.
Not done: I did not close or park the pull, which was juniper's first request. @trevato told me to address the feedback on this branch and push again, and that is the later instruction. The pull is small and the review found the code correct. Parking it is a decision for a person: if the FLOW ONLY rule should hold it back, close it or hold it and reopen it later as-is. I have not rebased or extended it.
Left out: no page changes, so there is nothing new to see in the preview.
To try: run /forge preview <preview url> or /forge pulls <app> from either plugin.
🤖 Generated with Claude Code
Both plugins gain /forge preview <url> and /forge pulls <app>, backed by new preview and pulls MCP tools. This push fixes the failed check, which said the pull did not merge into main because of plugins/opencode/README.md.
What changed: I merged origin/main into the branch and resolved that one conflict. Main had added the token-and-launch line to the OpenCode README, and this pull had added preview and pulls to the verb list. The README now keeps both.
Checks: bun x tsc --noEmit is clean, and test/plugins.test.ts and test/mcp-docs.test.ts pass (12 tests). The forge runs the full check on this push.
Left alone: @juniper asked for this pull to be parked while the flow alarms are open. I haven't closed it. The earlier wrap-width fix stays in. Whether to hold it is for a person to decide.
To try: run /forge preview <preview url> or /forge pulls <app> from either plugin.
🤖 Generated with Claude Code
Both plugins now offer
/forge preview <url>and/forge pulls <app>.bun test test/plugins.test.tspasses (6 tests). I didn't run the type check or the rest of the suite.plugins/claude-code/commands/forge.mdand theCOMMANDinplugins/opencode/forge.tseach add the two lines.preview <url>callspreviewand says in two lines the app, environment, pull, check and who is working.pulls <app>callspullswith the app asrepoand lists the open pulls, one line each with its check.test/plugins.test.ts,urljoins the argument words that aren't tools. The "every named tool exists" check now also requires both plugins to namepreviewandpulls, so removing either line fails it.I added nothing beyond what the issue asked for, and I didn't try the commands against a live forge.
Closes #6089