Skip to main content

memory-management

Persist and retrieve structured state across sessions using local files as external memory store.

소스 정보

저장소
glayph/Agent
최근 소스 활동
2026년 9월 19일 22:39
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
memory-management
description
Persist and retrieve structured state across sessions using local files as external memory store.
version
1.0.0
author
Miki
license
MIT
platforms
["linux","macos","windows"]
metadata
{"Miki":{"tags":["memory","persistence","state-management","session"],"related_skills":["rag-context"]}}
# External Memory & State Management ## Storage format Use `.opencode/memory/` directory. Each memory domain gets its own JSON file: ``` .opencode/memory/ ├── project-state.json # active tasks, decisions, blockers ├── known-bugs.json # bugs discovered across sessions ├── conventions.json # code style, arch patterns learned └── changelog.json # significant changes made ``` ## Schema per domain ### project-state.json ```json { "current_task": "string | null", "completed_tasks": ["string"], "decisions": [{ "what": "string", "why": "string", "date": "ISO" }], "blockers": ["string"] } ``` ### known-bugs.json ```json { "bugs": [{ "id": "string", "symptom": "string", "cause": "string", "fix": "string", "status": "open|fixed" }] } ``` ### conventions.json ```json { "conventions": [{ "pattern": "string", "rule": "string", "source": "string" }] } ``` ## Protocol - **Read** memory at session start (check file mtime) - **Write** memory on: task completion, bug discovery, arch decision - **Update in place** — append-only for history, overwrite for current state - **Keep entries under 3 lines** — avoid bloat ## Commands - `save: <domain> <key> <value>` — persist a fact - `read: <domain>` — retrieve all facts for domain - `forget: <domain> <key>` — remove a fact
GitHub에서 보기