agent-memory-mini 0.2.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.
- agent_memory_mini-0.2.0/LICENSE +21 -0
- agent_memory_mini-0.2.0/PKG-INFO +163 -0
- agent_memory_mini-0.2.0/README.md +141 -0
- agent_memory_mini-0.2.0/pyproject.toml +62 -0
- agent_memory_mini-0.2.0/setup.cfg +4 -0
- agent_memory_mini-0.2.0/src/agent_memory/__init__.py +3 -0
- agent_memory_mini-0.2.0/src/agent_memory/__main__.py +490 -0
- agent_memory_mini-0.2.0/src/agent_memory/resolve.py +122 -0
- agent_memory_mini-0.2.0/src/agent_memory/search.py +47 -0
- agent_memory_mini-0.2.0/src/agent_memory/store.py +124 -0
- agent_memory_mini-0.2.0/src/agent_memory/summary.py +56 -0
- agent_memory_mini-0.2.0/src/agent_memory_mini.egg-info/PKG-INFO +163 -0
- agent_memory_mini-0.2.0/src/agent_memory_mini.egg-info/SOURCES.txt +20 -0
- agent_memory_mini-0.2.0/src/agent_memory_mini.egg-info/dependency_links.txt +1 -0
- agent_memory_mini-0.2.0/src/agent_memory_mini.egg-info/entry_points.txt +2 -0
- agent_memory_mini-0.2.0/src/agent_memory_mini.egg-info/requires.txt +6 -0
- agent_memory_mini-0.2.0/src/agent_memory_mini.egg-info/top_level.txt +1 -0
- agent_memory_mini-0.2.0/tests/test_cli.py +953 -0
- agent_memory_mini-0.2.0/tests/test_resolve.py +163 -0
- agent_memory_mini-0.2.0/tests/test_search.py +81 -0
- agent_memory_mini-0.2.0/tests/test_store.py +63 -0
- agent_memory_mini-0.2.0/tests/test_summary.py +39 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Xylos Labs
|
|
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,163 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agent-memory-mini
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Tiny file-based session memory for coding agents: remember, recall, list, summarise. No server, no API key, no GPU.
|
|
5
|
+
Author-email: Xylos Labs <hello@xyloslabs.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: agents,memory,cli,notes
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Topic :: Software Development
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
18
|
+
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
19
|
+
Requires-Dist: ruff>=0.4; extra == "dev"
|
|
20
|
+
Requires-Dist: mypy>=1.0; extra == "dev"
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# agent-memory-mini
|
|
24
|
+
|
|
25
|
+
[](https://github.com/Xylos-Labs/agent-memory-mini/actions/workflows/ci.yml)
|
|
26
|
+
[](https://github.com/Xylos-Labs/agent-memory-mini/stargazers)
|
|
27
|
+
[](https://github.com/Xylos-Labs/agent-memory-mini/network/members)
|
|
28
|
+
[](https://opensource.org/licenses/MIT)
|
|
29
|
+
[](https://www.python.org/downloads/)
|
|
30
|
+
|
|
31
|
+
Tiny file-based session memory for coding agents: remember, recall, list, summarise. No server, no API key, no GPU, no embeddings.
|
|
32
|
+
|
|
33
|
+
Built by [Xylos Labs](https://github.com/Xylos-Labs) as an open-source, reproducible project. The store is one JSONL file, one record per line, so you can read it, grep it, and back it up like any other file.
|
|
34
|
+
|
|
35
|
+
## Quick start
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
python -m venv .venv && source .venv/bin/activate
|
|
39
|
+
pip install -e ".[dev]"
|
|
40
|
+
|
|
41
|
+
# Create the store (optional: `remember` creates it on first use)
|
|
42
|
+
python -m agent_memory init
|
|
43
|
+
|
|
44
|
+
# Save a note
|
|
45
|
+
python -m agent_memory remember "fixed login bug" --tags bug,auth
|
|
46
|
+
# {"id": "a1b2c3d4", "timestamp": "...", "session": "default",
|
|
47
|
+
# "text": "fixed login bug", "tags": ["auth", "bug"]}
|
|
48
|
+
|
|
49
|
+
# Read a note from standard input or assign a UTC date
|
|
50
|
+
printf '%s\n' "login review notes" | python -m agent_memory remember --stdin --tags auth --session auth
|
|
51
|
+
python -m agent_memory remember "login rollout" --date 2026-11-25 --tags auth --session auth
|
|
52
|
+
|
|
53
|
+
# Find it later by keyword (text + tags, best match first)
|
|
54
|
+
python -m agent_memory recall "login bug"
|
|
55
|
+
|
|
56
|
+
# Match a phrase in note text, ignoring case (newest match first)
|
|
57
|
+
python -m agent_memory recall --exact "login bug"
|
|
58
|
+
|
|
59
|
+
# Newest notes, or filtered
|
|
60
|
+
python -m agent_memory list --limit 10
|
|
61
|
+
python -m agent_memory list --tag bug
|
|
62
|
+
python -m agent_memory list --days 7
|
|
63
|
+
python -m agent_memory list --after 2026-11-01 --before 2026-11-30
|
|
64
|
+
python -m agent_memory list --reverse # oldest first
|
|
65
|
+
|
|
66
|
+
# List sessions and their note counts
|
|
67
|
+
python -m agent_memory sessions
|
|
68
|
+
|
|
69
|
+
# Recall within one session or tag only
|
|
70
|
+
python -m agent_memory recall "login" --session auth
|
|
71
|
+
python -m agent_memory recall "login" --tag bug
|
|
72
|
+
python -m agent_memory recall "login" --days 7
|
|
73
|
+
|
|
74
|
+
# Sort recall by recency or filter by an inclusive UTC date range
|
|
75
|
+
python -m agent_memory recall "login" --sort recency
|
|
76
|
+
python -m agent_memory recall "login" --after 2026-11-01 --before 2026-11-30
|
|
77
|
+
|
|
78
|
+
# Count tags across all sessions or in one session
|
|
79
|
+
python -m agent_memory tags
|
|
80
|
+
python -m agent_memory tags --session auth
|
|
81
|
+
|
|
82
|
+
# Export everything as CSV (or one session)
|
|
83
|
+
python -m agent_memory export --out notes.csv
|
|
84
|
+
python -m agent_memory export --session auth --out auth-notes.csv
|
|
85
|
+
|
|
86
|
+
# Preserve record fields, including the tags array, as JSON Lines
|
|
87
|
+
python -m agent_memory export --format jsonl --out notes.jsonl
|
|
88
|
+
|
|
89
|
+
# Export a JSON array, or filter exported notes by tag
|
|
90
|
+
python -m agent_memory export --format json --out notes.json
|
|
91
|
+
python -m agent_memory export --tag auth --out auth-tagged.csv
|
|
92
|
+
|
|
93
|
+
# Counts only, no invented content
|
|
94
|
+
python -m agent_memory summary --days 7
|
|
95
|
+
python -m agent_memory summary --session auth
|
|
96
|
+
|
|
97
|
+
# Show only the top three tags
|
|
98
|
+
python -m agent_memory summary --top 3
|
|
99
|
+
|
|
100
|
+
# Preview a date-based deletion without changing the store
|
|
101
|
+
python -m agent_memory forget --before 2026-11-30 --dry-run
|
|
102
|
+
|
|
103
|
+
# Delete by id (or unique prefix)
|
|
104
|
+
python -m agent_memory forget a1b2c3d4
|
|
105
|
+
|
|
106
|
+
# Record a decision with when it was received and when it takes effect
|
|
107
|
+
python -m agent_memory remember "5" --policy-key login.rate_limit --scope all
|
|
108
|
+
python -m agent_memory remember "3" --policy-key login.rate_limit --scope mobile \
|
|
109
|
+
--effective-from 2026-12-12
|
|
110
|
+
|
|
111
|
+
# Ask what the limit was for mobile on Dec 11 (answer: 5, change not yet effective)
|
|
112
|
+
python -m agent_memory resolve login.rate_limit --at 2026-12-11 --scope mobile
|
|
113
|
+
|
|
114
|
+
# Ask what the limit was for mobile on Dec 12 (answer: 3, change now effective)
|
|
115
|
+
python -m agent_memory resolve login.rate_limit --at 2026-12-12 --scope mobile
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## How it works
|
|
119
|
+
|
|
120
|
+
**Store.** Default `.agent-memory/memory.jsonl` in the current directory. Override with `--store PATH` or `AGENT_MEMORY_STORE`. Each record has `id`, `timestamp`, `session`, `text`, `tags`.
|
|
121
|
+
|
|
122
|
+
**List date range.** `--after` and `--before` include their boundary dates, using each note's UTC day. Use either flag alone or both together; they combine with the other filters before `--limit` and `--reverse`.
|
|
123
|
+
|
|
124
|
+
**Recall.** By default, score is how many query words appear in the text or tags, ties break newest first. With `--exact`, the whole query must appear in the note text, ignoring case but preserving punctuation and whitespace. Tags do not count as phrase matches. Exact matches have equal scores and appear newest first with either `--sort` mode; an empty query lists newest notes. All existing filters and `--limit` still apply. No embeddings, no LLM, so results are explainable and offline.
|
|
125
|
+
|
|
126
|
+
**Summary.** Counts by tag, by session and by UTC day for the last N days (default 7), plus the 5 newest notes. It never invents content.
|
|
127
|
+
|
|
128
|
+
**Resolve.** `resolve <policy_key>` answers "what did we know on this date, for this app, at that time?" A decision note carries `recorded_at` (set automatically when the note is stored, never changed by `remember --date`), `effective_from` (when it takes effect, defaults to `recorded_at`), an optional `valid_until`, a `scope` (`mobile`, `web`, or `all`), and an optional `supersedes` id. `resolve` only trusts notes with these fields, picks the applicable note with the latest `effective_from`, and returns its text plus `source_id`. `--as-of` limits the evidence to what was recorded by that time. If two applicable notes conflict it returns `ambiguous` with both notes; if none applies it returns `insufficient_evidence`.
|
|
129
|
+
|
|
130
|
+
## Why use it: agent handoff in 30 seconds
|
|
131
|
+
|
|
132
|
+
A coding agent's context ends when the session ends. This keeps the decisions:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
# End of session: save what was decided
|
|
136
|
+
python -m agent_memory remember "use sqlite, not postgres, for the prototype" --tags decision,db --session auth-rework
|
|
137
|
+
python -m agent_memory remember "login rate limit is 5 attempts per minute" --tags decision,auth --session auth-rework
|
|
138
|
+
|
|
139
|
+
# Start of the next session: recall before you code
|
|
140
|
+
python -m agent_memory recall "login" --session auth-rework
|
|
141
|
+
python -m agent_memory summary --days 7
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
The file is plain JSONL, so the next agent (or you) can read it with `cat`, `grep`, or `export` it to CSV - nothing is locked in a database or a cloud account.
|
|
145
|
+
|
|
146
|
+
## Project layout
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
src/agent_memory/ package: store (JSONL), search (keyword), summary (counts), CLI
|
|
150
|
+
tests/ pytest: store, search, CLI subprocess
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Contributors
|
|
154
|
+
|
|
155
|
+
Thanks to everyone who has contributed!
|
|
156
|
+
|
|
157
|
+
[](https://github.com/Xylos-Labs/agent-memory-mini/graphs/contributors)
|
|
158
|
+
|
|
159
|
+
Want to help? See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
160
|
+
|
|
161
|
+
## Licence
|
|
162
|
+
|
|
163
|
+
Code: MIT (see [LICENSE](LICENSE)).
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# agent-memory-mini
|
|
2
|
+
|
|
3
|
+
[](https://github.com/Xylos-Labs/agent-memory-mini/actions/workflows/ci.yml)
|
|
4
|
+
[](https://github.com/Xylos-Labs/agent-memory-mini/stargazers)
|
|
5
|
+
[](https://github.com/Xylos-Labs/agent-memory-mini/network/members)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
[](https://www.python.org/downloads/)
|
|
8
|
+
|
|
9
|
+
Tiny file-based session memory for coding agents: remember, recall, list, summarise. No server, no API key, no GPU, no embeddings.
|
|
10
|
+
|
|
11
|
+
Built by [Xylos Labs](https://github.com/Xylos-Labs) as an open-source, reproducible project. The store is one JSONL file, one record per line, so you can read it, grep it, and back it up like any other file.
|
|
12
|
+
|
|
13
|
+
## Quick start
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
python -m venv .venv && source .venv/bin/activate
|
|
17
|
+
pip install -e ".[dev]"
|
|
18
|
+
|
|
19
|
+
# Create the store (optional: `remember` creates it on first use)
|
|
20
|
+
python -m agent_memory init
|
|
21
|
+
|
|
22
|
+
# Save a note
|
|
23
|
+
python -m agent_memory remember "fixed login bug" --tags bug,auth
|
|
24
|
+
# {"id": "a1b2c3d4", "timestamp": "...", "session": "default",
|
|
25
|
+
# "text": "fixed login bug", "tags": ["auth", "bug"]}
|
|
26
|
+
|
|
27
|
+
# Read a note from standard input or assign a UTC date
|
|
28
|
+
printf '%s\n' "login review notes" | python -m agent_memory remember --stdin --tags auth --session auth
|
|
29
|
+
python -m agent_memory remember "login rollout" --date 2026-11-25 --tags auth --session auth
|
|
30
|
+
|
|
31
|
+
# Find it later by keyword (text + tags, best match first)
|
|
32
|
+
python -m agent_memory recall "login bug"
|
|
33
|
+
|
|
34
|
+
# Match a phrase in note text, ignoring case (newest match first)
|
|
35
|
+
python -m agent_memory recall --exact "login bug"
|
|
36
|
+
|
|
37
|
+
# Newest notes, or filtered
|
|
38
|
+
python -m agent_memory list --limit 10
|
|
39
|
+
python -m agent_memory list --tag bug
|
|
40
|
+
python -m agent_memory list --days 7
|
|
41
|
+
python -m agent_memory list --after 2026-11-01 --before 2026-11-30
|
|
42
|
+
python -m agent_memory list --reverse # oldest first
|
|
43
|
+
|
|
44
|
+
# List sessions and their note counts
|
|
45
|
+
python -m agent_memory sessions
|
|
46
|
+
|
|
47
|
+
# Recall within one session or tag only
|
|
48
|
+
python -m agent_memory recall "login" --session auth
|
|
49
|
+
python -m agent_memory recall "login" --tag bug
|
|
50
|
+
python -m agent_memory recall "login" --days 7
|
|
51
|
+
|
|
52
|
+
# Sort recall by recency or filter by an inclusive UTC date range
|
|
53
|
+
python -m agent_memory recall "login" --sort recency
|
|
54
|
+
python -m agent_memory recall "login" --after 2026-11-01 --before 2026-11-30
|
|
55
|
+
|
|
56
|
+
# Count tags across all sessions or in one session
|
|
57
|
+
python -m agent_memory tags
|
|
58
|
+
python -m agent_memory tags --session auth
|
|
59
|
+
|
|
60
|
+
# Export everything as CSV (or one session)
|
|
61
|
+
python -m agent_memory export --out notes.csv
|
|
62
|
+
python -m agent_memory export --session auth --out auth-notes.csv
|
|
63
|
+
|
|
64
|
+
# Preserve record fields, including the tags array, as JSON Lines
|
|
65
|
+
python -m agent_memory export --format jsonl --out notes.jsonl
|
|
66
|
+
|
|
67
|
+
# Export a JSON array, or filter exported notes by tag
|
|
68
|
+
python -m agent_memory export --format json --out notes.json
|
|
69
|
+
python -m agent_memory export --tag auth --out auth-tagged.csv
|
|
70
|
+
|
|
71
|
+
# Counts only, no invented content
|
|
72
|
+
python -m agent_memory summary --days 7
|
|
73
|
+
python -m agent_memory summary --session auth
|
|
74
|
+
|
|
75
|
+
# Show only the top three tags
|
|
76
|
+
python -m agent_memory summary --top 3
|
|
77
|
+
|
|
78
|
+
# Preview a date-based deletion without changing the store
|
|
79
|
+
python -m agent_memory forget --before 2026-11-30 --dry-run
|
|
80
|
+
|
|
81
|
+
# Delete by id (or unique prefix)
|
|
82
|
+
python -m agent_memory forget a1b2c3d4
|
|
83
|
+
|
|
84
|
+
# Record a decision with when it was received and when it takes effect
|
|
85
|
+
python -m agent_memory remember "5" --policy-key login.rate_limit --scope all
|
|
86
|
+
python -m agent_memory remember "3" --policy-key login.rate_limit --scope mobile \
|
|
87
|
+
--effective-from 2026-12-12
|
|
88
|
+
|
|
89
|
+
# Ask what the limit was for mobile on Dec 11 (answer: 5, change not yet effective)
|
|
90
|
+
python -m agent_memory resolve login.rate_limit --at 2026-12-11 --scope mobile
|
|
91
|
+
|
|
92
|
+
# Ask what the limit was for mobile on Dec 12 (answer: 3, change now effective)
|
|
93
|
+
python -m agent_memory resolve login.rate_limit --at 2026-12-12 --scope mobile
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## How it works
|
|
97
|
+
|
|
98
|
+
**Store.** Default `.agent-memory/memory.jsonl` in the current directory. Override with `--store PATH` or `AGENT_MEMORY_STORE`. Each record has `id`, `timestamp`, `session`, `text`, `tags`.
|
|
99
|
+
|
|
100
|
+
**List date range.** `--after` and `--before` include their boundary dates, using each note's UTC day. Use either flag alone or both together; they combine with the other filters before `--limit` and `--reverse`.
|
|
101
|
+
|
|
102
|
+
**Recall.** By default, score is how many query words appear in the text or tags, ties break newest first. With `--exact`, the whole query must appear in the note text, ignoring case but preserving punctuation and whitespace. Tags do not count as phrase matches. Exact matches have equal scores and appear newest first with either `--sort` mode; an empty query lists newest notes. All existing filters and `--limit` still apply. No embeddings, no LLM, so results are explainable and offline.
|
|
103
|
+
|
|
104
|
+
**Summary.** Counts by tag, by session and by UTC day for the last N days (default 7), plus the 5 newest notes. It never invents content.
|
|
105
|
+
|
|
106
|
+
**Resolve.** `resolve <policy_key>` answers "what did we know on this date, for this app, at that time?" A decision note carries `recorded_at` (set automatically when the note is stored, never changed by `remember --date`), `effective_from` (when it takes effect, defaults to `recorded_at`), an optional `valid_until`, a `scope` (`mobile`, `web`, or `all`), and an optional `supersedes` id. `resolve` only trusts notes with these fields, picks the applicable note with the latest `effective_from`, and returns its text plus `source_id`. `--as-of` limits the evidence to what was recorded by that time. If two applicable notes conflict it returns `ambiguous` with both notes; if none applies it returns `insufficient_evidence`.
|
|
107
|
+
|
|
108
|
+
## Why use it: agent handoff in 30 seconds
|
|
109
|
+
|
|
110
|
+
A coding agent's context ends when the session ends. This keeps the decisions:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# End of session: save what was decided
|
|
114
|
+
python -m agent_memory remember "use sqlite, not postgres, for the prototype" --tags decision,db --session auth-rework
|
|
115
|
+
python -m agent_memory remember "login rate limit is 5 attempts per minute" --tags decision,auth --session auth-rework
|
|
116
|
+
|
|
117
|
+
# Start of the next session: recall before you code
|
|
118
|
+
python -m agent_memory recall "login" --session auth-rework
|
|
119
|
+
python -m agent_memory summary --days 7
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
The file is plain JSONL, so the next agent (or you) can read it with `cat`, `grep`, or `export` it to CSV - nothing is locked in a database or a cloud account.
|
|
123
|
+
|
|
124
|
+
## Project layout
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
src/agent_memory/ package: store (JSONL), search (keyword), summary (counts), CLI
|
|
128
|
+
tests/ pytest: store, search, CLI subprocess
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Contributors
|
|
132
|
+
|
|
133
|
+
Thanks to everyone who has contributed!
|
|
134
|
+
|
|
135
|
+
[](https://github.com/Xylos-Labs/agent-memory-mini/graphs/contributors)
|
|
136
|
+
|
|
137
|
+
Want to help? See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
138
|
+
|
|
139
|
+
## Licence
|
|
140
|
+
|
|
141
|
+
Code: MIT (see [LICENSE](LICENSE)).
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "agent-memory-mini"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Tiny file-based session memory for coding agents: remember, recall, list, summarise. No server, no API key, no GPU."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = { text = "MIT" }
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [{ name = "Xylos Labs", email = "hello@xyloslabs.com" }]
|
|
13
|
+
keywords = ["agents", "memory", "cli", "notes"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 4 - Beta",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Topic :: Software Development",
|
|
20
|
+
]
|
|
21
|
+
dependencies = []
|
|
22
|
+
|
|
23
|
+
[project.optional-dependencies]
|
|
24
|
+
dev = [
|
|
25
|
+
"pytest>=7.0",
|
|
26
|
+
"pytest-cov>=4.0",
|
|
27
|
+
"ruff>=0.4",
|
|
28
|
+
"mypy>=1.0",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.scripts]
|
|
32
|
+
agent-memory = "agent_memory.__main__:main"
|
|
33
|
+
|
|
34
|
+
[tool.setuptools.dynamic]
|
|
35
|
+
version = { attr = "agent_memory.__version__" }
|
|
36
|
+
|
|
37
|
+
[tool.setuptools.packages.find]
|
|
38
|
+
where = ["src"]
|
|
39
|
+
|
|
40
|
+
[tool.pytest.ini_options]
|
|
41
|
+
testpaths = ["tests"]
|
|
42
|
+
|
|
43
|
+
[tool.coverage.run]
|
|
44
|
+
source = ["agent_memory"]
|
|
45
|
+
branch = true
|
|
46
|
+
parallel = true
|
|
47
|
+
|
|
48
|
+
[tool.coverage.report]
|
|
49
|
+
show_missing = true
|
|
50
|
+
fail_under = 90
|
|
51
|
+
|
|
52
|
+
[tool.ruff]
|
|
53
|
+
line-length = 100
|
|
54
|
+
target-version = "py310"
|
|
55
|
+
|
|
56
|
+
[tool.ruff.lint]
|
|
57
|
+
select = ["E", "F", "I", "PLW", "SIM", "W"]
|
|
58
|
+
|
|
59
|
+
[tool.mypy]
|
|
60
|
+
python_version = "3.10"
|
|
61
|
+
files = "src/agent_memory"
|
|
62
|
+
strict = false
|