cluxion-Agentplugin-AutoClearMemory 0.3.1__tar.gz → 0.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. cluxion_agentplugin_autoclearmemory-0.3.2/LICENSE +201 -0
  2. cluxion_agentplugin_autoclearmemory-0.3.2/PKG-INFO +120 -0
  3. cluxion_agentplugin_autoclearmemory-0.3.2/README.md +90 -0
  4. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/pyproject.toml +1 -1
  5. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/__init__.py +1 -1
  6. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/adapters/hermes.py +4 -1
  7. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/db.py +12 -2
  8. cluxion_agentplugin_autoclearmemory-0.3.1/PKG-INFO +0 -146
  9. cluxion_agentplugin_autoclearmemory-0.3.1/README.md +0 -117
  10. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/.gitignore +0 -0
  11. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/Docs/README.md +0 -0
  12. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/Docs/agent-surfaces.md +0 -0
  13. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/Docs/architecture.md +0 -0
  14. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/Docs/design.md +0 -0
  15. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/Docs/installation.md +0 -0
  16. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/Docs/rust-architecture.md +0 -0
  17. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/adapters/claude/.claude-plugin/plugin.json +0 -0
  18. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/adapters/claude/skills/forgetforge/SKILL.md +0 -0
  19. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/adapters/codex/mcp-snippet.toml +0 -0
  20. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/adapters/cron/forgetforge-prune.cron +0 -0
  21. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/adapters/hermes/README.md +0 -0
  22. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/adapters/systemd/forgetforge-pruner.service +0 -0
  23. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/config.yaml.example +0 -0
  24. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/rust/forgetforge_engine/Cargo.lock +0 -0
  25. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/rust/forgetforge_engine/Cargo.toml +0 -0
  26. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/rust/forgetforge_engine/pyproject.toml +0 -0
  27. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/rust/forgetforge_engine/src/lib.rs +0 -0
  28. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/rust/forgetforge_engine/src/main.rs +0 -0
  29. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/rust/forgetforge_engine/src/scoring.rs +0 -0
  30. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/rust/forgetforge_engine/src/tier.rs +0 -0
  31. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/adapters/__init__.py +0 -0
  32. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/archive.py +0 -0
  33. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/cli.py +0 -0
  34. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/config.py +0 -0
  35. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/contradiction.py +0 -0
  36. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/hot_inject.py +0 -0
  37. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/import_brief.py +0 -0
  38. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/init_assets.py +0 -0
  39. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/pruner.py +0 -0
  40. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/recall.py +0 -0
  41. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/rust_bridge.py +0 -0
  42. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/schemas.py +0 -0
  43. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/src/forgetforge/store.py +0 -0
  44. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_cli.py +0 -0
  45. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_config.py +0 -0
  46. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_contradiction.py +0 -0
  47. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_db_recall.py +0 -0
  48. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_fts.py +0 -0
  49. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_hermes_adapter.py +0 -0
  50. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_hot_inject.py +0 -0
  51. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_import_brief.py +0 -0
  52. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_pruner_archive.py +0 -0
  53. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_recall_batching.py +0 -0
  54. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_recall_stats.py +0 -0
  55. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_rust_bridge.py +0 -0
  56. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_scoring.py +0 -0
  57. {cluxion_agentplugin_autoclearmemory-0.3.1 → cluxion_agentplugin_autoclearmemory-0.3.2}/tests/test_store.py +0 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,120 @@
1
+ Metadata-Version: 2.4
2
+ Name: cluxion-Agentplugin-AutoClearMemory
3
+ Version: 0.3.2
4
+ Summary: Universal agent memory plugin (ForgetForge): recall-centric retention, tiered forgetting, Rust scoring engine for Hermes, Claude Code, and Codex.
5
+ Project-URL: Homepage, https://github.com/cluxion/cluxion-Agentplugin-AutoClearMemory
6
+ Project-URL: Repository, https://github.com/cluxion/cluxion-Agentplugin-AutoClearMemory
7
+ Project-URL: Issues, https://github.com/cluxion/cluxion-Agentplugin-AutoClearMemory/issues
8
+ Author-email: cluxion <algocean1204@users.noreply.github.com>
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: claude-code,cluxion,codex,forgetforge,hermes-agent,memory,plugin,recall
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: Plugins
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Requires-Python: >=3.11
21
+ Requires-Dist: pyarrow>=15.0
22
+ Requires-Dist: pyyaml>=6.0
23
+ Provides-Extra: dev
24
+ Requires-Dist: build>=1.2; extra == 'dev'
25
+ Requires-Dist: pytest>=8.0; extra == 'dev'
26
+ Requires-Dist: ruff>=0.8; extra == 'dev'
27
+ Requires-Dist: twine>=6.0; extra == 'dev'
28
+ Requires-Dist: wheel>=0.45; extra == 'dev'
29
+ Description-Content-Type: text/markdown
30
+
31
+ ========= Written in Korean first, then English ==========
32
+
33
+ ======== 한국어 ========
34
+
35
+ # cluxion-Agentplugin-AutoClearMemory
36
+
37
+ AI 에이전트(Hermes Agent, Claude Code, Codex)를 위한 기억 플러그인입니다. 사람의 기억처럼 동작하는
38
+ 장기 기억을 에이전트에 부여합니다: 자주 회상하는 사실은 또렷하게 남고, 전혀 쓰지 않는 사실은 흐려져
39
+ 보관됩니다. 가장 관련 있는 기억은 모델이 답하기 전에 자동으로 떠오릅니다.
40
+
41
+ ## 설치
42
+
43
+ ```bash
44
+ pip install cluxion-Agentplugin-AutoClearMemory
45
+ forgetforge init # ~/.forgetforge 를 설정합니다 (데이터베이스 + 설정)
46
+ ```
47
+
48
+ ### Hermes Agent에서 사용
49
+
50
+ `~/.hermes/config.yaml` 에 추가한 뒤 Hermes를 재시작하세요.
51
+
52
+ ```yaml
53
+ plugins:
54
+ enabled:
55
+ - cluxion-agentplugin-autoclearmemory
56
+ ```
57
+
58
+ ## 사용
59
+
60
+ 에이전트가 자동으로 호출하거나, CLI로 직접 사용할 수 있습니다.
61
+
62
+ ```bash
63
+ forgetforge store redis-port --content "Redis runs on port 6380" --importance 0.8
64
+ forgetforge recall redis # 기억을 꺼내고(회상) 강화합니다
65
+ forgetforge keep redis-port # 절대 흐려지지 않도록 기억을 고정합니다
66
+ forgetforge forget redis-port # 기억이 흐려지도록 둡니다
67
+ forgetforge status # 무엇이 기억되어 있는지 확인합니다
68
+ ```
69
+
70
+ Hermes에서는 동일한 동작이 `forgetforge_*` 도구로 제공되며, 가장 관련 있는("hot") 기억이 매 모델
71
+ 호출 전에 컨텍스트에 추가됩니다.
72
+
73
+ ## 라이선스
74
+
75
+ Apache-2.0
76
+
77
+ ============ English ==========
78
+
79
+ # cluxion-Agentplugin-AutoClearMemory
80
+
81
+ A memory plugin for AI agents (Hermes Agent, Claude Code, Codex). It gives your agent a
82
+ long-term memory that behaves like human memory: facts you recall often stay sharp, facts you
83
+ never use fade and get archived. The most relevant memories are surfaced automatically before
84
+ the model answers.
85
+
86
+ ## Install
87
+
88
+ ```bash
89
+ pip install cluxion-Agentplugin-AutoClearMemory
90
+ forgetforge init # sets up ~/.forgetforge (database + config)
91
+ ```
92
+
93
+ ### Use with Hermes Agent
94
+
95
+ Add it to `~/.hermes/config.yaml`, then restart Hermes:
96
+
97
+ ```yaml
98
+ plugins:
99
+ enabled:
100
+ - cluxion-agentplugin-autoclearmemory
101
+ ```
102
+
103
+ ## Use
104
+
105
+ Your agent calls these automatically, or you can use the CLI directly:
106
+
107
+ ```bash
108
+ forgetforge store redis-port --content "Redis runs on port 6380" --importance 0.8
109
+ forgetforge recall redis # retrieve a memory (and reinforce it)
110
+ forgetforge keep redis-port # pin a memory so it never fades
111
+ forgetforge forget redis-port # let a memory fade away
112
+ forgetforge status # see what's remembered
113
+ ```
114
+
115
+ In Hermes the same actions are available as `forgetforge_*` tools, and your most relevant
116
+ ("hot") memories are added to the context before each model call.
117
+
118
+ ## License
119
+
120
+ Apache-2.0
@@ -0,0 +1,90 @@
1
+ ========= Written in Korean first, then English ==========
2
+
3
+ ======== 한국어 ========
4
+
5
+ # cluxion-Agentplugin-AutoClearMemory
6
+
7
+ AI 에이전트(Hermes Agent, Claude Code, Codex)를 위한 기억 플러그인입니다. 사람의 기억처럼 동작하는
8
+ 장기 기억을 에이전트에 부여합니다: 자주 회상하는 사실은 또렷하게 남고, 전혀 쓰지 않는 사실은 흐려져
9
+ 보관됩니다. 가장 관련 있는 기억은 모델이 답하기 전에 자동으로 떠오릅니다.
10
+
11
+ ## 설치
12
+
13
+ ```bash
14
+ pip install cluxion-Agentplugin-AutoClearMemory
15
+ forgetforge init # ~/.forgetforge 를 설정합니다 (데이터베이스 + 설정)
16
+ ```
17
+
18
+ ### Hermes Agent에서 사용
19
+
20
+ `~/.hermes/config.yaml` 에 추가한 뒤 Hermes를 재시작하세요.
21
+
22
+ ```yaml
23
+ plugins:
24
+ enabled:
25
+ - cluxion-agentplugin-autoclearmemory
26
+ ```
27
+
28
+ ## 사용
29
+
30
+ 에이전트가 자동으로 호출하거나, CLI로 직접 사용할 수 있습니다.
31
+
32
+ ```bash
33
+ forgetforge store redis-port --content "Redis runs on port 6380" --importance 0.8
34
+ forgetforge recall redis # 기억을 꺼내고(회상) 강화합니다
35
+ forgetforge keep redis-port # 절대 흐려지지 않도록 기억을 고정합니다
36
+ forgetforge forget redis-port # 기억이 흐려지도록 둡니다
37
+ forgetforge status # 무엇이 기억되어 있는지 확인합니다
38
+ ```
39
+
40
+ Hermes에서는 동일한 동작이 `forgetforge_*` 도구로 제공되며, 가장 관련 있는("hot") 기억이 매 모델
41
+ 호출 전에 컨텍스트에 추가됩니다.
42
+
43
+ ## 라이선스
44
+
45
+ Apache-2.0
46
+
47
+ ============ English ==========
48
+
49
+ # cluxion-Agentplugin-AutoClearMemory
50
+
51
+ A memory plugin for AI agents (Hermes Agent, Claude Code, Codex). It gives your agent a
52
+ long-term memory that behaves like human memory: facts you recall often stay sharp, facts you
53
+ never use fade and get archived. The most relevant memories are surfaced automatically before
54
+ the model answers.
55
+
56
+ ## Install
57
+
58
+ ```bash
59
+ pip install cluxion-Agentplugin-AutoClearMemory
60
+ forgetforge init # sets up ~/.forgetforge (database + config)
61
+ ```
62
+
63
+ ### Use with Hermes Agent
64
+
65
+ Add it to `~/.hermes/config.yaml`, then restart Hermes:
66
+
67
+ ```yaml
68
+ plugins:
69
+ enabled:
70
+ - cluxion-agentplugin-autoclearmemory
71
+ ```
72
+
73
+ ## Use
74
+
75
+ Your agent calls these automatically, or you can use the CLI directly:
76
+
77
+ ```bash
78
+ forgetforge store redis-port --content "Redis runs on port 6380" --importance 0.8
79
+ forgetforge recall redis # retrieve a memory (and reinforce it)
80
+ forgetforge keep redis-port # pin a memory so it never fades
81
+ forgetforge forget redis-port # let a memory fade away
82
+ forgetforge status # see what's remembered
83
+ ```
84
+
85
+ In Hermes the same actions are available as `forgetforge_*` tools, and your most relevant
86
+ ("hot") memories are added to the context before each model call.
87
+
88
+ ## License
89
+
90
+ Apache-2.0
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "cluxion-Agentplugin-AutoClearMemory"
7
- version = "0.3.1"
7
+ version = "0.3.2"
8
8
  description = "Universal agent memory plugin (ForgetForge): recall-centric retention, tiered forgetting, Rust scoring engine for Hermes, Claude Code, and Codex."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -1,5 +1,5 @@
1
1
  """ForgetForge — recall-centric memory plugin for universal agent environments."""
2
2
 
3
- __version__ = "0.3.1"
3
+ __version__ = "0.3.2"
4
4
 
5
5
  __all__ = ["__version__"]
@@ -73,7 +73,10 @@ def register(ctx: object) -> None:
73
73
 
74
74
 
75
75
  def _pre_llm_hot_inject(**_: object) -> dict[str, str]:
76
- return hot_inject.hot_context_payload()
76
+ try:
77
+ return hot_inject.hot_context_payload()
78
+ except Exception:
79
+ return {}
77
80
 
78
81
 
79
82
  def _wrap(callback: Callable[[dict[str, object]], dict[str, object]]) -> Callable[[dict[str, object]], str]:
@@ -86,8 +86,18 @@ def _ensure_fts(conn: sqlite3.Connection) -> None:
86
86
 
87
87
 
88
88
  def _fts_upsert(conn: sqlite3.Connection, memory_id: str, content: str) -> None:
89
- conn.execute("DELETE FROM memories_fts WHERE memory_id = ?", (memory_id,))
90
- conn.execute("INSERT INTO memories_fts (memory_id, content) VALUES (?, ?)", (memory_id, content))
89
+ owns_transaction = not conn.in_transaction
90
+ if owns_transaction:
91
+ conn.execute("BEGIN IMMEDIATE")
92
+ try:
93
+ conn.execute("DELETE FROM memories_fts WHERE memory_id = ?", (memory_id,))
94
+ conn.execute("INSERT INTO memories_fts (memory_id, content) VALUES (?, ?)", (memory_id, content))
95
+ except Exception:
96
+ if owns_transaction:
97
+ conn.rollback()
98
+ raise
99
+ if owns_transaction:
100
+ conn.commit()
91
101
 
