Skip to content

feat: agent sessions spike over the wrappers - #140

Draft
joshrotenberg wants to merge 7 commits into
mainfrom
feat/agent-sessions-spike
Draft

joshrotenberg wants to merge 7 commits into
mainfrom
feat/agent-sessions-spike

Conversation

@joshrotenberg

@joshrotenberg joshrotenberg commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Spike, not for merge. It implements the agent operations (agent, agent_result, agent_cancel, agent_stop, agent_sessions) directly over claude_wrapper 0.19 and codex_wrapper 0.9. One GenAgentServer.Session process per session holds the wrapper session struct and its provider resume id. No GenAgent server, Ensemble session or backend adapter is on the turn path.

What it showed

Why it does not merge here

This package depends on GenAgent, Ensemble and both adapters for its instance path, so a session layer inside it cannot show that the wrappers are enough on their own. It also needs override: true on both wrappers, because the adapters cap their versions. The plan in #139 ("Where it lives") moves the session layer into a wrappers-only library and adds an MCP and CLI adapter. gen_agent_server then becomes the library's second consumer. This branch is the seed for that library's first slice.

Checks

CI 9/9. The base suite has 141 tests, including six session tests against a fake codex. Every extension suite and the MCP release smoke pass. A live two-turn smoke passed on both providers from the dogfood release.

One process per session holds the wrapper session struct and its provider resume id. Turns run one at a time in a supervised task; prompts submitted during a turn queue. Results are held per invocation with waiters for wait_ms. No GenAgent server, Ensemble session or backend adapter is on the turn path.

Operations: agent, agent_result, agent_cancel, agent_stop, agent_sessions.
@joshrotenberg
joshrotenberg force-pushed the feat/agent-sessions-spike branch from 8c843dd to d20362f Compare November 1, 2026 13:03
@joshrotenberg joshrotenberg changed the title feat: agent sessions spike over the wrappers feat: agent sessions over the CLI wrappers Nov 1, 2026
@joshrotenberg joshrotenberg changed the title feat: agent sessions over the CLI wrappers feat: agent sessions spike over the wrappers Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant