feat: redesign agent harness with modular architecture + Responses API#90
Merged
cristipufu merged 1 commit intomainfrom Feb 27, 2026
Merged
feat: redesign agent harness with modular architecture + Responses API#90cristipufu merged 1 commit intomainfrom
cristipufu merged 1 commit intomainfrom
Conversation
Replaces the monolithic agent_service.py (873 lines) with a modular
package (agent/) featuring: typed event system, streaming responses,
parallel tool execution, context compaction, retry with backoff,
sub-agent dispatch, token tracking, and OpenAI Responses API support
for reasoning models (gpt-5.x) with thinking/reasoning UI.
- New: agent/{events,session,provider,tools,context,loop,service}.py
- Provider: Chat Completions for standard models, Responses API for
reasoning models (gpt-5.x, o-series) with URL rewrite transport
- Frontend: ThinkingCard component, streaming text deltas, token usage
- Bump version to 0.0.64
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
612dd8a to
cb96415
Compare
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.
Summary
agent_service.py(873 lines) withagent/package — events, session, provider, tools, context, loop, service modulesTextDeltaeventsasyncio.gatherdispatch_agenttool spawns isolated child loops for research taskstemperatureparam for gpt-5.x/o-series, prefix-based context window lookupTest plan
npm run buildin frontend directory succeedsuv run ruff check src/ tests/+uv run mypy src/pass clean🤖 Generated with Claude Code