Universal agent memory plugin (ForgetForge): recall-centric retention, tiered forgetting, Rust scoring engine for Hermes, Claude Code, and Codex.
Project description
cluxion-Agentplugin-AutoClearMemory (ForgetForge)
범용 에이전트 망각·기억 강화 플러그인 — Hermes, Claude Code, Codex, Grok Build에서 동일 core로 동작합니다.
Repository: https://github.com/cluxion/cluxion-Agentplugin-AutoClearMemory
한 줄 요약
세션 메모리가 쌓일수록 컨텍스트가 비대해집니다. ForgetForge는 회상(Recall) 횟수로 기억 강도를 계산하고, 오래되거나 쓰이지 않은 기억을 자동으로 낮은 tier로 내립니다. 연결된 AI가 skill·도구 지시에 따라 recall/status/keep/forget을 호출합니다.
범용 에이전트 + Rust-First
| 계층 | 구현 |
|---|---|
Rust (forgetforge-engine) |
Retention scoring, tier decision |
Python (forgetforge) |
SQLite, recall tracker, pruner, CLI |
| Agent adapter | Hermes plugin, Claude skill, Codex CLI 가이드 |
내부 로직은 Rust 중심. Python·Skill은 등록·DB·JSON bridge thin wrapper입니다.
Rust 바이너리가 없어도 Python fallback으로 동일 공식이 동작합니다.
이 플러그인의 역할
- Recall이 reinforcement: 저장 횟수가 아니라 실제 회상 (N_r)가 강도를 결정
- Tiered Memory: Hot / Warm-Episodic / Warm-Semantic / Warm-Procedural / Cold
- Decay + Boost: Ebbinghaus forgetting curve + spaced repetition
- FTS5 recall: SQLite full-text search + LIKE fallback (one transaction per recall;
score_memoriesbatch API for listings) - Brief handoff: preprocessing/supercoder brief → episodic memory (
import-brief) - Hot inject: Hermes
pre_llm_callhook으로 hot tier 자동 주입 - Contradiction hints: store 시 유사·부정 기억 경고
- Parquet archive: cold tier →
~/.forgetforge/archive/(parquet + jsonl + txt) - Background pruner: 6시간 주기 tier migration (
forgetforge prune) - Safety:
#keep_forever,#forget_this사용자 태그
ForgetForge는 모델·OAuth를 소유하지 않습니다. 연결된 AI가 도구 결과를 읽고 맥락에 반영합니다.
연결된 AI가 하는 일
| 상황 | 연결된 AI 동작 |
|---|---|
| 맥락이 커짐 | forgetforge status 또는 forgetforge_status |
| 과거 사실 필요 | forgetforge recall <topic> (explicit) |
| 응답에 기억 사용 | forgetforge_recall + layer: implicit |
| 세션 마무리 점검 | forgetforge_recall + layer: reflection |
#keep_forever |
forgetforge keep <id> |
#forget_this |
forgetforge forget <id> |
Hermes는 forgetforge_* 도구, Claude/Codex는 skill + CLI를 동일 규칙으로 따릅니다.
Retention formula
[ R = e^{-t / S} \times \left(1 + 0.45 \cdot N_r + 0.30 \cdot I + 0.25 \cdot F \right), \quad S = \ln(1 + N_r) ]
Tier 요약
| Tier | 조건 | 연결된 AI 동작 |
|---|---|---|
| Hot | 최근 7일 + (N_r \geq 1) | recall 결과를 맥락에 우선 반영 |
| Warm-Episodic | (R \geq 0.65) | 필요 시 recall |
| Warm-Semantic | (R \geq 0.80) | 장기 사실로 유지 |
| Warm-Procedural | skill + (N_r \geq 3) | 절차·스킬로 유지 |
| Cold | (R < 0.40) or 180일 무회상 | archive, 필요 시에만 recall |
빠른 시작
pip install cluxion-Agentplugin-AutoClearMemory
forgetforge init --agents=all # DB + adapter assets + example config from wheel
forgetforge check
hermes plugins enable forgetforge # Hermes
# Rust 가속 (선택)
cargo build --release --manifest-path rust/forgetforge_engine/Cargo.toml
공통 명령
| Command | Description |
|---|---|
forgetforge store <id> --content "..." |
Store or update memory |
forgetforge recall <topic> |
Explicit retrieval + tier boost |
forgetforge keep <id> |
#keep_forever |
forgetforge forget <id> |
#forget_this |
forgetforge status |
Memory health |
forgetforge prune |
Pruner 1회 실행 |
forgetforge pruner-daemon |
Background pruner (interval from config) |
forgetforge import-brief --source supercoder --brief "..." |
Brief → episodic memory |
forgetforge hot-context |
Hot tier context block (CLI) |
Hermes 도구 (forgetforge toolset)
| Tool | Description |
|---|---|
forgetforge_store |
Save or update memory (contradiction warnings when similar) |
forgetforge_recall |
FTS search + retrieval event (layer: explicit / implicit / reflection) |
forgetforge_status |
Tier counts, engine status |
forgetforge_keep |
Pin memory forever |
forgetforge_forget |
Mark for forgetting |
forgetforge_import_brief |
Import preprocessing/supercoder brief |
forgetforge_hot_context |
Hot tier block (also via pre_llm_call hook) |
문서
- Docs/README.md — 처음 읽는 분 + 목차
- Docs/architecture.md
- Docs/design.md
- Docs/installation.md
- Docs/agent-surfaces.md
- Docs/rust-architecture.md
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cluxion_agentplugin_autoclearmemory-0.3.0.tar.gz.
File metadata
- Download URL: cluxion_agentplugin_autoclearmemory-0.3.0.tar.gz
- Upload date:
- Size: 35.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bd838a5f1a3ec3ee509e654d2929efe01c275d6e4e54950db2bd04b77958ba4
|
|
| MD5 |
374ab598e040d66ce0f5878bcc7ea2f8
|
|
| BLAKE2b-256 |
5c47e6129e2b38747ae605608c67a6eb5f60171dd3937dee817f3fa9042a0895
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.0.tar.gz:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_autoclearmemory-0.3.0.tar.gz -
Subject digest:
7bd838a5f1a3ec3ee509e654d2929efe01c275d6e4e54950db2bd04b77958ba4 - Sigstore transparency entry: 1787869019
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-AutoClearMemory@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cluxion_agentplugin_autoclearmemory-0.3.0-py3-none-any.whl.
File metadata
- Download URL: cluxion_agentplugin_autoclearmemory-0.3.0-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0666bc3de4c6c23427f947f38a703d7193b4f01f33c27a94549aaddc355d63f1
|
|
| MD5 |
74b62e699421abb20f3f3eb393d50885
|
|
| BLAKE2b-256 |
d325f20c4649cf09066c6128b26a3ffdca8eeb2ccae4d0feaaf9ffe5b23c10a7
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_autoclearmemory-0.3.0-py3-none-any.whl -
Subject digest:
0666bc3de4c6c23427f947f38a703d7193b4f01f33c27a94549aaddc355d63f1 - Sigstore transparency entry: 1787869300
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-AutoClearMemory@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-win_amd64.whl.
File metadata
- Download URL: cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-win_amd64.whl
- Upload date:
- Size: 161.8 kB
- Tags: CPython 3.11+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d52c4d69825f586a8e31cf30b83a4436abbb6cd3fc40c6070b52df6b75e8766
|
|
| MD5 |
c04e7924623bddabfd26c4c90097021a
|
|
| BLAKE2b-256 |
318dea53183d47bee82defef1092a4723abe5eef737c319dc0b7dd078230610e
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-win_amd64.whl:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-win_amd64.whl -
Subject digest:
5d52c4d69825f586a8e31cf30b83a4436abbb6cd3fc40c6070b52df6b75e8766 - Sigstore transparency entry: 1787869226
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-AutoClearMemory@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 249.1 kB
- Tags: CPython 3.11+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08caba4c5af4791d08bd784adf692d206bd27f8f3a289cd98faf5aeecff12624
|
|
| MD5 |
395fa7799e59a40b940d47cfbb5853bd
|
|
| BLAKE2b-256 |
2dbe0b1581e583a5b33902a5ab9142e4f7abd4f4f469a83ccfcafe0d864f9c61
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
08caba4c5af4791d08bd784adf692d206bd27f8f3a289cd98faf5aeecff12624 - Sigstore transparency entry: 1787869142
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-AutoClearMemory@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.
File metadata
- Download URL: cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
- Upload date:
- Size: 235.5 kB
- Tags: CPython 3.11+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
663764b17f785d0816d3352312e3a9f82fb125babff001249954a67b1a85e829
|
|
| MD5 |
f0becf382dc690423e6ac8f1bf7fd03b
|
|
| BLAKE2b-256 |
ae29946b1a4e81cb964fd17cc5ad158df8b002187148f205f860e3b8cf513a2a
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl -
Subject digest:
663764b17f785d0816d3352312e3a9f82fb125babff001249954a67b1a85e829 - Sigstore transparency entry: 1787869058
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-AutoClearMemory@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl.
File metadata
- Download URL: cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
- Upload date:
- Size: 444.1 kB
- Tags: CPython 3.11+, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9f50852b2f3cf8669ed3ce4e5f88f773eb604c91e8e51c309a80a099fbdda9a
|
|
| MD5 |
622f58ad43e02ee796f22d6253793eca
|
|
| BLAKE2b-256 |
fe75a6576dfa1633ea455500be9cbc2fa5bfed5082f3245886f860a555bfe099
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl -
Subject digest:
c9f50852b2f3cf8669ed3ce4e5f88f773eb604c91e8e51c309a80a099fbdda9a - Sigstore transparency entry: 1787869361
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-AutoClearMemory@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43222b1b65a713a4978e045d71d0468d92f3b6e8 -
Trigger Event:
release
-
Statement type: