feat(claude-agent-sdk): add Claude Agent SDK integration#1582
Open
DK09876 wants to merge 3 commits into
Open
Conversation
5 tasks
0909d50 to
816d6f2
Compare
…tools and hooks Adds hindsight-claude-agent-sdk package providing: - In-process MCP server with retain, recall, and reflect tools - Automatic memory hooks (auto-recall on prompt, auto-retain on stop) - Tool output retention via PostToolUse hooks - Global configuration and per-call overrides - 74 unit tests, CI job, and release script entry - Cookbook recipe for docs site Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…d E2E + bucketing - resolve_client() now falls back to DEFAULT_HINDSIGHT_API_URL and the HINDSIGHT_API_KEY env var when configure() was never called (it previously raised). Updated the tools + hooks unit tests to assert the cloud-default + env-key behavior. Satisfies the "default to Cloud" goal for both create_hindsight_tools and create_memory_hooks. - Add a gated tests/test_e2e.py (retain/recall/reflect MCP tools against a live Hindsight server, stdlib urllib health check — no requests dep), marked requires_real_llm; register the marker; the test-claude-agent-sdk-integration CI job now runs the deterministic bucket (-m "not requires_real_llm"). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…I_KEY from env Mirrors the tools env-key test so hook construction's cloud-default + env-key path is covered, not just the no-key default. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
816d6f2 to
bd29904
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
hindsight-claude-agent-sdkpackage underhindsight-integrations/claude-agent-sdk/UserPromptSubmit, auto-retain onStop, tool output retention onPostToolUseconfigure()with per-call overridestest.ymland release script entryTest plan
uv run pytest tests -v— 74 tests passruff check,ruff format)🤖 Generated with Claude Code