myelin-mcp 0.1.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 (88) hide show
  1. myelin_mcp-0.1.2/.devcontainer/devcontainer.json +42 -0
  2. myelin_mcp-0.1.2/.dockerignore +10 -0
  3. myelin_mcp-0.1.2/.env.template +8 -0
  4. myelin_mcp-0.1.2/.gitattributes +2 -0
  5. myelin_mcp-0.1.2/.github/copilot-instructions.md +33 -0
  6. myelin_mcp-0.1.2/.github/workflows/ci.yml +50 -0
  7. myelin_mcp-0.1.2/.github/workflows/release-please.yml +35 -0
  8. myelin_mcp-0.1.2/.gitignore +192 -0
  9. myelin_mcp-0.1.2/.pre-commit-config.yaml +17 -0
  10. myelin_mcp-0.1.2/.python-version +1 -0
  11. myelin_mcp-0.1.2/.release-please-manifest.json +3 -0
  12. myelin_mcp-0.1.2/.vscode/settings.json +7 -0
  13. myelin_mcp-0.1.2/CHANGELOG.md +49 -0
  14. myelin_mcp-0.1.2/CONTRIBUTING.md +150 -0
  15. myelin_mcp-0.1.2/LICENSE +21 -0
  16. myelin_mcp-0.1.2/PKG-INFO +815 -0
  17. myelin_mcp-0.1.2/README.md +778 -0
  18. myelin_mcp-0.1.2/benchmarks/__init__.py +0 -0
  19. myelin_mcp-0.1.2/benchmarks/locomo/__init__.py +0 -0
  20. myelin_mcp-0.1.2/benchmarks/locomo/run.py +362 -0
  21. myelin_mcp-0.1.2/benchmarks/locomo/score.py +185 -0
  22. myelin_mcp-0.1.2/benchmarks/longmemeval/__init__.py +0 -0
  23. myelin_mcp-0.1.2/benchmarks/longmemeval/download_data.sh +38 -0
  24. myelin_mcp-0.1.2/benchmarks/longmemeval/experiment.py +542 -0
  25. myelin_mcp-0.1.2/benchmarks/longmemeval/run.py +567 -0
  26. myelin_mcp-0.1.2/benchmarks/longmemeval/score.py +222 -0
  27. myelin_mcp-0.1.2/benchmarks/profile_recall.py +224 -0
  28. myelin_mcp-0.1.2/benchmarks/regression/__init__.py +0 -0
  29. myelin_mcp-0.1.2/benchmarks/regression/run.py +439 -0
  30. myelin_mcp-0.1.2/img/myelin.png +0 -0
  31. myelin_mcp-0.1.2/img/vscode-configure-tools.png +0 -0
  32. myelin_mcp-0.1.2/img/vscode-mcp-output.png +0 -0
  33. myelin_mcp-0.1.2/img/vscode-myelin-tools.png +0 -0
  34. myelin_mcp-0.1.2/mcp.json.example +8 -0
  35. myelin_mcp-0.1.2/myelin/__init__.py +5 -0
  36. myelin_mcp-0.1.2/myelin/__main__.py +5 -0
  37. myelin_mcp-0.1.2/myelin/cli.py +156 -0
  38. myelin_mcp-0.1.2/myelin/config.py +142 -0
  39. myelin_mcp-0.1.2/myelin/lock.py +135 -0
  40. myelin_mcp-0.1.2/myelin/log.py +73 -0
  41. myelin_mcp-0.1.2/myelin/models.py +90 -0
  42. myelin_mcp-0.1.2/myelin/py.typed +0 -0
  43. myelin_mcp-0.1.2/myelin/recall/__init__.py +7 -0
  44. myelin_mcp-0.1.2/myelin/recall/activation.py +123 -0
  45. myelin_mcp-0.1.2/myelin/recall/decay.py +52 -0
  46. myelin_mcp-0.1.2/myelin/recall/query_planner.py +140 -0
  47. myelin_mcp-0.1.2/myelin/recall/time_cells.py +198 -0
  48. myelin_mcp-0.1.2/myelin/reranker.py +81 -0
  49. myelin_mcp-0.1.2/myelin/server.py +579 -0
  50. myelin_mcp-0.1.2/myelin/store/__init__.py +29 -0
  51. myelin_mcp-0.1.2/myelin/store/amygdala.py +32 -0
  52. myelin_mcp-0.1.2/myelin/store/chunking.py +216 -0
  53. myelin_mcp-0.1.2/myelin/store/consolidation.py +207 -0
  54. myelin_mcp-0.1.2/myelin/store/entorhinal.py +204 -0
  55. myelin_mcp-0.1.2/myelin/store/hippocampus.py +1273 -0
  56. myelin_mcp-0.1.2/myelin/store/neocortex.py +314 -0
  57. myelin_mcp-0.1.2/myelin/store/perirhinal.py +261 -0
  58. myelin_mcp-0.1.2/myelin/store/prefrontal.py +167 -0
  59. myelin_mcp-0.1.2/myelin/store/thalamus.py +211 -0
  60. myelin_mcp-0.1.2/pyproject.toml +80 -0
  61. myelin_mcp-0.1.2/release-please-config.json +13 -0
  62. myelin_mcp-0.1.2/tests/__init__.py +0 -0
  63. myelin_mcp-0.1.2/tests/benchmarks/__init__.py +0 -0
  64. myelin_mcp-0.1.2/tests/benchmarks/test_score.py +196 -0
  65. myelin_mcp-0.1.2/tests/conftest.py +32 -0
  66. myelin_mcp-0.1.2/tests/recall/__init__.py +0 -0
  67. myelin_mcp-0.1.2/tests/recall/test_activation.py +48 -0
  68. myelin_mcp-0.1.2/tests/recall/test_decay.py +83 -0
  69. myelin_mcp-0.1.2/tests/recall/test_query_planner.py +52 -0
  70. myelin_mcp-0.1.2/tests/recall/test_time_cells.py +168 -0
  71. myelin_mcp-0.1.2/tests/store/__init__.py +0 -0
  72. myelin_mcp-0.1.2/tests/store/test_amygdala.py +48 -0
  73. myelin_mcp-0.1.2/tests/store/test_chunking.py +183 -0
  74. myelin_mcp-0.1.2/tests/store/test_consolidation.py +92 -0
  75. myelin_mcp-0.1.2/tests/store/test_entorhinal.py +152 -0
  76. myelin_mcp-0.1.2/tests/store/test_hippocampus.py +331 -0
  77. myelin_mcp-0.1.2/tests/store/test_neocortex.py +180 -0
  78. myelin_mcp-0.1.2/tests/store/test_perirhinal.py +125 -0
  79. myelin_mcp-0.1.2/tests/store/test_prefrontal.py +70 -0
  80. myelin_mcp-0.1.2/tests/store/test_thalamus.py +142 -0
  81. myelin_mcp-0.1.2/tests/test_cli.py +70 -0
  82. myelin_mcp-0.1.2/tests/test_concurrency.py +255 -0
  83. myelin_mcp-0.1.2/tests/test_config.py +59 -0
  84. myelin_mcp-0.1.2/tests/test_lock.py +133 -0
  85. myelin_mcp-0.1.2/tests/test_logging.py +224 -0
  86. myelin_mcp-0.1.2/tests/test_neocortex_reranker.py +54 -0
  87. myelin_mcp-0.1.2/tests/test_server.py +182 -0
  88. myelin_mcp-0.1.2/uv.lock +3451 -0
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "Myelin Dev Container",
3
+ "image": "mcr.microsoft.com/devcontainers/python:3.13",
4
+ "features": {
5
+ "ghcr.io/devcontainers-extra/features/uv:1": {},
6
+ },
7
+ // Named volume for .venv so host venv doesn't conflict with container Linux venv
8
+ "mounts": [
9
+ "source=${localWorkspaceFolderBasename}-venv,target=${containerWorkspaceFolder}/.venv,type=volume"
10
+ ],
11
+ "postCreateCommand": "sudo chown vscode:vscode .venv && UV_LINK_MODE=copy uv sync --extra dev && uv run pre-commit install",
12
+ // Forward host OPENAI_API_KEY into the container (used by benchmark evaluation)
13
+ "remoteEnv": {
14
+ "HF_TOKEN": "${localEnv:HF_TOKEN}",
15
+ "OPENAI_API_KEY": "${localEnv:OPENAI_API_KEY}"
16
+ },
17
+ "customizations": {
18
+ "vscode": {
19
+ "extensions": [
20
+ "ms-python.python",
21
+ "ms-python.mypy-type-checker",
22
+ "charliermarsh.ruff",
23
+ "qwtel.sqlite-viewer",
24
+ "GitHub.copilot",
25
+ "GitHub.copilot-chat",
26
+ "tamasfe.even-better-toml",
27
+ "ms-python.debugpy",
28
+ "github.vscode-github-actions",
29
+ "MichaelErmer.vsex-chromadb-viewer",
30
+ "bierner.markdown-preview-github-styles",
31
+ "bierner.github-markdown-preview"
32
+ ],
33
+ "settings": {
34
+ "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
35
+ "[python]": {
36
+ "editor.defaultFormatter": "charliermarsh.ruff",
37
+ "editor.formatOnSave": true
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,10 @@
1
+ .venv
2
+ __pycache__
3
+ *.pyc
4
+ .git
5
+ .mypy_cache
6
+ .pytest_cache
7
+ .ruff_cache
8
+ dist
9
+ build
10
+ *.egg-info
@@ -0,0 +1,8 @@
1
+ # Copy this file to .env and fill in values.
2
+ # .env is gitignored — never commit secrets.
3
+ #
4
+ # Note: Myelin does NOT read .env automatically.
5
+ # These are only used if you manually source them or use direnv.
6
+
7
+ # ── Benchmark evaluation (LongMemEval GPT-4o judge) ─────────────
8
+ OPENAI_API_KEY=
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -0,0 +1,33 @@
1
+ # Copilot Instructions
2
+
3
+ ## Memory
4
+
5
+ You have access to a long-term memory system (Myelin) via MCP tools.
6
+
7
+ ### When to Recall
8
+ - At the START of every task, recall relevant context about the current project, file, or problem domain.
9
+ - Before making architectural decisions, recall past decisions and their rationale.
10
+ - When debugging, recall similar past issues and their resolutions.
11
+
12
+ ### When to Store
13
+ - After making significant decisions — record WHAT was decided and WHY.
14
+ - After resolving non-trivial bugs — record the symptoms, root cause, and fix.
15
+ - When discovering project conventions, patterns, or gotchas.
16
+ - After completing a meaningful feature — summarize the approach and trade-offs.
17
+
18
+ ### How to Store Effectively
19
+ - Always include `project` metadata (e.g., project="myelin").
20
+ - Use `scope` to organize by domain (e.g., scope="auth", scope="database").
21
+ - Use `tags` for cross-cutting concerns (e.g., tags="performance,optimization").
22
+ - Use `memory_type` when it's clear: "semantic" for decisions/facts, "procedural" for how-to, "episodic" for events, "prospective" for plans.
23
+ - Be specific. "We use JWT RS256 because asymmetric keys let the API gateway verify without the signing secret" is better than "We use JWT."
24
+
25
+ ### Maintenance
26
+ - After extended sessions (10+ stores), run `consolidate` to build the semantic network — it improves recall by linking related entities.
27
+ - Consolidation auto-triggers every 50 stores, but running it manually after a burst of activity gives immediate benefit.
28
+ - Periodically run `decay_sweep` to prune stale memories (90+ days idle, <2 accesses).
29
+
30
+ ### What NOT to Store
31
+ - Trivial or ephemeral information (typo fixes, one-off commands).
32
+ - Exact code blocks — store the reasoning, not the implementation.
33
+ - Anything sensitive (secrets, credentials, PII).
@@ -0,0 +1,50 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ lint:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: astral-sh/setup-uv@v5
18
+ - run: uv sync --extra dev
19
+ - run: uv run ruff check .
20
+ - run: uv run ruff format --diff .
21
+
22
+ test:
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - uses: astral-sh/setup-uv@v5
27
+ - run: uv sync --extra dev
28
+ - run: uv run pytest -v --cov=myelin --cov-report=term-missing
29
+
30
+ typecheck:
31
+ runs-on: ubuntu-latest
32
+ steps:
33
+ - uses: actions/checkout@v4
34
+ - uses: astral-sh/setup-uv@v5
35
+ - run: uv sync --extra dev
36
+ - run: uv run mypy myelin/
37
+
38
+ deps:
39
+ runs-on: ubuntu-latest
40
+ if: github.event_name == 'pull_request'
41
+ steps:
42
+ - uses: actions/checkout@v4
43
+ - uses: actions/dependency-review-action@v4
44
+
45
+ build:
46
+ runs-on: ubuntu-latest
47
+ steps:
48
+ - uses: actions/checkout@v4
49
+ - uses: astral-sh/setup-uv@v5
50
+ - run: uv build
@@ -0,0 +1,35 @@
1
+ name: Release Please
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ permissions:
8
+ contents: write
9
+ pull-requests: write
10
+
11
+ jobs:
12
+ release-please:
13
+ runs-on: ubuntu-latest
14
+ outputs:
15
+ release_created: ${{ steps.release.outputs.release_created }}
16
+ steps:
17
+ - uses: googleapis/release-please-action@v4
18
+ id: release
19
+ with:
20
+ token: ${{ secrets.GITHUB_TOKEN }}
21
+
22
+ publish:
23
+ needs: release-please
24
+ if: ${{ needs.release-please.outputs.release_created == 'true' }}
25
+ runs-on: ubuntu-latest
26
+ environment: pypi
27
+ permissions:
28
+ id-token: write # Required for PyPI OIDC trusted publishing
29
+ steps:
30
+ - uses: actions/checkout@v4
31
+ - uses: astral-sh/setup-uv@v5
32
+ - name: Build distribution
33
+ run: uv build
34
+ - name: Publish to PyPI
35
+ run: uv publish --trusted-publishing automatic
@@ -0,0 +1,192 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+
110
+ # pdm
111
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112
+ #pdm.lock
113
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114
+ # in version control.
115
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116
+ .pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
169
+
170
+ # Ruff stuff:
171
+ .ruff_cache/
172
+
173
+ # PyPI configuration file
174
+ .pypirc
175
+
176
+ # Cursor
177
+ # Cursor is an AI-powered code editor.`.cursorignore` specifies files/directories to
178
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
179
+ # refer to https://docs.cursor.com/context/ignore-files
180
+ .cursorignore
181
+ .cursorindexingignore
182
+
183
+ # Benchmark data and outputs
184
+ benchmarks/longmemeval/data/
185
+ benchmarks/longmemeval/output/
186
+ benchmarks/longmemeval/eval_kit/
187
+ benchmarks/longmemeval/cache/
188
+ benchmarks/locomo/data/
189
+ benchmarks/locomo/output/
190
+ benchmarks/regression/baseline/
191
+ TODO.md
192
+ benchmarks/longmemeval/cache.py
@@ -0,0 +1,17 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.15.0
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
8
+
9
+ - repo: https://github.com/pre-commit/pre-commit-hooks
10
+ rev: v5.0.0
11
+ hooks:
12
+ - id: trailing-whitespace
13
+ - id: end-of-file-fixer
14
+ - id: check-yaml
15
+ - id: check-added-large-files
16
+ args: [--maxkb=700]
17
+ - id: check-merge-conflict
@@ -0,0 +1 @@
1
+ 3.13
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.2"
3
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "python.testing.pytestArgs": [
3
+ "tests"
4
+ ],
5
+ "python.testing.unittestEnabled": false,
6
+ "python.testing.pytestEnabled": true
7
+ }
@@ -0,0 +1,49 @@
1
+ # Changelog
2
+
3
+ ## [0.1.2](https://github.com/et-do/myelin/compare/v0.1.1...v0.1.2) (2026-04-16)
4
+
5
+
6
+ ### Features
7
+
8
+ * add memory upsert via store(overwrite=True) ([1a3712f](https://github.com/et-do/myelin/commit/1a3712f94440ba47aad6221636297efc1095bed0))
9
+ * add memory upsert via store(overwrite=True) ([49b146a](https://github.com/et-do/myelin/commit/49b146a4190e9258133d3d8eb2e157bcb6d8660d))
10
+ * add PyPI publishing workflow and polish install docs ([d66faa8](https://github.com/et-do/myelin/commit/d66faa8f33cb277c2346da8585664b43bab6b8da))
11
+ * add PyPI publishing workflow and polish install docs ([3d200b7](https://github.com/et-do/myelin/commit/3d200b7c4a39cc1e831387088e23d13de31693f3))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * exclusive process lock on data directory to prevent concurrent c… ([2a9a675](https://github.com/et-do/myelin/commit/2a9a675b9e2ba215ce49a1fc8b467d9eb65f35d4))
17
+ * exclusive process lock on data directory to prevent concurrent corruption ([6ab8930](https://github.com/et-do/myelin/commit/6ab89302612ba68d56a75b290edeca30893df170))
18
+ * improve logging — centralize noise suppression, add operation co… ([dcc0ba9](https://github.com/et-do/myelin/commit/dcc0ba9efdaa3470a49d41dfff789413fa45fc50))
19
+ * improve logging — centralize noise suppression, add operation context, promote failures ([dfb62fa](https://github.com/et-do/myelin/commit/dfb62facd0c7c5e20cddcab89c7cf366a3e0f3fc))
20
+ * rename PyPI package to myelin-mcp to resolve name conflict ([#14](https://github.com/et-do/myelin/issues/14)) ([b9b0a23](https://github.com/et-do/myelin/commit/b9b0a234c0ebf1e14ca162eea4044341f1351d15))
21
+ * update stale DataDirLocked docstring references to DataDirLockedError ([639ef52](https://github.com/et-do/myelin/commit/639ef52d5b95e6eab1ea68c5267c4b9fb564cf3b))
22
+
23
+
24
+ ### Documentation
25
+
26
+ * document store overwrite parameter in MCP tools table ([d89aa82](https://github.com/et-do/myelin/commit/d89aa829d2d2625c265d9a9472d1ecd887788681))
27
+ * require squash and merge in contributing workflow ([#13](https://github.com/et-do/myelin/issues/13)) ([ae8fea0](https://github.com/et-do/myelin/commit/ae8fea0a0c8e55b1dbc273f79de4306c844f5e41))
28
+
29
+ ## [0.1.1](https://github.com/et-do/myelin/compare/v0.1.0...v0.1.1) (2026-04-15)
30
+
31
+
32
+ ### Features
33
+
34
+ * add release-please for automated releases ([32cd7cd](https://github.com/et-do/myelin/commit/32cd7cd008a2fa96393bc8a1e53bb2de39c65b78))
35
+ * add release-please for automated releases ([c69c503](https://github.com/et-do/myelin/commit/c69c503b9fed4257b8e0cfc4fce9cf0a63f80d82))
36
+ * add release-please for automated releases ([456d311](https://github.com/et-do/myelin/commit/456d311081b0680ccbf41b460e88892f503e9d12))
37
+ * session evidence aggregation boost for multi-evidence recall ([03a8b19](https://github.com/et-do/myelin/commit/03a8b19f48f69b2a7cd7041d493d6bd22b2ff629))
38
+
39
+
40
+ ### Documentation
41
+
42
+ * add CONTRIBUTING.md and slim down README ([9ecf1b2](https://github.com/et-do/myelin/commit/9ecf1b21994b0c61d92975cab929393df8a684d9))
43
+ * clarify recommended venv-based install for Myelin ([2ed1f47](https://github.com/et-do/myelin/commit/2ed1f4713a0eea315527ceade3e9c1852d84689c))
44
+ * prettify README header with centered layout and badges ([f52c3c9](https://github.com/et-do/myelin/commit/f52c3c9f1f33361176f974b9e3aa59b3a6862cb9))
45
+ * prettify README header with centered layout and badges ([f6ee006](https://github.com/et-do/myelin/commit/f6ee0066b1480d56530894033376a34c4472bae6))
46
+ * restructure pipeline walkthrough, add consolidation guidance an… ([344f1e2](https://github.com/et-do/myelin/commit/344f1e26b0a5c458225dd8c78a81b474d2d45ad2))
47
+ * restructure pipeline walkthrough, add consolidation guidance and no-admin install option ([05714c4](https://github.com/et-do/myelin/commit/05714c4860c45c6e19aa4a7f2891441f574b76b2))
48
+ * rewrite install guide with clearer steps, screenshots, and data inspection ([8ec8ba5](https://github.com/et-do/myelin/commit/8ec8ba597f61238a80d547060f2a3b11fb14bc85))
49
+ * update LoCoMo benchmark numbers after session aggregation boost ([df9b6fc](https://github.com/et-do/myelin/commit/df9b6fca73a8f9a834e5b29dd02d18ea32e1b5c4))
@@ -0,0 +1,150 @@
1
+ # Contributing to Myelin
2
+
3
+ ## Development Environment
4
+
5
+ ### Dev Container (recommended)
6
+
7
+ The repo includes a Dev Container that sets up everything automatically:
8
+
9
+ 1. Open the repo in VS Code
10
+ 2. "Reopen in Container" when prompted (or `Ctrl+Shift+P` → "Dev Containers: Reopen in Container")
11
+ 3. The container installs dependencies, pre-commit hooks, and VS Code extensions automatically
12
+
13
+ ### Manual Setup
14
+
15
+ ```bash
16
+ git clone https://github.com/et-do/myelin.git
17
+ cd myelin
18
+ uv sync --extra dev
19
+ uv run pre-commit install
20
+ ```
21
+
22
+ ## Workflow
23
+
24
+ We use a trunk-based workflow. All work goes through PRs into `main`.
25
+
26
+ 1. **Branch off main**: `git checkout -b feat/my-feature`
27
+ 2. **Use conventional commits** (see below)
28
+ 3. **Open a PR** into `main`
29
+ 4. CI runs lint, tests, type checking, and dependency review
30
+ 5. **Squash and merge** when all checks pass (keeps `main` history clean and avoids duplicate changelog entries)
31
+
32
+ ### Conventional Commits
33
+
34
+ We use [Conventional Commits](https://www.conventionalcommits.org/) to drive automated releases. Every commit message should follow this format:
35
+
36
+ ```
37
+ <type>: <description>
38
+
39
+ [optional body]
40
+ ```
41
+
42
+ | Type | When to use | Version bump |
43
+ |------|-------------|--------------|
44
+ | `feat:` | New feature | minor (0.1.0 → 0.2.0) |
45
+ | `fix:` | Bug fix | patch (0.1.0 → 0.1.1) |
46
+ | `feat!:` or `fix!:` | Breaking change | minor while pre-1.0 |
47
+ | `docs:` | Documentation only | none |
48
+ | `chore:` | Maintenance, CI, deps | none |
49
+ | `refactor:` | Code change, no new feature or fix | none |
50
+ | `test:` | Adding or updating tests | none |
51
+ | `perf:` | Performance improvement | none |
52
+
53
+ Examples:
54
+ ```
55
+ feat: add TTL-based memory expiration
56
+ fix: prevent duplicate chunks on rapid store calls
57
+ docs: update setup guide for cloud deployment
58
+ feat!: change recall API to return scored results
59
+ ```
60
+
61
+ ### Releases
62
+
63
+ Releases are fully automated via [release-please](https://github.com/googleapis/release-please):
64
+
65
+ 1. Merge PRs with conventional commits into `main`
66
+ 2. Release-please accumulates changes and opens a **Release PR** with a version bump + CHANGELOG
67
+ 3. When you're ready to cut a release, merge the Release PR
68
+ 4. A GitHub Release + tag is created automatically, and `pyproject.toml` version is bumped
69
+
70
+ You never need to manually edit the version number.
71
+
72
+ ## Quality Checks
73
+
74
+ All of these run in CI and should pass before merging:
75
+
76
+ ```bash
77
+ # Tests with coverage
78
+ uv run pytest -v --cov=myelin
79
+
80
+ # Linting
81
+ uv run ruff check .
82
+ uv run ruff format --diff .
83
+
84
+ # Type checking (strict)
85
+ uv run mypy myelin/ --strict
86
+
87
+ # Pre-commit (runs ruff, trailing whitespace, etc.)
88
+ uv run pre-commit run --all-files
89
+ ```
90
+
91
+ ## Project Structure
92
+
93
+ ```
94
+ myelin/ # Core library
95
+ store/ # Store path modules
96
+ hippocampus.py # Vector store (ChromaDB) — embed + store + dual-path search
97
+ amygdala.py # Input gate — rejects noise, near-duplicates
98
+ prefrontal.py # Auto-classifies memory_type via schema matching
99
+ chunking.py # Pattern separation — splits long content into chunks
100
+ entorhinal.py # Context coordinates — keywords, region, speakers
101
+ perirhinal.py # Gist extraction — extractive summaries (no LLM)
102
+ neocortex.py # Semantic network — entity graph + spreading activation
103
+ consolidation.py # Offline replay — entity extraction + graph building
104
+ thalamus.py # Pinned memories + recency tracking
105
+ recall/ # Recall path modules
106
+ query_planner.py # Auto-infers filters from query
107
+ activation.py # Hebbian co-access learning
108
+ decay.py # TTL pruning of stale memories
109
+ time_cells.py # Temporal reference detection + boost
110
+ server.py # MCP server exposing tools to AI agents
111
+ cli.py # CLI interface
112
+ config.py # Configuration (pydantic-settings)
113
+ models.py # Pydantic data models
114
+ reranker.py # Cross-encoder re-ranking
115
+ tests/ # Unit tests (pytest)
116
+ benchmarks/ # LongMemEval, LoCoMo, regression gate
117
+ .github/ # CI workflows, Copilot instructions
118
+ ```
119
+
120
+ ## Benchmarking
121
+
122
+ ### LongMemEval
123
+
124
+ ```bash
125
+ bash benchmarks/longmemeval/download_data.sh
126
+
127
+ uv run python -m benchmarks.longmemeval.run \
128
+ benchmarks/longmemeval/data/longmemeval_oracle.json \
129
+ benchmarks/longmemeval/output/myelin_oracle.jsonl 5 4
130
+
131
+ uv run python -m benchmarks.longmemeval.score \
132
+ benchmarks/longmemeval/data/longmemeval_oracle.json \
133
+ benchmarks/longmemeval/output/myelin_oracle_YYYYMMDD_HHMMSS.jsonl
134
+ ```
135
+
136
+ ### LoCoMo
137
+
138
+ ```bash
139
+ uv run python -m benchmarks.locomo.run
140
+ uv run python -m benchmarks.locomo.score benchmarks/locomo/output/myelin_locomo.json
141
+ ```
142
+
143
+ ### Regression Gate
144
+
145
+ Fast subset (54 LME + 304 LoCoMo questions). Fails if any metric drops >1pp below baseline.
146
+
147
+ ```bash
148
+ uv run python -m benchmarks.regression.run --create-baseline
149
+ uv run python -m benchmarks.regression.run
150
+ ```
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ethan
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.