From 237bcd7036c2c844b4fe33bfcdbbe2c90da49cca Mon Sep 17 00:00:00 2001 From: "agent.akimo.dev" Date: Sun, 22 Nov 2026 07:39:10 +0900 Subject: [PATCH] =?UTF-8?q?hermes:=20memory=E7=9B=A3=E8=A6=96=E3=81=AEshel?= =?UTF-8?q?l=E3=83=95=E3=83=83=E3=82=AF=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit preは組み込みツールに発火せず、postは結果が捨てられるため、shellフックでは memory書き込みを監視できない。発火しない設定を残すより消す。 仕分けの徹底はMEMORYの一行とmemory-curationスキルで担保する。 --- lilith/configuration.nix | 12 ------------ .../hermes-agent-hooks/memory-curation-reminder.sh | 5 ----- 2 files changed, 17 deletions(-) delete mode 100644 lilith/hermes-agent-hooks/memory-curation-reminder.sh diff --git a/lilith/configuration.nix b/lilith/configuration.nix index f6eb565..9096d38 100644 --- a/lilith/configuration.nix +++ b/lilith/configuration.nix @@ -118,9 +118,6 @@ in environmentFiles = [ config.sops.secrets."hermes-env".path ]; extraDependencyGroups = [ "messaging" ]; extraPackages = hermesTools; - hermesHomeFiles = { - "agent-hooks/memory-curation-reminder.sh" = ./hermes-agent-hooks/memory-curation-reminder.sh; - }; settings = { auxiliary.vision = { model = "qwen3.8-flash"; @@ -130,15 +127,6 @@ in discord = { free_response_auto_thread = true; }; - hooks = { - post_tool_call = [ - { - command = "bash /data/.hermes/agent-hooks/memory-curation-reminder.sh"; - matcher = "^memory$"; - timeout = 10; - } - ]; - }; model = { provider = "opencode-go"; default = "muse-spark-1.3-contributor"; diff --git a/lilith/hermes-agent-hooks/memory-curation-reminder.sh b/lilith/hermes-agent-hooks/memory-curation-reminder.sh deleted file mode 100644 index 9cde64e..0000000 --- a/lilith/hermes-agent-hooks/memory-curation-reminder.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -# memory ツールの post_tool_call フック。書き込み直後に仕分けの見直しを添える。 -# 原本は skill memory-curation。本文の重複を持たず、ここは概要と誘導だけ。 -# 入力は stdin の JSON(使わない)。出力は {"context": ...} で呼び出しは止めない。 -printf '%s\n' '{"context": "書いたmemoryを見直す: (1)毎回効く前提だけか (2)手順・設定・IDはskillに移す (3)期限付き情報は書いていないか。余計なら削るか移す。迷ったら skill memory-curation を読む。"}' -- knotmirror 0.0.1