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

========= Written in Korean first, then English ==========

======== 한국어 ========

cluxion-Agentplugin-AutoClearMemory

AI 에이전트(Hermes Agent, Claude Code, Codex)를 위한 기억 플러그인입니다. 사람의 기억처럼 동작하는 장기 기억을 에이전트에 부여합니다: 자주 회상하는 사실은 또렷하게 남고, 전혀 쓰지 않는 사실은 흐려져 보관됩니다. 가장 관련 있는 기억은 모델이 답하기 전에 자동으로 떠오릅니다.

설치

pip install cluxion-Agentplugin-AutoClearMemory
forgetforge init            # ~/.forgetforge 를 설정합니다 (데이터베이스 + 설정)

Hermes Agent에서 사용

~/.hermes/config.yaml 에 추가한 뒤 Hermes를 재시작하세요.

plugins:
  enabled:
    - cluxion-agentplugin-autoclearmemory

사용

에이전트가 자동으로 호출하거나, CLI로 직접 사용할 수 있습니다.

forgetforge store redis-port --content "Redis runs on port 6380" --importance 0.8
forgetforge store large-note --content-file ./memory.txt
printf '%s\n' "stdin memory" | forgetforge store stdin-note --content -
forgetforge recall redis        # 기억을 꺼내고(회상) 강화합니다
forgetforge keep redis-port     # 절대 흐려지지 않도록 기억을 고정합니다
forgetforge forget redis-port   # 기억이 흐려지도록 둡니다
forgetforge import-brief --source manual --brief-file ./brief.txt
printf '%s\n' "handoff brief" | forgetforge import-brief --source manual --brief -
forgetforge status              # 무엇이 기억되어 있는지 확인합니다

Hermes에서는 동일한 동작이 forgetforge_* 도구로 제공되며, 가장 관련 있는("hot") 기억이 매 모델 호출 전에 컨텍스트에 추가됩니다. CLI/API의 retention 값은 사용자용 정규화 값으로 항상 0.0..1.0입니다. 내부 Rust scoring 값은 프루너와 tier 판정용 0.0..10.0 스케일을 그대로 사용합니다.

점검

설치·Hermes 계약·DB·네이티브 백엔드 상태를 결정론적으로 자가 진단합니다. 같은 상태면 항상 같은 결과를 출력하고, 문제가 있으면 증상과 해결 단계를 그대로 알려줍니다.

forgetforge doctor          # 사람용 요약
forgetforge doctor --json   # 구조화 출력

Hermes 안에서는 forgetforge_doctor 도구로도 노출됩니다.

슬래시 커맨드

/forgetforge-recall redis port
/forgetforge-status
/forgetforge-doctor

Hermes에서는 / 입력 시 🔌로 표시됩니다. Codex와 Claude Code에서는 루트 commands/ 플러그인 명령이 같은 forgetforge CLI를 호출합니다.

라이선스

Apache-2.0

============ English ==========

cluxion-Agentplugin-AutoClearMemory

A memory plugin for AI agents (Hermes Agent, Claude Code, Codex). It gives your agent a long-term memory that behaves like human memory: facts you recall often stay sharp, facts you never use fade and get archived. The most relevant memories are surfaced automatically before the model answers.

Install

pip install cluxion-Agentplugin-AutoClearMemory
forgetforge init            # sets up ~/.forgetforge (database + config)

Use with Hermes Agent

Add it to ~/.hermes/config.yaml, then restart Hermes:

plugins:
  enabled:
    - cluxion-agentplugin-autoclearmemory

Use

Your agent calls these automatically, or you can use the CLI directly:

forgetforge store redis-port --content "Redis runs on port 6380" --importance 0.8
forgetforge store large-note --content-file ./memory.txt
printf '%s\n' "stdin memory" | forgetforge store stdin-note --content -
forgetforge recall redis        # retrieve a memory (and reinforce it)
forgetforge keep redis-port     # pin a memory so it never fades
forgetforge forget redis-port   # let a memory fade away
forgetforge import-brief --source manual --brief-file ./brief.txt
printf '%s\n' "handoff brief" | forgetforge import-brief --source manual --brief -
forgetforge status              # see what's remembered

In Hermes the same actions are available as forgetforge_* tools, and your most relevant ("hot") memories are added to the context before each model call. CLI/API retention is a user-facing normalized value in 0.0..1.0. The internal Rust scoring value stays on its 0.0..10.0 scale for pruning and tier decisions.

Diagnostics

A deterministic self-check of install, the Hermes contract, the database, and the native backend. The same state always prints the same result, and on any problem it shows the symptom and the exact fix steps.

forgetforge doctor          # human summary
forgetforge doctor --json   # structured output

Also exposed inside Hermes as the forgetforge_doctor tool.

Slash commands

/forgetforge-recall redis port
/forgetforge-status
/forgetforge-doctor

Hermes shows them in / autocomplete with 🔌. Codex and Claude Code use the root commands/ plugin commands to call the same forgetforge CLI.

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.16.tar.gz (67.1 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.16-cp311-abi3-win_amd64.whl (185.4 kB view details)

Uploaded CPython 3.11+Windows x86-64

cluxion_agentplugin_autoclearmemory-0.3.16-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (272.6 kB view details)

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

cluxion_agentplugin_autoclearmemory-0.3.16-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (259.0 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

cluxion_agentplugin_autoclearmemory-0.3.16-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl (467.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.16.tar.gz.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.16.tar.gz
Algorithm Hash digest
SHA256 2bc24f78677dac77597026a2dc8ef9cbd249725ba4b25ccea40ea634a170f4b6
MD5 065079adba1dea153f8a1fb279c6cbc6
BLAKE2b-256 4012b18dec6d89164a208e5236efafc8048435d1872f8ace99de7563541c5a65

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.16-py3-none-any.whl
Algorithm Hash digest
SHA256 8a1c6ef1a9845097d558bb658ef6a635b4af322fe68b0c8aad0e53133410cad3
MD5 7a8d1adc40b09d549be87f4aaf473f2f
BLAKE2b-256 67ca3f425812353c6876cce2051a8eebb458a2e34e6312ea6e801cc6027e807e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.16-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.16-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.16-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2914c3301bf363a9fc37e41f14287416cb204667abad50888b06a69e1ec6cf90
MD5 fc6a07820eb6fe48cbe2aeba565d9599
BLAKE2b-256 ade94d2aff6a314b110be686fd0693ae23950877e3a36197702475801b417dd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.16-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.16-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.16-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4b2ae44754554bfb11080de5b4a13cab9526816d99f1f486db9373a18d69328f
MD5 210a42377ed5dd637934cc558eac38ae
BLAKE2b-256 e38ba8f9fe5a5e7232158537221f4fe5059f90444204db55ddcf74debbd2049d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.16-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.16-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_autoclearmemory-0.3.16-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 1253a7f3bb1c8caa7d7bfff9a7c6f8ddceed3ea8a3f44735d8d6bed14e5c1d8c
MD5 6f84bcc5fb4c730335c188c8937b739e
BLAKE2b-256 23db7bcabd5db59d15b624c6711ce9e5f01c97d75dc8d4d3d353b3b9978fb1b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.16-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.16-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.16-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b318ef3a19f6d1f462074e91df132f8caed6cbed3448d0aa250fad3ebd6b401
MD5 33def770c7f137d4ac928e9416e5b0aa
BLAKE2b-256 b4a223085164b1372058818bbaa3f8328eb97e3a41132e0f84b3b8023a876299

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_autoclearmemory-0.3.16-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