Repository navigation
feat(j5): an outside agent can message, start and stop agents - #560
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Jacksondr5
force-pushed
the
j5code/outside-agents-498
branch
from
October 12, 2026 05:40
0a9dd9d to
b971c45
Compare
Jacksondr5
force-pushed
the
j5code/outside-agents-498
branch
from
October 12, 2026 06:20
dada229 to
c7f1531
Compare
Jacksondr5
force-pushed
the
j5code/outside-agents-498
branch
from
October 12, 2026 06:49
c7f1531 to
25b8bee
Compare
Jacksondr5
added a commit
that referenced
this pull request
Oct 12, 2026
Jacksondr5
force-pushed
the
j5code/outside-agents-498
branch
from
October 12, 2026 07:16
25b8bee to
9ad520d
Compare
Jacksondr5
force-pushed
the
j5code/outside-agents-498
branch
from
October 12, 2026 07:30
9ad520d to
69791c2
Compare
4 of 8 tasks
Jacksondr5
force-pushed
the
j5code/outside-agents-498
branch
from
October 12, 2026 07:36
69791c2 to
83c224a
Compare
Jacksondr5
force-pushed
the
j5code/outside-agents-498
branch
from
October 12, 2026 19:26
83c224a to
3bdad7d
Compare
Jacksondr5
force-pushed
the
j5code/outside-agents-498
branch
from
October 12, 2026 20:27
3bdad7d to
988c18a
Compare
Jacksondr5
force-pushed
the
j5code/outside-agents-498
branch
from
October 12, 2026 20:49
988c18a to
05b67c9
Compare
Jacksondr5
force-pushed
the
j5code/outside-agents-498
branch
from
October 12, 2026 20:59
05b67c9 to
6bd4cb3
Compare
7 of 8 tasks
An agent signed in from outside the app (an MCP OAuth client) could read the fleet but could not message, start or stop an agent, because J5's tools all acted as a calling thread and upstream's own send and launch tools are hidden. An outside agent now has a ledger identity, one per sign-in: `outside:<session id>`, shown by the label the client registered. - j5_send_message: a plain message to an agent on this server, recorded in the receiver's project. Nothing can be delivered to an outside agent, so asks, replies and messages addressed to one are refused. - j5_spawn_agent: starts an agent in a project the caller names, at the top level, with the outside agent recorded as its spawner. - j5_list_participants and j5_stop_agent accept an outside agent. - The approved sign-in level caps every send, stop and spawn, a persona included. A read-only client changes nothing. - Tools that need a calling thread refuse an outside agent through one helper that names what to do instead. - Web names the outside agent on the thread card, the "Spawned by" line and the Fleet row. Ledger migration 33 adds `j5_a2a_outside_agent`, which keeps each label. Closes #498. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jacksondr5
force-pushed
the
j5code/outside-agents-498
branch
from
October 12, 2026 21:27
6bd4cb3 to
acc6911
Compare
Jacksondr5
changed the base branch from
j5code/spawn-519
to
j5code/remote-steer-519
October 12, 2026 21:27
|
Warning Review limit reached
This review includes 47 billable files and costs up to $11.75.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 56 minutes for your next included review. View limit details
Comment |
Jacksondr5
added a commit
that referenced
this pull request
Oct 12, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
This branch was successfully deployed
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.
Problem
An agent signed in from outside the app (Claude Code or Codex in a terminal, ChatGPT, a bot) could read the fleet on J5 but could not message, start or stop an agent. Upstream's docs promise all three, and J5 hides upstream's own send and launch tools. Closes #498.
Top of a stack: #557, then #563, then this. Review this PR's own single commit.
What changed
An outside agent gets an identity in J5's ledger, one per sign-in:
outside:<session id>, shown by the label the client registered. The design and each decision are in #498 (Jackson, 2026-10-11).j5_send_messageaccepts an outside agent. It sends plain messages to agents on this server only. Nothing can be delivered to it, so asks, replies and messages addressed to it are refused, each with the legal move named. Its message is recorded in the receiver's project, and the envelope tells the receiving agent who sent it and thatj5_send_messagecannot reply to it.j5_spawn_agentaccepts an outside agent that names a project, or asks for none. The new agent sits at the top level of its project with the outside agent as its spawner.j5_list_participants(with aproject_id) andj5_stop_agentaccept an outside agent.delegate_tasknow also requires the orchestration capability (every thread session has it), and listing a project that has no agent threads yet returns an empty listing where it returned an error.delegate_task,j5_stop_crew,j5_archive_crewandj5_clear_own_asktell an outside agent to start an agent and brief it. One helper makes that refusal for every thread-only tool.A new table,
j5_a2a_outside_agent(ledger migration 33), keeps each outside agent's label for the envelope and the clients.UI changes
Web only, captured at 1280×800 on the live-test servers. Every state is new: on the base (#557) an outside agent's send and spawn are refused, so there is no "before" to show.
No video was captured in this pass, so the shots do not show the queued row turning into a delivered card.
Live testing
Pass, at
25b8bee1a3against baseaf1d67b344, by a Peer Agent followingj5-live-test. Report:test-reports/j5code-outside-agents-498.md. The head has moved since.Re-test: pass, at the final head
acc6911d06, by a second Peer Agent. Report:test-reports/j5code-outside-agents-498-retest.md. Since25b8bee1a3the branch was rebased over #557 and #563, the person's row in a listing changed beneath it, and the envelope and first-turn wording changed. Ran live on that head: an outside agent's listing carries the listed project's id and title on the person's row; a plain send lands with the new envelope and the card hides it; a refused ask; a spawn with the new first-turn line; and on two peered servers, an in-app steer into a busy remote agent, a refused steer with its notice, and an outside agent's send to a remote agent refused. Not repeated on this head: the rest of the first pass (Claude turns, restarts, migration, read-only sign-in, revoke).Ran live: a real OAuth sign-in as an outside agent; listing, sending, spawning, retrying and stopping; every refusal, with its text; one receiving turn each on Codex (Luna) and Claude (Haiku); one turn sent through the UI; a restart at rest and a restart during a held turn; migration 33 on a copy and on a fresh home; a refused send to an agent on a peer server; a read-only sign-in; revoking the sign-in; an in-app agent asked in plain words to answer an outside agent's message and to message another agent; the browser pass after the rebase.
Not exercised live:
j5_archive_crew,j5_clear_own_askand the playbook tools other than start and current. Unit tests cover these.j5_spawn_agent. The tool refused the test home's Haiku model because it exposes no reasoning options, so the spawn was verified on Luna.Nothing needs a person to test by hand.
Observed and not caused by this PR: a Haiku thread switched from Full access to Auto failed its next turn with "auto mode unavailable for this model"; and an in-app agent listing another, empty project sees the person's row labelled with the agent's own project.
Checklist
FORK.md(case text and file-table row) in this PR (none edited)docs/j5/product/upstream.md(D2 rewritten)AGENTS.md)docs/j5/product/and user docs rewritten where this changes themSurfaces: web changed; desktop wraps web; mobile has no matching surface. Not provider-shaped. An outside agent reaches this server only, in every connection mode. Reverse state: revoking the session in Settings → Connections retires the identity.
Built by Claude Opus 5.5 in Claude Code, with subagents for the three slices.
🤖 Generated with Claude Code