ReMe Episodic Memory & Causal Reflection Engine

ReMe Episodic Memory & Causal Reflection Engine

@agentscope-ai/reme·v1.2.0·storage

A causal episodic memory and self-reflection engine for DeepSeek Harness. Models chronological event streams and causal chains to isolate past failures and prevent repeated mistakes.

Episodic-Memory · Causal-Graph · Reflection · Self-Correction

GitHubNPM
Installation & Integration
bash
manager:
$ pnpm add @agentscope-ai/reme

Architecture

ReMe Memory endows autonomous agents with genuine retrospective wisdom. When navigating long-horizon software engineering tasks, agents often forget early failed attempts, falling into repetitive loops and retrying already-disproven solutions. This plugin implements a causal episodic event graph inside Cordis. Every significant decision, failed assertion, and subsequent breakthrough serializes as an episodic node connected by causal edges. When the agent navigates similar decision forks, ReMe resurfaces relevant historical post-mortems, ensuring the agent learns continuously from past mistakes.

Core Features

01

Causal Graph Topology: Stores verified cause-and-effect loops rather than detached text

02

Zero-Repetition Guard: Flags previously attempted dead-ends, preventing repeated blunders

03

Chronological Post-Mortem Playback: Step through the agent's historical mental deductions

04

Compact Episodic Indexing: Scalable graph structure indexing tens of thousands of past turns

Core Workflow

01

Causal Event Capture

Logs agent actions alongside their initial hypotheses and actual sandbox outcomes.

02

Causal Graph Modeling

Links failures to their effective resolutions, compiling episodic cause-effect nodes.

03

Dilemma-Driven Retrieval

Retrieves past post-mortems when current trajectories stall or repeat errors.

04

Negative Constraint Injection

Injects verified past lessons as explicit negative constraints into active prompts.

Configuration Parameters Reference (YAML / JSON)

ParameterTypeDefaultDescription
maxEpisodicNodesnumber1000Maximum episodic event nodes retained
causalSimilarityThresholdnumber0.82Similarity threshold to trigger post-mortem recall
autoInjectNegativeConstraintsbooleantrueAuto-inject past failures as negative prompts