recallgate 0.1.0__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.
- recallgate-0.1.0/LICENSE +21 -0
- recallgate-0.1.0/PKG-INFO +231 -0
- recallgate-0.1.0/README.md +204 -0
- recallgate-0.1.0/pyproject.toml +40 -0
- recallgate-0.1.0/setup.cfg +4 -0
- recallgate-0.1.0/setup.py +3 -0
- recallgate-0.1.0/src/recallgate/__init__.py +3 -0
- recallgate-0.1.0/src/recallgate/cli.py +325 -0
- recallgate-0.1.0/src/recallgate/core.py +948 -0
- recallgate-0.1.0/src/recallgate.egg-info/PKG-INFO +231 -0
- recallgate-0.1.0/src/recallgate.egg-info/SOURCES.txt +14 -0
- recallgate-0.1.0/src/recallgate.egg-info/dependency_links.txt +1 -0
- recallgate-0.1.0/src/recallgate.egg-info/entry_points.txt +3 -0
- recallgate-0.1.0/src/recallgate.egg-info/top_level.txt +1 -0
- recallgate-0.1.0/tests/test_cli.py +77 -0
- recallgate-0.1.0/tests/test_core.py +335 -0
recallgate-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 RecallGate Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: recallgate
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Token-efficient controllable memory gate for AI coding agents.
|
|
5
|
+
Author: RecallGate Contributors
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/lamguo/recallgate
|
|
8
|
+
Project-URL: Repository, https://github.com/lamguo/recallgate
|
|
9
|
+
Project-URL: Issues, https://github.com/lamguo/recallgate/issues
|
|
10
|
+
Keywords: ai,agent,memory,token,context,cli,coding-agent
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Topic :: Software Development
|
|
22
|
+
Classifier: Topic :: Utilities
|
|
23
|
+
Requires-Python: >=3.9
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
|
|
28
|
+
<p align="center">
|
|
29
|
+
<picture>
|
|
30
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/badge/dependencies-0-%234ADE80?style=flat-square">
|
|
31
|
+
<img alt="RecallGate" src="https://img.shields.io/badge/dependencies-0-%234ADE80?style=flat-square">
|
|
32
|
+
</picture>
|
|
33
|
+
<img src="https://img.shields.io/badge/API%20calls-0-%2394a3b8?style=flat-square" alt="0 API calls">
|
|
34
|
+
<img src="https://img.shields.io/badge/license-MIT-%2394a3b8?style=flat-square" alt="MIT">
|
|
35
|
+
<img src="https://img.shields.io/badge/tests-31%20passing-%234ADE80?style=flat-square" alt="Tests">
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
# RecallGate
|
|
39
|
+
|
|
40
|
+
> **Give every AI agent only the memory it needs — and nothing else.**
|
|
41
|
+
|
|
42
|
+
RecallGate is a **token-efficient, controllable memory gate for AI coding agents**.
|
|
43
|
+
|
|
44
|
+
It helps Claude Code, Codex CLI, Cursor, Gemini CLI, Copilot-style agents, and multi-agent coding workflows stop wasting context on irrelevant history.
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
Without RecallGate: 1,240 tokens → $0.02 per ask → model reads everything
|
|
48
|
+
With RecallGate: 95 tokens → $0.001 per ask → model reads only what matters
|
|
49
|
+
▲ 92.3% cheaper
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**Zero dependencies. Zero API calls. Offline. One `.recallgate` folder.**
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Install
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pip install recallgate
|
|
60
|
+
# or from source
|
|
61
|
+
git clone https://github.com/lamguo/recallgate.git
|
|
62
|
+
cd recallgate && pip install -e .
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Quick start — 10 seconds to value
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
# 1. Init a workspace in your project
|
|
69
|
+
cd my-project && recall-gate init
|
|
70
|
+
|
|
71
|
+
# 2. Add project rules (they stay in Git-friendly .md files)
|
|
72
|
+
recall-gate add "Keep zero core dependencies." --role coder --priority high
|
|
73
|
+
recall-gate add "Tests use temp fixtures, not example files." --role tester
|
|
74
|
+
recall-gate add "README must match CLI behavior exactly." --role writer
|
|
75
|
+
|
|
76
|
+
# 3. Generate a 100-token brief for your coding agent
|
|
77
|
+
recall-gate brief "fix CI pipeline test failure" --role tester --budget 100
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Paste the output into your AI agent. That's it.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Why you'll use this
|
|
85
|
+
|
|
86
|
+
### "My AI keeps forgetting the project rules"
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
recall-gate correct "model keeps suggesting requests library — we use stdlib only"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Outputs a <100-token correction brief. Paste it into any AI agent. Problem solved.
|
|
93
|
+
|
|
94
|
+
### "I'm burning tokens on irrelevant context"
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
recall-gate estimate --task "fix tests" --role tester --json
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Returns structured data: `{"full_active_memory_tokens": 1240, "injected_brief_tokens": 95, "estimated_saving_percent": 92.3}`. Know your savings before you inject.
|
|
101
|
+
|
|
102
|
+
### "Coder, tester, and writer agents need different context"
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
recall-gate brief "fix deployment" --role coder # sees deployment rules
|
|
106
|
+
recall-gate brief "update docs" --role writer # sees README guidelines
|
|
107
|
+
recall-gate brief "review PR" --role reviewer # sees audit checklist
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Each agent role sees only its relevant memories. Shared rules go to `--role all`.
|
|
111
|
+
|
|
112
|
+
### "I have 50 memories and don't know what's stale"
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
recall-gate review --apply # auto-archive low-value memories
|
|
116
|
+
recall-gate list --sort use_count # see what's never been used
|
|
117
|
+
recall-gate search "fixtures" # find without opening index.json
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Features
|
|
123
|
+
|
|
124
|
+
| | What | Why it matters |
|
|
125
|
+
|---|---|---|
|
|
126
|
+
| 🎯 | **Role-filtered briefs** | Coder gets coding rules, writer gets docs rules, tester gets test rules |
|
|
127
|
+
| ✂️ | **Token budget control** | Set `default_budget = 100` in config — briefs are hard-capped |
|
|
128
|
+
| 🔄 | **Memory lifecycle** | `active` → `archive` → `trash` → `delete`. Nothing lost by accident |
|
|
129
|
+
| 🔧 | **Edit in place** | `recall-gate edit mem_0001 --priority critical` — no delete+re-create |
|
|
130
|
+
| 🔍 | **Full-text search** | Searches content, short text, keywords, scope, type, priority |
|
|
131
|
+
| 📦 | **JSON output** | `--json` on every command — pipe into scripts, editors, MCP |
|
|
132
|
+
| 📂 | **Git-friendly storage** | Each memory is a `.md` file with YAML frontmatter. Diff, commit, review |
|
|
133
|
+
| 🌐 | **CJK support** | Chinese memory gets readable slugs and meaningful keywords |
|
|
134
|
+
| 🧼 | **Auto-review** | `recall-gate review --apply` archives unused memories automatically |
|
|
135
|
+
|
|
136
|
+
### Memory lifecycle
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
active → readable by default
|
|
140
|
+
archive → hidden but recoverable
|
|
141
|
+
trash → blocked from agents, still recoverable
|
|
142
|
+
deleted → permanently removed from index and disk
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Role-based routing
|
|
146
|
+
|
|
147
|
+
Every memory targets one or more roles. `--role all` means everyone sees it.
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
recall-gate brief "fix tests" --role tester # only tester memories
|
|
151
|
+
recall-gate brief "update README" --role writer # only writer memories
|
|
152
|
+
recall-gate brief "review" --role reviewer # only reviewer memories
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
The goal: **Shared outline, private depth.**
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Command reference
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
recall-gate
|
|
163
|
+
init Create workspace
|
|
164
|
+
add <content> Add a memory
|
|
165
|
+
edit/update <id> Edit memory fields
|
|
166
|
+
info <id> Full memory details
|
|
167
|
+
list [--sort] [--reverse] List memories
|
|
168
|
+
search <query> Full-text search
|
|
169
|
+
brief <task> Token-efficient memory brief
|
|
170
|
+
correct <issue> Correction brief (model forgets)
|
|
171
|
+
estimate Token cost estimate
|
|
172
|
+
review [--apply] Suggest/apply cleanup
|
|
173
|
+
archive / trash / restore Lifecycle commands
|
|
174
|
+
promote <id> Move conversation to project
|
|
175
|
+
delete <id> --yes Permanent removal
|
|
176
|
+
|
|
177
|
+
Global flags:
|
|
178
|
+
--json Machine-readable output on all commands
|
|
179
|
+
--root Target a specific workspace (for automation)
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## About injection
|
|
185
|
+
|
|
186
|
+
`brief` prints plain text by design in v0.1.0. You copy the output into Claude Code, Codex CLI, Cursor, Gemini CLI, Copilot Chat, or any other coding agent.
|
|
187
|
+
|
|
188
|
+
Automatic injection is intentionally not included in the first version because the core tool should stay local, predictable, and provider-agnostic. Future integrations can add MCP, editor plugins, or agent hooks on top of the same brief engine.
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## Design philosophy
|
|
193
|
+
|
|
194
|
+
```text
|
|
195
|
+
Default model calls: 0
|
|
196
|
+
Default API keys: 0
|
|
197
|
+
Default runtime deps: 0
|
|
198
|
+
Default storage: local Markdown + JSON
|
|
199
|
+
Default tokenizer: built-in estimator
|
|
200
|
+
Default test discovery: python -m unittest discover
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
RecallGate is built to be **cheap, local, and predictable**. No vector database. No LLM calls. No network. No vendor lock-in. You commit your `.recallgate` folder to Git, and every teammate gets the same memory.
|
|
204
|
+
|
|
205
|
+
### What RecallGate is
|
|
206
|
+
|
|
207
|
+
- A local memory gate
|
|
208
|
+
- A memory firewall
|
|
209
|
+
- A token-saving brief generator
|
|
210
|
+
- A role-based memory router
|
|
211
|
+
- A stale model memory correction layer
|
|
212
|
+
|
|
213
|
+
### What RecallGate is not
|
|
214
|
+
|
|
215
|
+
- Not a hosted memory service
|
|
216
|
+
- Not a vector database
|
|
217
|
+
- Not a full AI agent framework
|
|
218
|
+
- Not a replacement for Claude Code, Codex, Cursor, or Copilot
|
|
219
|
+
- Not a tool that blindly remembers everything
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## Status
|
|
224
|
+
|
|
225
|
+
`v0.1.0` — alpha MVP with **31 unit tests, 0 dependencies, and 17 CLI commands**.
|
|
226
|
+
|
|
227
|
+
**Coming next:** MCP server, editor plugins, auto-conflict detection, and optional AI compression.
|
|
228
|
+
|
|
229
|
+
## License
|
|
230
|
+
|
|
231
|
+
MIT
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/badge/dependencies-0-%234ADE80?style=flat-square">
|
|
4
|
+
<img alt="RecallGate" src="https://img.shields.io/badge/dependencies-0-%234ADE80?style=flat-square">
|
|
5
|
+
</picture>
|
|
6
|
+
<img src="https://img.shields.io/badge/API%20calls-0-%2394a3b8?style=flat-square" alt="0 API calls">
|
|
7
|
+
<img src="https://img.shields.io/badge/license-MIT-%2394a3b8?style=flat-square" alt="MIT">
|
|
8
|
+
<img src="https://img.shields.io/badge/tests-31%20passing-%234ADE80?style=flat-square" alt="Tests">
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
# RecallGate
|
|
12
|
+
|
|
13
|
+
> **Give every AI agent only the memory it needs — and nothing else.**
|
|
14
|
+
|
|
15
|
+
RecallGate is a **token-efficient, controllable memory gate for AI coding agents**.
|
|
16
|
+
|
|
17
|
+
It helps Claude Code, Codex CLI, Cursor, Gemini CLI, Copilot-style agents, and multi-agent coding workflows stop wasting context on irrelevant history.
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
Without RecallGate: 1,240 tokens → $0.02 per ask → model reads everything
|
|
21
|
+
With RecallGate: 95 tokens → $0.001 per ask → model reads only what matters
|
|
22
|
+
▲ 92.3% cheaper
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Zero dependencies. Zero API calls. Offline. One `.recallgate` folder.**
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install recallgate
|
|
33
|
+
# or from source
|
|
34
|
+
git clone https://github.com/lamguo/recallgate.git
|
|
35
|
+
cd recallgate && pip install -e .
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Quick start — 10 seconds to value
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# 1. Init a workspace in your project
|
|
42
|
+
cd my-project && recall-gate init
|
|
43
|
+
|
|
44
|
+
# 2. Add project rules (they stay in Git-friendly .md files)
|
|
45
|
+
recall-gate add "Keep zero core dependencies." --role coder --priority high
|
|
46
|
+
recall-gate add "Tests use temp fixtures, not example files." --role tester
|
|
47
|
+
recall-gate add "README must match CLI behavior exactly." --role writer
|
|
48
|
+
|
|
49
|
+
# 3. Generate a 100-token brief for your coding agent
|
|
50
|
+
recall-gate brief "fix CI pipeline test failure" --role tester --budget 100
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Paste the output into your AI agent. That's it.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Why you'll use this
|
|
58
|
+
|
|
59
|
+
### "My AI keeps forgetting the project rules"
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
recall-gate correct "model keeps suggesting requests library — we use stdlib only"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Outputs a <100-token correction brief. Paste it into any AI agent. Problem solved.
|
|
66
|
+
|
|
67
|
+
### "I'm burning tokens on irrelevant context"
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
recall-gate estimate --task "fix tests" --role tester --json
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Returns structured data: `{"full_active_memory_tokens": 1240, "injected_brief_tokens": 95, "estimated_saving_percent": 92.3}`. Know your savings before you inject.
|
|
74
|
+
|
|
75
|
+
### "Coder, tester, and writer agents need different context"
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
recall-gate brief "fix deployment" --role coder # sees deployment rules
|
|
79
|
+
recall-gate brief "update docs" --role writer # sees README guidelines
|
|
80
|
+
recall-gate brief "review PR" --role reviewer # sees audit checklist
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Each agent role sees only its relevant memories. Shared rules go to `--role all`.
|
|
84
|
+
|
|
85
|
+
### "I have 50 memories and don't know what's stale"
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
recall-gate review --apply # auto-archive low-value memories
|
|
89
|
+
recall-gate list --sort use_count # see what's never been used
|
|
90
|
+
recall-gate search "fixtures" # find without opening index.json
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Features
|
|
96
|
+
|
|
97
|
+
| | What | Why it matters |
|
|
98
|
+
|---|---|---|
|
|
99
|
+
| 🎯 | **Role-filtered briefs** | Coder gets coding rules, writer gets docs rules, tester gets test rules |
|
|
100
|
+
| ✂️ | **Token budget control** | Set `default_budget = 100` in config — briefs are hard-capped |
|
|
101
|
+
| 🔄 | **Memory lifecycle** | `active` → `archive` → `trash` → `delete`. Nothing lost by accident |
|
|
102
|
+
| 🔧 | **Edit in place** | `recall-gate edit mem_0001 --priority critical` — no delete+re-create |
|
|
103
|
+
| 🔍 | **Full-text search** | Searches content, short text, keywords, scope, type, priority |
|
|
104
|
+
| 📦 | **JSON output** | `--json` on every command — pipe into scripts, editors, MCP |
|
|
105
|
+
| 📂 | **Git-friendly storage** | Each memory is a `.md` file with YAML frontmatter. Diff, commit, review |
|
|
106
|
+
| 🌐 | **CJK support** | Chinese memory gets readable slugs and meaningful keywords |
|
|
107
|
+
| 🧼 | **Auto-review** | `recall-gate review --apply` archives unused memories automatically |
|
|
108
|
+
|
|
109
|
+
### Memory lifecycle
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
active → readable by default
|
|
113
|
+
archive → hidden but recoverable
|
|
114
|
+
trash → blocked from agents, still recoverable
|
|
115
|
+
deleted → permanently removed from index and disk
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Role-based routing
|
|
119
|
+
|
|
120
|
+
Every memory targets one or more roles. `--role all` means everyone sees it.
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
recall-gate brief "fix tests" --role tester # only tester memories
|
|
124
|
+
recall-gate brief "update README" --role writer # only writer memories
|
|
125
|
+
recall-gate brief "review" --role reviewer # only reviewer memories
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
The goal: **Shared outline, private depth.**
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Command reference
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
recall-gate
|
|
136
|
+
init Create workspace
|
|
137
|
+
add <content> Add a memory
|
|
138
|
+
edit/update <id> Edit memory fields
|
|
139
|
+
info <id> Full memory details
|
|
140
|
+
list [--sort] [--reverse] List memories
|
|
141
|
+
search <query> Full-text search
|
|
142
|
+
brief <task> Token-efficient memory brief
|
|
143
|
+
correct <issue> Correction brief (model forgets)
|
|
144
|
+
estimate Token cost estimate
|
|
145
|
+
review [--apply] Suggest/apply cleanup
|
|
146
|
+
archive / trash / restore Lifecycle commands
|
|
147
|
+
promote <id> Move conversation to project
|
|
148
|
+
delete <id> --yes Permanent removal
|
|
149
|
+
|
|
150
|
+
Global flags:
|
|
151
|
+
--json Machine-readable output on all commands
|
|
152
|
+
--root Target a specific workspace (for automation)
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## About injection
|
|
158
|
+
|
|
159
|
+
`brief` prints plain text by design in v0.1.0. You copy the output into Claude Code, Codex CLI, Cursor, Gemini CLI, Copilot Chat, or any other coding agent.
|
|
160
|
+
|
|
161
|
+
Automatic injection is intentionally not included in the first version because the core tool should stay local, predictable, and provider-agnostic. Future integrations can add MCP, editor plugins, or agent hooks on top of the same brief engine.
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Design philosophy
|
|
166
|
+
|
|
167
|
+
```text
|
|
168
|
+
Default model calls: 0
|
|
169
|
+
Default API keys: 0
|
|
170
|
+
Default runtime deps: 0
|
|
171
|
+
Default storage: local Markdown + JSON
|
|
172
|
+
Default tokenizer: built-in estimator
|
|
173
|
+
Default test discovery: python -m unittest discover
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
RecallGate is built to be **cheap, local, and predictable**. No vector database. No LLM calls. No network. No vendor lock-in. You commit your `.recallgate` folder to Git, and every teammate gets the same memory.
|
|
177
|
+
|
|
178
|
+
### What RecallGate is
|
|
179
|
+
|
|
180
|
+
- A local memory gate
|
|
181
|
+
- A memory firewall
|
|
182
|
+
- A token-saving brief generator
|
|
183
|
+
- A role-based memory router
|
|
184
|
+
- A stale model memory correction layer
|
|
185
|
+
|
|
186
|
+
### What RecallGate is not
|
|
187
|
+
|
|
188
|
+
- Not a hosted memory service
|
|
189
|
+
- Not a vector database
|
|
190
|
+
- Not a full AI agent framework
|
|
191
|
+
- Not a replacement for Claude Code, Codex, Cursor, or Copilot
|
|
192
|
+
- Not a tool that blindly remembers everything
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## Status
|
|
197
|
+
|
|
198
|
+
`v0.1.0` — alpha MVP with **31 unit tests, 0 dependencies, and 17 CLI commands**.
|
|
199
|
+
|
|
200
|
+
**Coming next:** MCP server, editor plugins, auto-conflict detection, and optional AI compression.
|
|
201
|
+
|
|
202
|
+
## License
|
|
203
|
+
|
|
204
|
+
MIT
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "recallgate"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Token-efficient controllable memory gate for AI coding agents."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
license = {text = "MIT"}
|
|
12
|
+
authors = [{name = "RecallGate Contributors"}]
|
|
13
|
+
keywords = ["ai", "agent", "memory", "token", "context", "cli", "coding-agent"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 3 - Alpha",
|
|
16
|
+
"Environment :: Console",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"License :: OSI Approved :: MIT License",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Programming Language :: Python :: 3.9",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: 3.13",
|
|
25
|
+
"Topic :: Software Development",
|
|
26
|
+
"Topic :: Utilities",
|
|
27
|
+
]
|
|
28
|
+
dependencies = []
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
Homepage = "https://github.com/lamguo/recallgate"
|
|
32
|
+
Repository = "https://github.com/lamguo/recallgate"
|
|
33
|
+
Issues = "https://github.com/lamguo/recallgate/issues"
|
|
34
|
+
|
|
35
|
+
[project.scripts]
|
|
36
|
+
recall-gate = "recallgate.cli:main"
|
|
37
|
+
recallgate = "recallgate.cli:main"
|
|
38
|
+
|
|
39
|
+
[tool.setuptools.packages.find]
|
|
40
|
+
where = ["src"]
|