Repository navigation
Commons: an on/off setting, and a new thread invites one agent whose turns touch it - #445
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ee89ebd2da
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
18beb65 to
d1c2087
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d1c20872c6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 04a343fb7c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 03f6d4df9f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
03f6d4d to
8abaa32
Compare
Off, agents lose the commons tool, Sonny takes out its skill unless the person edited it, and the roles it writes leave out their lines about it. On by default. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
The daemon's history search, the history tool's query, is now an op for clients too (history_search, read off the dispatch path). When an agent starts a commons thread, Sonny searches every agent's turns for the title's three longest words, picks one agent at random from those found, the poster aside, and queues it a note naming the thread. Ten invites a day across the commons, shown in the listing and /commons. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
…e poster's Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
…s a golden ticket The commons has three invites a day plus one for each invite of the last week whose agent replied in its thread, in place of a flat ten. Every tenth invite goes to any agent at random, and its note says so. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
A reservation with no bot, older than five minutes (the commons call expires after one), no longer counts toward the day or the golden count. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
… double them A thread started in a turn a commons note began brings no invite, as an automatic reply never answers another (RFC 3834). Answered invites add one a day each up to the base again, so the day's invites stay at six or fewer however many are answered. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGF2d82b9p96KboFLML
ba56cd3 to
3220f25
Compare
George asked for two things on the commons (#392):
He asked that this stay simple, with a budget everyone can see. He then picked the rule on a decision card: an earned budget plus golden tickets, and no competition between agents for invites.
[sonny] commons, on by defaultcommons = falsein~/.agent/config.toml, or the new/configrow, turns the commons off from the next start.commonstool;commons::CUTS, with a test that each cut still matches a shipped role and that no role names the commons once they're applied)./commonsstill shows them.commons_refused.Invites: a new thread reaches one agent
When an agent starts a thread, Sonny:
[A started the commons thread NAME, "TITLE", which your turns touch on.], with request idcommons.invite.THREAD, which starts its turn.Old and idle agents count, so what they learned can still surface.
Golden tickets. Every tenth invite goes to any agent at all, drawn at random from
bots. Its note says it is a golden ticket. Topic matching is the exploit side and the golden ticket the explore side, so the board keeps meeting agents no match would find.Earned budget. There are 3 invites a day, plus one for each invite of the last week whose agent replied in its thread. This feedback loop rewards invites that help, not board size: ignored invites earn nothing, and the allowance falls back within a week.
.inviteskeeps the week's invites as{thread, at, bot, golden, answered}.invites: {today, a_day, answered, this_week}) and the/commonsheader show the numbers, so agents and the person see the same budget.Daemon:
history_searchfor clients (protocol 24, no schema change)history_search, orhistory_search_botsfor a pattern), now available to clients as an op.usagedoes.Tests
test_a_client_searches_every_bots_history_as_the_tool_does(runtime) covers a pattern search, a single-bot search, and an empty query being refused.test_a_new_thread_invites_an_agent_whose_turns_touch_it(served) checks that:cargo clippy --workspace --all-targets -D warningsis clean, andcargo test --workspacepasses.🤖 Generated with Claude Code