synapse-layer 2.4.1__tar.gz → 2.4.3__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.
- synapse_layer-2.4.3/LICENSE +201 -0
- synapse_layer-2.4.3/PKG-INFO +298 -0
- synapse_layer-2.4.3/README.md +248 -0
- synapse_layer-2.4.3/pyproject.toml +106 -0
- synapse_layer-2.4.3/synapse_layer/__init__.py +24 -0
- synapse_layer-2.4.3/synapse_layer.egg-info/PKG-INFO +298 -0
- synapse_layer-2.4.3/synapse_layer.egg-info/SOURCES.txt +92 -0
- synapse_layer-2.4.3/synapse_layer.egg-info/requires.txt +28 -0
- synapse_layer-2.4.3/synapse_layer.egg-info/top_level.txt +2 -0
- synapse_layer-2.4.3/synapse_memory/__init__.py +127 -0
- synapse_layer-2.4.3/synapse_memory/autosave/__init__.py +29 -0
- synapse_layer-2.4.3/synapse_memory/autosave/engine.py +380 -0
- synapse_layer-2.4.3/synapse_memory/autosave/formatter.py +54 -0
- synapse_layer-2.4.3/synapse_memory/autosave/policy.py +223 -0
- synapse_layer-2.4.3/synapse_memory/autosave/triggers.py +235 -0
- synapse_layer-2.4.3/synapse_memory/autosave/types.py +72 -0
- synapse_layer-2.4.3/synapse_memory/backends/__init__.py +34 -0
- synapse_layer-2.4.3/synapse_memory/backends/forge_backend.py +661 -0
- synapse_layer-2.4.3/synapse_memory/backends/interface.py +73 -0
- synapse_layer-2.4.3/synapse_memory/backends/memory_backend.py +90 -0
- synapse_layer-2.4.3/synapse_memory/backends/sqlite_backend.py +226 -0
- synapse_layer-2.4.3/synapse_memory/client.py +269 -0
- synapse_layer-2.4.3/synapse_memory/core.py +591 -0
- synapse_layer-2.4.3/synapse_memory/crypto/__init__.py +25 -0
- synapse_layer-2.4.3/synapse_memory/crypto/aes.py +197 -0
- synapse_layer-2.4.3/synapse_memory/embeddings.py +148 -0
- synapse_layer-2.4.3/synapse_memory/engine/__init__.py +29 -0
- synapse_layer-2.4.3/synapse_memory/engine/handover.py +936 -0
- synapse_layer-2.4.3/synapse_memory/engine/validator.py +526 -0
- synapse_layer-2.4.3/synapse_memory/exceptions.py +70 -0
- synapse_layer-2.4.3/synapse_memory/integrations/__init__.py +51 -0
- synapse_layer-2.4.3/synapse_memory/integrations/autogen_memory.py +242 -0
- synapse_layer-2.4.3/synapse_memory/integrations/crewai_memory.py +456 -0
- synapse_layer-2.4.3/synapse_memory/integrations/langchain_memory.py +254 -0
- synapse_layer-2.4.3/synapse_memory/integrations/llamaindex.py +355 -0
- synapse_layer-2.4.3/synapse_memory/integrations/semantic_kernel.py +453 -0
- synapse_layer-2.4.3/synapse_memory/plugins/__init__.py +46 -0
- synapse_layer-2.4.3/synapse_memory/plugins/defaults.py +80 -0
- synapse_layer-2.4.3/synapse_memory/plugins/interfaces.py +156 -0
- synapse_layer-2.4.3/synapse_memory/plugins/plugin_loader.py +75 -0
- synapse_layer-2.4.3/synapse_memory/privacy.py +167 -0
- synapse_layer-2.4.3/synapse_memory/router.py +205 -0
- synapse_layer-2.4.3/synapse_memory/sanitizer.py +295 -0
- synapse_layer-2.4.3/synapse_memory/wrapper.py +270 -0
- synapse_layer-2.4.3/tests/test_autosave.py +596 -0
- synapse_layer-2.4.3/tests/test_backends.py +208 -0
- synapse_layer-2.4.3/tests/test_core_integration.py +336 -0
- synapse_layer-2.4.3/tests/test_coverage_boost.py +394 -0
- synapse_layer-2.4.3/tests/test_crypto.py +145 -0
- synapse_layer-2.4.3/tests/test_forge_backend.py +458 -0
- synapse_layer-2.4.3/tests/test_handover.py +268 -0
- synapse_layer-2.4.3/tests/test_plugin_architecture.py +527 -0
- synapse_layer-2.4.3/tests/test_privacy.py +155 -0
- synapse_layer-2.4.3/tests/test_sanitizer.py +251 -0
- synapse_layer-2.4.3/tests/test_validator.py +207 -0
- synapse_layer-2.4.3/tests/test_wrapper.py +90 -0
- synapse_layer-2.4.1/LICENSE +0 -17
- synapse_layer-2.4.1/PKG-INFO +0 -256
- synapse_layer-2.4.1/README.md +0 -229
- synapse_layer-2.4.1/pyproject.toml +0 -40
- synapse_layer-2.4.1/synapse_layer/__init__.py +0 -72
- synapse_layer-2.4.1/synapse_layer/a2a_client.py +0 -337
- synapse_layer-2.4.1/synapse_layer/client.py +0 -217
- synapse_layer-2.4.1/synapse_layer/crewai_tools.py +0 -322
- synapse_layer-2.4.1/synapse_layer/langchain_memory.py +0 -286
- synapse_layer-2.4.1/synapse_layer/plugins/__init__.py +0 -8
- synapse_layer-2.4.1/synapse_layer/plugins/base.py +0 -153
- synapse_layer-2.4.1/synapse_layer/plugins/medical_resolver.py +0 -137
- synapse_layer-2.4.1/synapse_layer.egg-info/PKG-INFO +0 -256
- synapse_layer-2.4.1/synapse_layer.egg-info/SOURCES.txt +0 -16
- synapse_layer-2.4.1/synapse_layer.egg-info/requires.txt +0 -9
- synapse_layer-2.4.1/synapse_layer.egg-info/top_level.txt +0 -1
- {synapse_layer-2.4.1 → synapse_layer-2.4.3}/setup.cfg +0 -0
- {synapse_layer-2.4.1 → synapse_layer-2.4.3}/synapse_layer.egg-info/dependency_links.txt +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,298 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: synapse-layer
|
|
3
|
+
Version: 2.4.3
|
|
4
|
+
Summary: Persistent memory infrastructure for AI agents — AES-256-GCM encrypted at rest, semantic search, MCP-native.
|
|
5
|
+
Author-email: Ismael Marchi <founder.synapselayer@proton.me>
|
|
6
|
+
License: Apache 2.0
|
|
7
|
+
Project-URL: Homepage, https://synapselayer.org
|
|
8
|
+
Project-URL: Repository, https://github.com/SynapseLayer/synapse-layer
|
|
9
|
+
Project-URL: Documentation, https://synapselayer.org/docs
|
|
10
|
+
Project-URL: Issues, https://github.com/SynapseLayer/synapse-layer/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/SynapseLayer/synapse-layer/blob/main/CHANGELOG.md
|
|
12
|
+
Project-URL: Security, https://github.com/SynapseLayer/synapse-layer/blob/main/SECURITY.md
|
|
13
|
+
Keywords: mcp,memory,ai-agents,pgvector,encryption,persistent-memory,agentic-ai,cross-agent-memory
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
23
|
+
Classifier: Topic :: Security :: Cryptography
|
|
24
|
+
Requires-Python: >=3.10
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: cryptography>=48.0.1
|
|
28
|
+
Requires-Dist: pydantic>=2.4.0
|
|
29
|
+
Requires-Dist: httpx>=0.27.0
|
|
30
|
+
Provides-Extra: langchain
|
|
31
|
+
Requires-Dist: langchain-core>=0.3.0; extra == "langchain"
|
|
32
|
+
Provides-Extra: crewai
|
|
33
|
+
Requires-Dist: crewai>=1.14.0; extra == "crewai"
|
|
34
|
+
Provides-Extra: autogen
|
|
35
|
+
Requires-Dist: autogen-core>=0.7.0; extra == "autogen"
|
|
36
|
+
Provides-Extra: llamaindex
|
|
37
|
+
Requires-Dist: llama-index-core>=0.11.0; extra == "llamaindex"
|
|
38
|
+
Provides-Extra: semantic-kernel
|
|
39
|
+
Requires-Dist: semantic-kernel>=1.0.0; extra == "semantic-kernel"
|
|
40
|
+
Provides-Extra: dev
|
|
41
|
+
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
42
|
+
Requires-Dist: pytest-cov>=5.0.0; extra == "dev"
|
|
43
|
+
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
|
|
44
|
+
Requires-Dist: respx>=0.21.0; extra == "dev"
|
|
45
|
+
Requires-Dist: black>=24.0.0; extra == "dev"
|
|
46
|
+
Requires-Dist: isort>=5.13.0; extra == "dev"
|
|
47
|
+
Requires-Dist: mypy>=1.8.0; extra == "dev"
|
|
48
|
+
Requires-Dist: ruff>=0.3.0; extra == "dev"
|
|
49
|
+
Dynamic: license-file
|
|
50
|
+
|
|
51
|
+
<div align="center">
|
|
52
|
+
|
|
53
|
+
# 🧠 Synapse Layer
|
|
54
|
+
|
|
55
|
+
### RAG retrieves. Synapse remembers.
|
|
56
|
+
|
|
57
|
+
**Persistent memory infrastructure for AI agents — AES-256-GCM encrypted at rest, semantic search, MCP-native.**
|
|
58
|
+
|
|
59
|
+
Synapse Layer is open-source persistent memory infrastructure for AI agents and assistants. Memories are encrypted at rest with AES-256-GCM, indexed via pgvector HNSW for semantic recall, and exposed through MCP JSON-RPC for native integration with Claude, GPT, Gemini, and any MCP-compatible client. Apache 2.0 licensed.
|
|
60
|
+
|
|
61
|
+
[](https://pypi.org/project/synapse-layer/)
|
|
62
|
+
[](https://pypi.org/project/synapse-layer/)
|
|
63
|
+
[](https://pypi.org/project/synapse-layer/)
|
|
64
|
+
[](https://modelcontextprotocol.io)
|
|
65
|
+
[](LICENSE)
|
|
66
|
+
[](https://smithery.ai/servers/synapselayer/synapse-protocol)
|
|
67
|
+
|
|
68
|
+
[Website](https://synapselayer.org) · [Docs](https://forge.synapselayer.org/docs) · [PyPI](https://pypi.org/project/synapse-layer/) · [Forge](https://forge.synapselayer.org)
|
|
69
|
+
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## ⚡ 30-Second Quickstart
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
pip install synapse-layer
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
from synapse_layer import Synapse
|
|
82
|
+
|
|
83
|
+
s = Synapse(token="sk_connect_YOUR_TOKEN")
|
|
84
|
+
|
|
85
|
+
s.save("user likes coffee")
|
|
86
|
+
print(s.recall("what does user like?"))
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Get your token at [forge.synapselayer.org](https://forge.synapselayer.org) → Dashboard → Connect
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## What is Synapse Layer?
|
|
94
|
+
|
|
95
|
+
The **persistent memory layer for AI agents** — the missing piece between stateless LLMs and real continuity of context.
|
|
96
|
+
|
|
97
|
+
Your AI agents forget everything between sessions. Synapse Layer fixes that.
|
|
98
|
+
|
|
99
|
+
| Feature | Description |
|
|
100
|
+
|---------|-------------|
|
|
101
|
+
| 🔐 **Encrypted at rest** | AES-256-GCM with per-operation random IV and HMAC-SHA-256 integrity |
|
|
102
|
+
| 🧩 **One-click connect** | Claude Desktop, Cursor, LangChain, CrewAI, n8n |
|
|
103
|
+
| 🌐 **Cross-agent memory** | Save in ChatGPT, recall in Claude |
|
|
104
|
+
| ⚡ **MCP-native** | Any MCP-compatible agent |
|
|
105
|
+
| 🔒 **Header-first auth** | Tokens never in URLs or logs |
|
|
106
|
+
| 🎯 **Trust Quotient** | Deterministic recall — memories ranked by confidence, not recency alone |
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Why Synapse Layer?
|
|
111
|
+
|
|
112
|
+
> Your AI agents forget everything between sessions. Synapse Layer fixes that — in one line.
|
|
113
|
+
|
|
114
|
+
| Without Synapse Layer | With Synapse Layer |
|
|
115
|
+
|---|---|
|
|
116
|
+
| Agent forgets context every session | Persistent memory across all sessions |
|
|
117
|
+
| Memory locked to one model | Cross-agent: save in ChatGPT, recall in Claude |
|
|
118
|
+
| No audit trail | Trust Quotient scoring on every memory |
|
|
119
|
+
| Complex integration | `pip install synapse-layer` + 3 lines of code |
|
|
120
|
+
| Plaintext stored on servers | AES-256-GCM encrypted at rest |
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Use Cases
|
|
125
|
+
|
|
126
|
+
- **Long-term assistant memory** — persist user preferences, facts, and prior decisions across sessions.
|
|
127
|
+
- **Cross-agent continuity** — save context in one agent and recall it in another.
|
|
128
|
+
- **Secure memory for MCP clients** — connect Claude Desktop, Cursor, and other MCP-compatible tools to a governed memory layer.
|
|
129
|
+
- **Operational memory for teams** — maintain structured context, trust scoring, and searchable recall for production agents.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Install
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
pip install synapse-layer
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Quick Start
|
|
140
|
+
|
|
141
|
+
### Local SDK — in-process memory
|
|
142
|
+
|
|
143
|
+
```python
|
|
144
|
+
import asyncio
|
|
145
|
+
from synapse_layer import SynapseClient
|
|
146
|
+
|
|
147
|
+
async def main():
|
|
148
|
+
memory = SynapseClient(agent_id="my-agent")
|
|
149
|
+
|
|
150
|
+
# Save
|
|
151
|
+
await memory.store("User prefers dark mode and concise answers")
|
|
152
|
+
|
|
153
|
+
# Recall
|
|
154
|
+
results = await memory.recall("user preferences")
|
|
155
|
+
for r in results:
|
|
156
|
+
print(f"[TQ={r.trust_quotient:.2f}] {r.content}")
|
|
157
|
+
|
|
158
|
+
asyncio.run(main())
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Cloud — Forge API (persistent, cross-agent)
|
|
162
|
+
|
|
163
|
+
```python
|
|
164
|
+
from synapse_memory.client import Synapse
|
|
165
|
+
|
|
166
|
+
client = Synapse(token="sk_connect_YOUR_TOKEN")
|
|
167
|
+
client.remember("User prefers dark mode and concise answers")
|
|
168
|
+
results = client.recall("user preferences")
|
|
169
|
+
for r in results:
|
|
170
|
+
print(r["content"])
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Get your token at [forge.synapselayer.org](https://forge.synapselayer.org) → Dashboard → Connect
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## 13 MCP Tools at a Glance
|
|
178
|
+
|
|
179
|
+
Synapse Layer currently exposes 13 MCP tools for persistent memory workflows:
|
|
180
|
+
|
|
181
|
+
- `recall`
|
|
182
|
+
- `save_to_synapse`
|
|
183
|
+
- `process_text`
|
|
184
|
+
- `search`
|
|
185
|
+
- `health_check`
|
|
186
|
+
- `initialize_context`
|
|
187
|
+
- `save_memory`
|
|
188
|
+
- `store_memory`
|
|
189
|
+
- `recall_memory`
|
|
190
|
+
- `list_memories`
|
|
191
|
+
- `memory_feedback`
|
|
192
|
+
- `neural_handover`
|
|
193
|
+
- `slo_report`
|
|
194
|
+
|
|
195
|
+
These tools cover memory capture, semantic recall, structured storage, feedback loops, agent handoff, and operational observability.
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## Deployment Modes
|
|
200
|
+
|
|
201
|
+
### Local SDK
|
|
202
|
+
Use the local SDK when you want in-process memory access inside your Python application.
|
|
203
|
+
|
|
204
|
+
Best for:
|
|
205
|
+
- local prototypes
|
|
206
|
+
- Python-native workflows
|
|
207
|
+
- fast integration into existing apps
|
|
208
|
+
|
|
209
|
+
### Cloud / Forge API
|
|
210
|
+
Use Forge when you need persistent, cross-session, and cross-agent memory with managed access tokens.
|
|
211
|
+
|
|
212
|
+
Best for:
|
|
213
|
+
- production assistants
|
|
214
|
+
- multi-agent systems
|
|
215
|
+
- MCP-based integrations
|
|
216
|
+
- shared memory across tools and sessions
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## MCP Integration (Claude Desktop / Cursor)
|
|
221
|
+
|
|
222
|
+
Add to `claude_desktop_config.json`:
|
|
223
|
+
|
|
224
|
+
```json
|
|
225
|
+
{
|
|
226
|
+
"mcpServers": {
|
|
227
|
+
"synapse-layer": {
|
|
228
|
+
"command": "npx",
|
|
229
|
+
"args": [
|
|
230
|
+
"mcp-remote",
|
|
231
|
+
"https://forge.synapselayer.org/mcp",
|
|
232
|
+
"--header",
|
|
233
|
+
"x-connect-token: sk_connect_YOUR_TOKEN"
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
Config file location:
|
|
241
|
+
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
242
|
+
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
243
|
+
- Linux: `~/.config/Claude/claude_desktop_config.json`
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## API — Header-First Auth
|
|
248
|
+
|
|
249
|
+
```bash
|
|
250
|
+
# Health check
|
|
251
|
+
curl -H "x-connect-token: sk_connect_YOUR_TOKEN" \
|
|
252
|
+
https://forge.synapselayer.org/api/connect/health
|
|
253
|
+
|
|
254
|
+
# Save memory
|
|
255
|
+
curl -X POST \
|
|
256
|
+
-H "x-connect-token: sk_connect_YOUR_TOKEN" \
|
|
257
|
+
-H "Content-Type: application/json" \
|
|
258
|
+
-d '{"content": "User is a Python developer"}' \
|
|
259
|
+
https://forge.synapselayer.org/api/v1/capture
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
## Security
|
|
265
|
+
|
|
266
|
+
| Feature | Implementation |
|
|
267
|
+
|---------|---------------|
|
|
268
|
+
| Encryption | AES-256-GCM at rest with per-operation random IV |
|
|
269
|
+
| Integrity | HMAC-SHA-256 on content |
|
|
270
|
+
| Auth | Header-first (`x-connect-token`) — tokens never in URLs or logs |
|
|
271
|
+
| Privacy | Content sanitization + tenant-scoped encrypted storage |
|
|
272
|
+
| Isolation | 1 user = 1 tenant = 1 private mind |
|
|
273
|
+
|
|
274
|
+
See [SECURITY.md](SECURITY.md) for vulnerability reporting.
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Related Projects
|
|
279
|
+
|
|
280
|
+
| Project | Description |
|
|
281
|
+
|---------|-------------|
|
|
282
|
+
| [synapse-sdk-python](https://github.com/SynapseLayer/synapse-sdk-python) | Python SDK — LangChain, CrewAI, and A2A protocol adapters |
|
|
283
|
+
| [synapse-layer-skill](https://github.com/SynapseLayer/synapse-layer-skill) | MCP skill configuration for Claude Desktop, Cursor, Windsurf |
|
|
284
|
+
| [synapse-layer-langgraph](https://github.com/SynapseLayer/synapse-layer-langgraph) | LangGraph checkpoint saver with encrypted state persistence |
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
## Governance
|
|
289
|
+
|
|
290
|
+
- All public claims follow the [Public Claims Matrix](docs/PUBLIC_CLAIMS_MATRIX.md).
|
|
291
|
+
- Architecture details that reveal benefits are public; mechanisms that enable them are private.
|
|
292
|
+
- Claim = Reality. If it's not implemented, it's not in the README.
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## License
|
|
297
|
+
|
|
298
|
+
Apache-2.0 © Synapse Layer
|