92
102
 
93
103
  def _fts_delete(conn: sqlite3.Connection, memory_id: str) -> None:
@@ -1,146 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: cluxion-Agentplugin-AutoClearMemory
3
- Version: 0.3.1
4
- Summary: Universal agent memory plugin (ForgetForge): recall-centric retention, tiered forgetting, Rust scoring engine for Hermes, Claude Code, and Codex.
5
- Project-URL: Homepage, https://github.com/cluxion/cluxion-Agentplugin-AutoClearMemory
6
- Project-URL: Repository, https://github.com/cluxion/cluxion-Agentplugin-AutoClearMemory
7
- Project-URL: Issues, https://github.com/cluxion/cluxion-Agentplugin-AutoClearMemory/issues
8
- Author-email: cluxion <algocean1204@users.noreply.github.com>
9
- License-Expression: Apache-2.0
10
- Keywords: claude-code,cluxion,codex,forgetforge,hermes-agent,memory,plugin,recall
11
- Classifier: Development Status :: 3 - Alpha
12
- Classifier: Environment :: Plugins
13
- Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: Apache Software License
15
- Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3.11
17
- Classifier: Programming Language :: Python :: 3.12
18
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
- Requires-Python: >=3.11
20
- Requires-Dist: pyarrow>=15.0
21
- Requires-Dist: pyyaml>=6.0
22
- Provides-Extra: dev
23
- Requires-Dist: build>=1.2; extra == 'dev'
24
- Requires-Dist: pytest>=8.0; extra == 'dev'
25
- Requires-Dist: ruff>=0.8; extra == 'dev'
26
- Requires-Dist: twine>=6.0; extra == 'dev'
27
- Requires-Dist: wheel>=0.45; extra == 'dev'
28
- Description-Content-Type: text/markdown
29
-
30
- # cluxion-Agentplugin-AutoClearMemory (ForgetForge)
31
-
32
- 범용 에이전트 **망각·기억 강화 플러그인** — **Hermes, Claude Code, Codex, Grok Build**에서 동일 core로 동작합니다.
33
-
34
- **Repository:** https://github.com/cluxion/cluxion-Agentplugin-AutoClearMemory
35
-
36
- ## 한 줄 요약
37
-
38
- 세션 메모리가 쌓일수록 컨텍스트가 비대해집니다. ForgetForge는 **회상(Recall) 횟수**로 기억 강도를 계산하고, 오래되거나 쓰이지 않은 기억을 자동으로 낮은 tier로 내립니다. **연결된 AI**가 skill·도구 지시에 따라 recall/status/keep/forget을 호출합니다.
39
-
40
- ## 범용 에이전트 + Rust-First
41
-
42
- | 계층 | 구현 |
43
- |------|------|
44
- | **Rust** (`forgetforge-engine`) | Retention scoring, tier decision |
45
- | **Python** (`forgetforge`) | SQLite, recall tracker, pruner, CLI |
46
- | **Agent adapter** | Hermes plugin, Claude skill, Codex CLI 가이드 |
47
-
48
- 내부 로직은 **Rust 중심**. Python·Skill은 등록·DB·JSON bridge **thin wrapper**입니다.
49
- Rust 바이너리가 없어도 **Python fallback**으로 동일 공식이 동작합니다.
50
-
51
- ## 이 플러그인의 역할
52
-
53
- - **Recall이 reinforcement**: 저장 횟수가 아니라 실제 회상 \(N_r\)가 강도를 결정
54
- - **Tiered Memory**: Hot / Warm-Episodic / Warm-Semantic / Warm-Procedural / Cold
55
- - **Decay + Boost**: Ebbinghaus forgetting curve + spaced repetition
56
- - **FTS5 recall**: SQLite full-text search + LIKE fallback (one transaction per recall; `score_memories` batch API for listings)
57
- - **Brief handoff**: preprocessing/supercoder brief → episodic memory (`import-brief`)
58
- - **Hot inject**: Hermes `pre_llm_call` hook으로 hot tier 자동 주입
59
- - **Contradiction hints**: store 시 유사·부정 기억 경고
60
- - **Parquet archive**: cold tier → `~/.forgetforge/archive/` (parquet + jsonl + txt)
61
- - **Background pruner**: 6시간 주기 tier migration (`forgetforge prune`)
62
- - **Safety**: `#keep_forever`, `#forget_this` 사용자 태그
63
-
64
- ForgetForge는 **모델·OAuth를 소유하지 않습니다.** 연결된 AI가 도구 결과를 읽고 맥락에 반영합니다.
65
-
66
- ## 연결된 AI가 하는 일
67
-
68
- | 상황 | 연결된 AI 동작 |
69
- |------|----------------|
70
- | 맥락이 커짐 | `forgetforge status` 또는 `forgetforge_status` |
71
- | 과거 사실 필요 | `forgetforge recall <topic>` (explicit) |
72
- | 응답에 기억 사용 | `forgetforge_recall` + `layer: implicit` |
73
- | 세션 마무리 점검 | `forgetforge_recall` + `layer: reflection` |
74
- | `#keep_forever` | `forgetforge keep <id>` |
75
- | `#forget_this` | `forgetforge forget <id>` |
76
-
77
- Hermes는 `forgetforge_*` 도구, Claude/Codex는 skill + CLI를 동일 규칙으로 따릅니다.
78
-
79
- ## Retention formula
80
-
81
- \[
82
- 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)
83
- \]
84
-
85
- ## Tier 요약
86
-
87
- | Tier | 조건 | 연결된 AI 동작 |
88
- |------|------|----------------|
89
- | **Hot** | 최근 7일 + \(N_r \geq 1\) | recall 결과를 맥락에 우선 반영 |
90
- | **Warm-Episodic** | \(R \geq 0.65\) | 필요 시 recall |
91
- | **Warm-Semantic** | \(R \geq 0.80\) | 장기 사실로 유지 |
92
- | **Warm-Procedural** | skill + \(N_r \geq 3\) | 절차·스킬로 유지 |
93
- | **Cold** | \(R < 0.40\) or 180일 무회상 | archive, 필요 시에만 recall |
94
-
95
- ## 빠른 시작
96
-
97
- ```bash
98
- pip install cluxion-Agentplugin-AutoClearMemory
99
- forgetforge init --agents=all # DB + adapter assets + example config from wheel
100
- forgetforge check
101
- hermes plugins enable forgetforge # Hermes
102
- ```
103
-
104
- ```bash
105
- # Rust 가속 (선택)
106
- cargo build --release --manifest-path rust/forgetforge_engine/Cargo.toml
107
- ```
108
-
109
- ## 공통 명령
110
-
111
- | Command | Description |
112
- |---------|-------------|
113
- | `forgetforge store <id> --content "..."` | Store or update memory |
114
- | `forgetforge recall <topic>` | Explicit retrieval + tier boost |
115
- | `forgetforge keep <id>` | `#keep_forever` |
116
- | `forgetforge forget <id>` | `#forget_this` |
117
- | `forgetforge status` | Memory health |
118
- | `forgetforge prune` | Pruner 1회 실행 |
119
- | `forgetforge pruner-daemon` | Background pruner (interval from config) |
120
- | `forgetforge import-brief --source supercoder --brief "..."` | Brief → episodic memory |
121
- | `forgetforge hot-context` | Hot tier context block (CLI) |
122
-
123
- ## Hermes 도구 (`forgetforge` toolset)
124
-
125
- | Tool | Description |
126
- |------|-------------|
127
- | `forgetforge_store` | Save or update memory (contradiction warnings when similar) |
128
- | `forgetforge_recall` | FTS search + retrieval event (`layer`: explicit / implicit / reflection) |
129
- | `forgetforge_status` | Tier counts, engine status |
130
- | `forgetforge_keep` | Pin memory forever |
131
- | `forgetforge_forget` | Mark for forgetting |
132
- | `forgetforge_import_brief` | Import preprocessing/supercoder brief |
133
- | `forgetforge_hot_context` | Hot tier block (also via `pre_llm_call` hook) |
134
-
135
- ## 문서
136
-
137
- - [Docs/README.md](Docs/README.md) — **처음 읽는 분** + 목차
138
- - [Docs/architecture.md](Docs/architecture.md)
139
- - [Docs/design.md](Docs/design.md)
140
- - [Docs/installation.md](Docs/installation.md)
141
- - [Docs/agent-surfaces.md](Docs/agent-surfaces.md)
142
- - [Docs/rust-architecture.md](Docs/rust-architecture.md)
143
-
144
- ## License
145
-
146
- Apache-2.0
@@ -1,117 +0,0 @@
1
- # cluxion-Agentplugin-AutoClearMemory (ForgetForge)
2
-
3
- 범용 에이전트 **망각·기억 강화 플러그인** — **Hermes, Claude Code, Codex, Grok Build**에서 동일 core로 동작합니다.
4
-
5
- **Repository:** https://github.com/cluxion/cluxion-Agentplugin-AutoClearMemory
6
-
7
- ## 한 줄 요약
8
-
9
- 세션 메모리가 쌓일수록 컨텍스트가 비대해집니다. ForgetForge는 **회상(Recall) 횟수**로 기억 강도를 계산하고, 오래되거나 쓰이지 않은 기억을 자동으로 낮은 tier로 내립니다. **연결된 AI**가 skill·도구 지시에 따라 recall/status/keep/forget을 호출합니다.
10
-
11
- ## 범용 에이전트 + Rust-First
12
-
13
- | 계층 | 구현 |
14
- |------|------|
15
- | **Rust** (`forgetforge-engine`) | Retention scoring, tier decision |
16
- | **Python** (`forgetforge`) | SQLite, recall tracker, pruner, CLI |
17
- | **Agent adapter** | Hermes plugin, Claude skill, Codex CLI 가이드 |
18
-
19
- 내부 로직은 **Rust 중심**. Python·Skill은 등록·DB·JSON bridge **thin wrapper**입니다.
20
- Rust 바이너리가 없어도 **Python fallback**으로 동일 공식이 동작합니다.
21
-
22
- ## 이 플러그인의 역할
23
-
24
- - **Recall이 reinforcement**: 저장 횟수가 아니라 실제 회상 \(N_r\)가 강도를 결정
25
- - **Tiered Memory**: Hot / Warm-Episodic / Warm-Semantic / Warm-Procedural / Cold
26
- - **Decay + Boost**: Ebbinghaus forgetting curve + spaced repetition
27
- - **FTS5 recall**: SQLite full-text search + LIKE fallback (one transaction per recall; `score_memories` batch API for listings)
28
- - **Brief handoff**: preprocessing/supercoder brief → episodic memory (`import-brief`)
29
- - **Hot inject**: Hermes `pre_llm_call` hook으로 hot tier 자동 주입
30
- - **Contradiction hints**: store 시 유사·부정 기억 경고
31
- - **Parquet archive**: cold tier → `~/.forgetforge/archive/` (parquet + jsonl + txt)
32
- - **Background pruner**: 6시간 주기 tier migration (`forgetforge prune`)
33
- - **Safety**: `#keep_forever`, `#forget_this` 사용자 태그
34
-
35
- ForgetForge는 **모델·OAuth를 소유하지 않습니다.** 연결된 AI가 도구 결과를 읽고 맥락에 반영합니다.
36
-
37
- ## 연결된 AI가 하는 일
38
-
39
- | 상황 | 연결된 AI 동작 |
40
- |------|----------------|
41
- | 맥락이 커짐 | `forgetforge status` 또는 `forgetforge_status` |
42
- | 과거 사실 필요 | `forgetforge recall <topic>` (explicit) |
43
- | 응답에 기억 사용 | `forgetforge_recall` + `layer: implicit` |
44
- | 세션 마무리 점검 | `forgetforge_recall` + `layer: reflection` |
45
- | `#keep_forever` | `forgetforge keep <id>` |
46
- | `#forget_this` | `forgetforge forget <id>` |
47
-
48
- Hermes는 `forgetforge_*` 도구, Claude/Codex는 skill + CLI를 동일 규칙으로 따릅니다.
49
-
50
- ## Retention formula
51
-
52
- \[
53
- 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)
54
- \]
55
-
56
- ## Tier 요약
57
-
58
- | Tier | 조건 | 연결된 AI 동작 |
59
- |------|------|----------------|
60
- | **Hot** | 최근 7일 + \(N_r \geq 1\) | recall 결과를 맥락에 우선 반영 |
61
- | **Warm-Episodic** | \(R \geq 0.65\) | 필요 시 recall |
62
- | **Warm-Semantic** | \(R \geq 0.80\) | 장기 사실로 유지 |
63
- | **Warm-Procedural** | skill + \(N_r \geq 3\) | 절차·스킬로 유지 |
64
- | **Cold** | \(R < 0.40\) or 180일 무회상 | archive, 필요 시에만 recall |
65
-
66
- ## 빠른 시작
67
-
68
- ```bash
69
- pip install cluxion-Agentplugin-AutoClearMemory
70
- forgetforge init --agents=all # DB + adapter assets + example config from wheel
71
- forgetforge check
72
- hermes plugins enable forgetforge # Hermes
73
- ```
74
-
75
- ```bash
76
- # Rust 가속 (선택)
77
- cargo build --release --manifest-path rust/forgetforge_engine/Cargo.toml
78
- ```
79
-
80
- ## 공통 명령
81
-
82
- | Command | Description |
83
- |---------|-------------|
84
- | `forgetforge store <id> --content "..."` | Store or update memory |
85
- | `forgetforge recall <topic>` | Explicit retrieval + tier boost |
86
- | `forgetforge keep <id>` | `#keep_forever` |
87
- | `forgetforge forget <id>` | `#forget_this` |
88
- | `forgetforge status` | Memory health |
89
- | `forgetforge prune` | Pruner 1회 실행 |
90
- | `forgetforge pruner-daemon` | Background pruner (interval from config) |
91
- | `forgetforge import-brief --source supercoder --brief "..."` | Brief → episodic memory |
92
- | `forgetforge hot-context` | Hot tier context block (CLI) |
93
-
94
- ## Hermes 도구 (`forgetforge` toolset)
95
-
96
- | Tool | Description |
97
- |------|-------------|
98
- | `forgetforge_store` | Save or update memory (contradiction warnings when similar) |
99
- | `forgetforge_recall` | FTS search + retrieval event (`layer`: explicit / implicit / reflection) |
100
- | `forgetforge_status` | Tier counts, engine status |
101
- | `forgetforge_keep` | Pin memory forever |
102
- | `forgetforge_forget` | Mark for forgetting |
103
- | `forgetforge_import_brief` | Import preprocessing/supercoder brief |
104
- | `forgetforge_hot_context` | Hot tier block (also via `pre_llm_call` hook) |
105
-
106
- ## 문서
107
-
108
- - [Docs/README.md](Docs/README.md) — **처음 읽는 분** + 목차
109
- - [Docs/architecture.md](Docs/architecture.md)
110
- - [Docs/design.md](Docs/design.md)
111
- - [Docs/installation.md](Docs/installation.md)
112
- - [Docs/agent-surfaces.md](Docs/agent-surfaces.md)
113
- - [Docs/rust-architecture.md](Docs/rust-architecture.md)
114
-
115
- ## License
116
-
117
- Apache-2.0