Repository navigation
docs: agent session spec and interface note - #139
Open
joshrotenberg wants to merge 14 commits into
Open
joshrotenberg wants to merge 14 commits into
joshrotenberg wants to merge 14 commits into
Conversation
The proposed agent operation, the native subagent tools it mirrors, the server operations it builds on, its defaults with the runs behind them, and an evidence table updated by each procedure run.
joshrotenberg
marked this pull request as ready for review
November 1, 2026 05:45
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.
Adds two documents.
docs/agent-session-spec.md, draft 0.5.1. The spec now continues in a new repository, voga, which will be published once it has an implementation. This copy is the snapshot at 0.5.1. A spec for one interface that creates, resumes and drives headless Claude Code and Codex sessions for any caller and any task. It is independent of language and runtime. It covers:docs/agent-interface.md. The history and evidence behind the spec: the native subagent tool shapes, the trace of what each GenAgent and Ensemble layer did on the turn path, the wrapper gaps the spike found, and the evidence from runs 1 to 6.How the spec was produced
The spec started from the behaviour of the #140 spike and the evidence from procedure runs 1 to 6. The plugins and hooks cookbook supplied the host-integration facts.
Each draft was reviewed through the spike's own
agentoperation, by one Claude and one Codex session, both read-only. The same two sessions were continued across rounds. Each round's findings went into the next draft, and Appendix D of the spec lists the changes per draft.Findings recorded in the spec
CLAUDE_CODE_SESSION_ID,CLAUDE_CODE_SESSION_ATTENDED, and the desktop app's messaging socket and token. Section 5.17 makes a normative strip list.Session.total_usage/1sums those totals, so it overcounts from the second turn. See section 5.15 and Appendix A.