Conversation
- Add description, license (MIT), repository, keywords to package.json - Update README repo URL to match renamed GitHub repo Made-with: Cursor
…gnment Complete implementation of the source-sync design spec, converting the SDK from a simplified prototype into a production-ready embedded agent runtime aligned with OpenClaw's embedded seam. Major changes: Runtime & Core: - Fix multi-turn conversation memory (agent_end message accumulation bug) - Fix API key env var fallback (process.env.ANTHROPIC_API_KEY now works) - Implement working compaction runtime with truncation strategy - Replace hardcoded 200K context window with dynamic model resolution - Add transcript repair/validation for message ordering - Add restart-safe hosted-tool continuation (single + multi-tool) - Implement first-class subagent runtime with independent child sessions - Wire steering messages and follow-up messages into agent loop - Missing credentials now fail loudly (no silent stub completions) Public API: - Remove all VisionClaw compatibility code and exports - Standardize all naming on GeneralAgent* prefix - Add session lifecycle: list, resume, fork, reset, history - Add file checkpointing and rollback API - Add dynamic MCP server management (stdio + http) - Expose full 26-hook system (19 SDK-native + 7 host-bridged) Tools: - Source-sync web_search with Brave/DuckDuckGo provider runtime - Source-sync web_fetch with readability, Firecrawl, SSRF protection - Add subagents as core built-in tool (not host-bridged) - Add apply_patch tool with unified diff support - Classify all tools: core-built-in / optional / host-bridged / out-of-scope Documentation: - Complete SDK DOCS with 8 runnable examples + API reference - Update README with full feature documentation - Update plan and design spec to reflect completion status Testing: - 133 unit/integration tests passing - E2E smoke test passing - Real API E2E verified (5/5 tests pass) Made-with: Cursor
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
Complete implementation of the General Agent SDK source-sync design spec, converting the SDK from a simplified prototype into a production-ready embedded agent runtime aligned with OpenClaw's embedded seam.
Key Changes
Runtime & Core
agentMessagesnow correctly accumulate across turns viaagent_endevent handlingprocess.env.ANTHROPIC_API_KEYandANTHROPIC_BASE_URLare now correctly resolvedthrow Error) — no silent stub completionsPublic API Surface
src/compat/visionclaw/*)GeneralAgent*prefixlistSessions,resumeSession,forkSession,reset,readSessionHistoryTools
web_searchwith Brave/DuckDuckGo dual provider runtimeweb_fetchwith readability, Firecrawl integration, SSRF protectionsubagentsas core built-in tool (independent child sessions, not host-bridged)apply_patchtool with unified diff supportDocumentation (SDK DOCS/)
Acceptance Criteria (15/15 ✅)
All 15 acceptance criteria from the design spec are fully satisfied:
Test Plan
pnpm run check— TypeScript compilation passespnpm run build— Production build succeedspnpm run test— 133 unit/integration tests passpnpm run test:e2e— Package smoke test passesnode scripts/verify-upstream-snapshot.mjs— Provenance verifiedFiles Changed