Skip to main content

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_memories batch API for listings)
  • Brief handoff: preprocessing/supercoder brief → episodic memory (import-brief)
  • Hot inject: Hermes pre_llm_call hook으로 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)

문서

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cluxion_agentplugin_autoclearmemory-0.3.1.tar.gz (36.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-win_amd64.whl (162.3 kB view details)

Uploaded CPython 3.11+Windows x86-64

cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (249.6 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (236.0 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl (444.7 kB view details)

Uploaded CPython 3.11+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file cluxion_agentplugin_autoclearmemory-0.3.1.tar.gz.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.1.tar.gz
Algorithm Hash digest
SHA256 5fb9c24a1d407249845d107bb60ac931ecaa61a27e881b284e427be2bbb158bb
MD5 aea7130d070149929d479576035ae9db
BLAKE2b-256 6aa66bf18f5f3e301e48b935b541d0d42a4c111c3b60b4690d81332722008e26

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.1.tar.gz:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cluxion_agentplugin_autoclearmemory-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 072b3ede858a8bef498bed4309c6f8bc658db657174330dbe21e519521301f00
MD5 50e397adade0e92c5210ab57185cabd9
BLAKE2b-256 a3bb822c908b6e39fffd5c1061885dfb4bb0587fb03f90af74f397bb2fe775ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.1-py3-none-any.whl:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 25b1a5d32ce44f9e93af86573fb4def6447395d12111d80b7b8f58634e1399c8
MD5 82a5ffe6968215c94da50d563d1230f8
BLAKE2b-256 d13ac9cb84c1c1a6b8ba21da29541a36b3f9310ace3eb63300ca7d738bc80d54

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-win_amd64.whl:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 889552ae91ac6ab06dd497f07d08951e94b795ce1c2b701f59d909bbeee3a85b
MD5 7191fda9fa058474927811d3987b0e12
BLAKE2b-256 aa9fc765fc24f63b9f918485a83504303ad6b4547bac1e1e6f112c581bd58779

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 50484fca274da01b3d23881ffaa20b3176e561472868c7c1229dacf5c5da909c
MD5 549773fea8aefe8386e9d9b1003dc2c4
BLAKE2b-256 06e65e4072f75c4e6fb06de10f168b79686da6af90f5c0f48012591b51e405aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1152a30e065e4c42eb918c9f78fd416c165d33d2a53ec7275329337edeb441b
MD5 3013bfcb29129c1da55c21dc5aa36fb3
BLAKE2b-256 1d1dada34278d9b25c5952e9a2d6b12445d2f718739bdd395e7df366b2d2fc16

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-AutoClearMemory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page