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.0.tar.gz (35.3 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.0-cp311-abi3-win_amd64.whl (161.8 kB view details)

Uploaded CPython 3.11+Windows x86-64

cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (249.1 kB view details)

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

cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (235.5 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl (444.1 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.0.tar.gz.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7bd838a5f1a3ec3ee509e654d2929efe01c275d6e4e54950db2bd04b77958ba4
MD5 374ab598e040d66ce0f5878bcc7ea2f8
BLAKE2b-256 5c47e6129e2b38747ae605608c67a6eb5f60171dd3937dee817f3fa9042a0895

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0666bc3de4c6c23427f947f38a703d7193b4f01f33c27a94549aaddc355d63f1
MD5 74b62e699421abb20f3f3eb393d50885
BLAKE2b-256 d325f20c4649cf09066c6128b26a3ffdca8eeb2ccae4d0feaaf9ffe5b23c10a7

See more details on using hashes here.

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

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.0-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5d52c4d69825f586a8e31cf30b83a4436abbb6cd3fc40c6070b52df6b75e8766
MD5 c04e7924623bddabfd26c4c90097021a
BLAKE2b-256 318dea53183d47bee82defef1092a4723abe5eef737c319dc0b7dd078230610e

See more details on using hashes here.

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

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.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 08caba4c5af4791d08bd784adf692d206bd27f8f3a289cd98faf5aeecff12624
MD5 395fa7799e59a40b940d47cfbb5853bd
BLAKE2b-256 2dbe0b1581e583a5b33902a5ab9142e4f7abd4f4f469a83ccfcafe0d864f9c61

See more details on using hashes here.

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

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.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 663764b17f785d0816d3352312e3a9f82fb125babff001249954a67b1a85e829
MD5 f0becf382dc690423e6ac8f1bf7fd03b
BLAKE2b-256 ae29946b1a4e81cb964fd17cc5ad158df8b002187148f205f860e3b8cf513a2a

See more details on using hashes here.

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

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.0-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.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9f50852b2f3cf8669ed3ce4e5f88f773eb604c91e8e51c309a80a099fbdda9a
MD5 622f58ad43e02ee796f22d6253793eca
BLAKE2b-256 fe75a6576dfa1633ea455500be9cbc2fa5bfed5082f3245886f860a555bfe099

See more details on using hashes here.

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

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