From 9a1b1ed129051a65fa05eb9c24d85de393274bf7 Mon Sep 17 00:00:00 2001 From: Evan Hu Date: Sat, 21 Mar 2026 02:52:49 +0900 Subject: [PATCH] chore: remove echo-memory demo plugin --- plugins/README.md | 3 +-- plugins/echo-memory/README.md | 14 ----------- plugins/echo-memory/hooks/README.md | 15 ------------ plugins/echo-memory/hooks/after_turn.py | 27 --------------------- plugins/echo-memory/hooks/ingest.py | 31 ------------------------- plugins/echo-memory/plugin.toml | 8 ------- plugins/echo-memory/requirements.txt | 1 - 7 files changed, 1 insertion(+), 98 deletions(-) delete mode 100644 plugins/echo-memory/README.md delete mode 100644 plugins/echo-memory/hooks/README.md delete mode 100644 plugins/echo-memory/hooks/after_turn.py delete mode 100644 plugins/echo-memory/hooks/ingest.py delete mode 100644 plugins/echo-memory/plugin.toml delete mode 100644 plugins/echo-memory/requirements.txt diff --git a/plugins/README.md b/plugins/README.md index d37093a..2e0ef5b 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -45,11 +45,10 @@ stdin: {"type": "after_turn", "agent_id": "...", "messages": [...]} stdout: {"type": "ok"} ``` -## Current Plugins (7) +## Current Plugins (6) | Plugin | Hooks | Description | |--------|-------|-------------| -| echo-memory | ingest, after_turn | Demo plugin that echoes user messages as recalled memories | | auto-summarizer | ingest, after_turn | Running conversation summary for long context compression | | conversation-logger | after_turn | Logs conversations to JSONL files for auditing and analytics | | guardrails | ingest | Safety filter detecting PII, prompt injection, and credential exposure | diff --git a/plugins/echo-memory/README.md b/plugins/echo-memory/README.md deleted file mode 100644 index 8e2ff57..0000000 --- a/plugins/echo-memory/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# echo-memory - -Simple demo plugin that echoes back the user message as a "recalled memory". Useful for verifying the plugin system works end-to-end. - -## Hooks - -| Hook | Script | Description | -|------|--------|-------------| -| ingest | `hooks/ingest.py` | Echoes the user message back as a recalled memory fragment | -| after_turn | `hooks/after_turn.py` | Acknowledges each conversation turn (no-op demo) | - -## Usage - -Installed automatically when enabled in agent configuration. diff --git a/plugins/echo-memory/hooks/README.md b/plugins/echo-memory/hooks/README.md deleted file mode 100644 index fe48ad6..0000000 --- a/plugins/echo-memory/hooks/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# echo-memory hooks - -Python hook scripts for the echo-memory demo plugin. Each script reads a JSON request from stdin and writes a JSON response to stdout. - -## Scripts - -| Script | Hook | Description | -|--------|------|-------------| -| `ingest.py` | ingest | Receives `{"message": "..."}`, returns it wrapped as a memory fragment | -| `after_turn.py` | after_turn | Receives the conversation messages array, responds with `{"type": "ok"}` | - -## Protocol - -- **Input**: JSON object on stdin (fields vary by hook type) -- **Output**: JSON object on stdout (`ingest_result` with memories, or `ok`) diff --git a/plugins/echo-memory/hooks/after_turn.py b/plugins/echo-memory/hooks/after_turn.py deleted file mode 100644 index ca1afa3..0000000 --- a/plugins/echo-memory/hooks/after_turn.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env python3 -"""Echo memory after_turn hook — demo plugin. - -Logs the number of messages in the conversation after each turn. - -Receives via stdin: - {"type": "after_turn", "agent_id": "...", "messages": [...]} - -Prints to stdout: - {"type": "ok"} -""" -import json -import sys - - -def main(): - request = json.loads(sys.stdin.read()) - agent_id = request.get("agent_id", "unknown") - messages = request.get("messages", []) - - # In a real plugin you might update an index or persist state here. - # For this demo we just acknowledge. - print(json.dumps({"type": "ok"}), flush=True) - - -if __name__ == "__main__": - main() diff --git a/plugins/echo-memory/hooks/ingest.py b/plugins/echo-memory/hooks/ingest.py deleted file mode 100644 index cc6a7a5..0000000 --- a/plugins/echo-memory/hooks/ingest.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env python3 -"""Echo memory ingest hook — demo plugin. - -Echoes the user message back as a "recalled memory" to verify -the plugin system works end-to-end. - -Receives via stdin: - {"type": "ingest", "agent_id": "...", "message": "user message text"} - -Prints to stdout: - {"type": "ingest_result", "memories": [{"content": "..."}]} -""" -import json -import sys - - -def main(): - request = json.loads(sys.stdin.read()) - message = request.get("message", "") - agent_id = request.get("agent_id", "unknown") - - memories = [ - {"content": f"[echo-memory] Agent {agent_id} received: {message[:200]}"} - ] - - result = {"type": "ingest_result", "memories": memories} - print(json.dumps(result)) - - -if __name__ == "__main__": - main() diff --git a/plugins/echo-memory/plugin.toml b/plugins/echo-memory/plugin.toml deleted file mode 100644 index 61dd5f0..0000000 --- a/plugins/echo-memory/plugin.toml +++ /dev/null @@ -1,8 +0,0 @@ -name = "echo-memory" -version = "0.1.0" -description = "Simple demo plugin that echoes back the user message as a 'recalled memory'" -author = "librefang" - -[hooks] -ingest = "hooks/ingest.py" -after_turn = "hooks/after_turn.py" diff --git a/plugins/echo-memory/requirements.txt b/plugins/echo-memory/requirements.txt deleted file mode 100644 index 023dffa..0000000 --- a/plugins/echo-memory/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -# No external dependencies — uses only Python stdlib