Skip to content

feat: ecosystem strengthening - caching, MCP servers, cascade routing, integration tests#1

Merged
Patel230 merged 9 commits into
mainfrom
dev
May 8, 2026
Merged

feat: ecosystem strengthening - caching, MCP servers, cascade routing, integration tests#1
Patel230 merged 9 commits into
mainfrom
dev

Conversation

@Patel230
Copy link
Copy Markdown
Contributor

@Patel230 Patel230 commented May 8, 2026

Summary

  • Enhanced prompt caching for Anthropic (explicit annotations) and OpenAI (cached_tokens parsing)
  • Added cascade routing for automatic model tier selection (planning→Opus, coding→Sonnet, summary→Haiku)
  • Added full pipeline integration tests (hawk→eyrie→tok→yaad→sight→inspect)
  • All 47 packages pass with race detector enabled

Test plan

  • go test -race ./... passes (47 packages, 0 failures)
  • Integration tests verify full cross-project pipeline
  • Cascade routing correctly classifies 5 task types

Patel230 added 9 commits May 7, 2026 07:09
- Dynamic viewport height adapts to input box size
- User messages wrap with full-width background
- Long words force-break at terminal width
- All slash commands now render immediately (viewDirty fix)
- Config panel arrow keys/Enter work correctly
- /model validation against known models with helpful errors
- Async model fetching with in-memory cache (prefetched at startup)
- Provider switch auto-sets first available model
- API key entry shows correct masked input field
- Mouse wheel scrolling enabled
- Tighter spacing between tool_use/tool_result pairs
- Tool results show more context (800 chars) with truncation indicator
Responses that hit max_tokens with text-only content now auto-continue
(up to 3 continuations, 32K token cap). No more truncated responses.
- Initialize conversation DAG (SQLite) on session start
- AddUser/AddAssistant persist to DAG alongside linear messages
- /fork creates a branch from current conversation head
- /branches lists all fork points and lets you switch between them
- ForkConversation/SwitchBranch/ListBranches methods on Session
- Backward compatible: DAG is optional, legacy fork still works
- Add Tracer field to Session, initialize in NewSession
- Add session, agent-loop, and tool-level trace spans in stream.go
- Add unit tests for hawk/sight bridge (graceful degradation)
- Add unit tests for hawk/inspect bridge (ready state, fallbacks)
- Add CascadeRouter for automatic model tier selection (planning→Opus, coding→Sonnet, summary→Haiku)
- Add ClassifyTask heuristic for keyword-based task classification
- Add 5 integration tests exercising full pipeline: hawk→eyrie→tok→yaad→sight→inspect
- Tests verify cross-project data flow with mock LLM, real SQLite, and httptest servers
@Patel230 Patel230 merged commit e1f4002 into main May 8, 2026
7 checks passed
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