Skip to content

spike: Rippletide integration for agent evaluation and persistent memory #141

Closed

Description

@vybe

Overview

Rippletide is a platform with three components relevant to Trinity:

  1. Eval — Test AI agent HTTP endpoints against Q&A pairs, detect hallucinations, get pass/fail reports
  2. Context Graph — MCP server that gives agents persistent cross-session memory (entities, facts, relations in a graph)
  3. Decision Runtime — Deterministic hypergraph-based reasoning engine for < 1% hallucination rate

Integration Options

Option A: Context Graph → Per-agent persistent memory (highest value)

Trinity explicitly positions "Persistent Memory" as a pillar of deep agency, but agents currently have no cross-session memory. Rippletide's Context Graph MCP server solves this.

How it would work:

  • When creating a Trinity agent (or via a template), provision a Rippletide agent ID
  • Add to the agent's .mcp.json.template:
    "rippletide-memory": {
      "type": "url",
      "url": "https://mcp.rippletide.com/mcp?agentId=${RIPPLETIDE_AGENT_ID}"
    }
  • Store RIPPLETIDE_AGENT_ID in the agent's .env via Trinity's existing credential system
  • Add the Rippletide memory system prompt to the agent's CLAUDE.md / system prompt

What agents gain: remember, recall, relate, get_context, invalidate, list_entities, switch_agent tools called automatically by Claude.

Each agent gets an isolated context graph. The switch_agent tool supports multi-agent memory sharing.

Self-hosting option: Deploy Rippletide's graph backend as an additional service in Trinity's docker-compose.yml for data privacy and no external dependency.


Option B: Eval → Agent testing (zero friction)

Trinity's chat endpoint POST /api/agents/{name}/chat with {"message": "..."} → {"response": "..."} is already compatible with Rippletide's CLI via custom body/response-field flags:

rippletide eval \
  -a http://localhost:8000/api/agents/my-agent/chat \
  -H "Authorization: Bearer TOKEN" \
  -B '{"message": "{question}"}' \
  -rf "response"

No code changes needed — works today. Deeper integration: add an "Eval" tab in the Agent Detail view that accepts a qanda.json and shows per-question pass/fail results with hallucination detection. Useful for agent QA before promotion to production.


Option C: Decision Runtime → Niche, high complexity

Requires restructuring agent knowledge into hypergraph nodes (Q&A pairs + tags + actions + state predicates) and routing chat through Rippletide's reasoning engine. Only applicable to deterministic customer-facing bots. Not recommended as a general Trinity feature.


Effort / Value Matrix

Component Effort Value Recommendation
Context Graph Low–Medium High — persistent agent memory Start here
Eval Very low Medium — agent QA/CI CLI works now; UI integration is additive
Decision Runtime High Low (narrow use case) Skip for now

Acceptance Criteria

Context Graph (Option A):

  • Agent template supports optional RIPPLETIDE_AGENT_ID credential
  • .mcp.json.template includes Rippletide MCP entry when credential is set
  • Memory system prompt injected into agent system prompt
  • Documentation updated for enabling persistent memory on an agent

Eval (Option B — UI integration):

  • Agent Detail page includes an "Eval" tab
  • User can upload or paste a qanda.json Q&A set
  • Evaluation runs against the agent's /chat endpoint via Rippletide API
  • Results shown per question with pass/fail label and justification

References

Activity

  1. added
    priority-p2
    type-feature
    on Mar 16, 2026
  2. changed the title [-]feat: Integrate Rippletide for agent evaluation and persistent memory[/-] [+]spike: Rippletide integration for agent evaluation and persistent memory[/+] on Mar 16, 2026
  3. vybe commented on Apr 4, 2026

    @vybe
    ContributorAuthor

    Closing — vendor-specific spike (Rippletide) with no activity. Can be reopened if the integration becomes relevant again.

  4. added
    complexity-low
    on Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-lowpriority-p2type-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions