Skip to content

Add Perseus Context integration page#1891

Open
tcconnally wants to merge 1 commit into
google:mainfrom
tcconnally:perseus-integration
Open

Add Perseus Context integration page#1891
tcconnally wants to merge 1 commit into
google:mainfrom
tcconnally:perseus-integration

Conversation

@tcconnally

Copy link
Copy Markdown
Contributor

What

Adds an integration page for adk-perseus-context — a small ADK extension that injects a deterministically compiled context into an agent's system instruction, powered by Perseus, an open-source (MIT) context compiler.

  • docs/integrations/perseus.md (catalog frontmatter: catalog_title: Perseus Context, catalog_tags: ["code", "mcp"])
  • docs/integrations/assets/perseus.svg

The integrations catalog auto-renders from the page frontmatter, so no nav/index changes are needed.

How it works

Perseus resolves directives (@file, @search, @memory, @include) into one byte-stable context string at inference time — no retrieval index, no embeddings, no extra LLM round-trip. The package exposes two extension points, both verified against google-adk 2.3.0:

  • PerseusContextPlugin — a BasePlugin whose before_model_callback appends the compiled context via LlmRequest.append_instructions, applied Runner-wide.
  • perseus_before_model_callback — the per-agent before_model_callback variant.

It also documents consuming the Perseus MCP server through ADK's McpToolset (hence the mcp tag).

Meets the review criteria

  • Completeness/testability: pip install adk-perseus-context (on PyPI, 0.1.0); the page's examples are runnable; the package has a CI-tested suite.
  • Developer value: deterministic, index-free context with full coverage at a fixed size — complements (does not duplicate) the existing Mimir Memory page, which covers the memory lane.
  • Publishability: MIT-licensed, public repo and package.

Distinct from Mimir: Mimir = persistent memory backend; Perseus = deterministic context compiler. The page cross-links the two as a compose pair.

🤖 Generated with Claude Code

Adds docs/integrations/perseus.md (catalog tags: code, mcp) plus the
assets/perseus.svg icon. The page documents adk-perseus-context — an ADK
plugin / before_model_callback that injects a deterministically compiled
Perseus context into the system instruction — and the optional Perseus MCP
server via McpToolset. The integrations catalog auto-renders from the
frontmatter, so no nav changes are needed.
@netlify

netlify Bot commented Jun 27, 2026

Copy link
Copy Markdown

Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit 70a37b7
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/6a4000bd72715a0008d198c4
😎 Deploy Preview https://deploy-preview-1891--adk-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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