Local-first context memory engine for AI-agent workflows.
Project description
A local memory layer for AI coding agents.
SessionWeave gives Codex, Claude Code, Cursor, Gemini, GitHub Copilot, and ChatGPT persistent project memory that survives across sessions.
Instead of repeating the same decisions, constraints, rejected ideas, and implementation context every time, you record durable memory once. SessionWeave stores it locally in .sessionweave/, builds a
lightweight memory graph, and routes only the relevant context back to your coding agent.
AI coding agents forget. SessionWeave gives them repo-local memory.
sessionweave install --platform codex
sessionweave start-session --id demo
sessionweave route --task "continue the auth refactor"
.sessionweave/
├── graph.db local memory graph
├── journal/ append-only session journals
├── pages/context-packet.md compact routed context for the current task
├── commits/ Git-like memory commits
└── instructions/ adapter instructions for coding agents
Print a copy-pasteable first-run guide:
sessionweave quickstart
sessionweave quickstart --output SESSIONWEAVE_QUICKSTART.md
What SessionWeave Solves
AI coding agents are powerful, but they lose project continuity.
They forget:
- why a decision was made
- what ideas were rejected
- which files matter for a task
- what happened in the previous session
- what context should not be revived
SessionWeave fixes that with explicit, local, task-routed memory.
How It Works
SessionWeave runs as a local CLI in your repo.
- Start a session.
- Record important decisions and constraints.
- Route compact context for the current task.
- Close the session to create a memory commit.
- Your next agent session starts from durable project memory, not raw chat history.
sessionweave start-session --id feature-x
sessionweave record --id feature-x --role user --text "<sessionweave-memory block>"
sessionweave route --task "continue feature-x implementation"
sessionweave close-session --id feature-x --summary "Finished routing layer"
Strict Memory, Not Guesswork
SessionWeave does not infer durable memory from random prose.
Durable memory is explicit:
{
"nodes": [
{
"type": "decision",
"title": "Use local SQLite storage",
"summary": "Keep project memory local-first and dependency-light.",
"temperature": "hot",
"importance": 5
},
{
"type": "anti_memory",
"title": "Do not dump full chat history",
"summary": "Route compact task context instead of loading raw sessions.",
"temperature": "pinned",
"importance": 5
}
],
"edges": []
}
This keeps memory auditable and prevents the agent from inventing project history.
Platform Support
| Platform | Generated files |
|---|---|
| Codex | AGENTS.md, .sessionweave/instructions/codex.md |
| Claude Code | CLAUDE.md, .sessionweave/instructions/claude-skill/SKILL.md |
| Cursor | .cursor/rules/sessionweave.mdc |
| Gemini CLI | GEMINI.md, .sessionweave/instructions/gemini.md |
| GitHub Copilot Chat | .github/copilot-instructions.md |
| ChatGPT | .sessionweave/instructions/chatgpt.md |
Install all adapters:
sessionweave install
Install only Codex:
sessionweave install --platform codex
Real-World Smoke Test
SessionWeave was tested on a real django/django checkout.
Initial after install:
nodes=0, edges=0, sessions=0, commits=0
After recording Django URL resolver memory:
nodes=4, edges=7, session=open
After linking real code references:
nodes=9, edges=11, session=open
After route + close-session:
nodes=9, edges=11, sessions=closed=1, commits=1, uncommitted=no
The routed context selected relevant Django URL resolver memory and kept anti-memory separate instead of loading the whole repository.
graph TD
S["Session: django_codex_real"]
P["Django real-world codebase"]
D["Use Codex adapter in Django checkout"]
T["Investigate Django URL resolver workflow"]
A["Do not dump the whole Django repository"]
F1["file: django/urls/resolvers.py"]
F2["file: tests/urlpatterns_reverse/tests.py"]
F3["file: docs/topics/http/urls.txt"]
C["commit: 017d7f6"]
S --> P
S --> D
S --> T
S --> A
P --> D
P --> T
T --> A
T --> F1
T --> F2
T --> F3
T --> C
Diagnostics
SessionWeave ships with release and local health checks:
sessionweave doctor
sessionweave lint
sessionweave dogfood
sessionweave release-check
Install
After public release:
uv tool install sessionweave
sessionweave install
or:
pipx install sessionweave
sessionweave install
or:
npm install -g sessionweave
sessionweave install
From source:
git clone https://github.com/adibisoyi/SessionWeave
cd SessionWeave
python -m pip install -e .
sessionweave install
Privacy
SessionWeave is local-first.
- Memory is stored in
.sessionweave/. - No hosted service is required.
- No telemetry.
- No vector database required.
- No model account modification.
- Adapter installers write local instruction files only.
Current Limits
- SessionWeave is local-first alpha software.
- It does not run an always-on daemon.
- It does not provide hosted sync, team permissions, or enterprise governance.
- Adapter installers are local instruction generators, not official marketplace integrations.
- Durable memory must be explicit structured memory.
Current Status
SessionWeave is public-alpha software.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sessionweave-0.1.0.tar.gz.
File metadata
- Download URL: sessionweave-0.1.0.tar.gz
- Upload date:
- Size: 106.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f407b41f90fd6428b9dd4cfb5c8deaf10f6bd64b01404938a9d939767a65479c
|
|
| MD5 |
35f2f2379b89637234dcbc16942deb0a
|
|
| BLAKE2b-256 |
68e4e6786e6b30818d85c1806f336c98a9391ce3baa3b1e6f9974aee9864f865
|
Provenance
The following attestation bundles were made for sessionweave-0.1.0.tar.gz:
Publisher:
release.yml on adibisoyi/SessionWeave
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sessionweave-0.1.0.tar.gz -
Subject digest:
f407b41f90fd6428b9dd4cfb5c8deaf10f6bd64b01404938a9d939767a65479c - Sigstore transparency entry: 1390951259
- Sigstore integration time:
-
Permalink:
adibisoyi/SessionWeave@f1bfcf5042d1388e9f84280223fb97d78f3c15b2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/adibisoyi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f1bfcf5042d1388e9f84280223fb97d78f3c15b2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sessionweave-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sessionweave-0.1.0-py3-none-any.whl
- Upload date:
- Size: 88.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3841992491d1a55659bf11f30f41f4c8c2ea0862d985ae12d61d784d16d46a43
|
|
| MD5 |
bd9578439534f50da8f4c99c1330f6c2
|
|
| BLAKE2b-256 |
e21297339701888999ef4d62f23aa37c4fd00074e8dd893b245f6348d7a36f9a
|
Provenance
The following attestation bundles were made for sessionweave-0.1.0-py3-none-any.whl:
Publisher:
release.yml on adibisoyi/SessionWeave
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sessionweave-0.1.0-py3-none-any.whl -
Subject digest:
3841992491d1a55659bf11f30f41f4c8c2ea0862d985ae12d61d784d16d46a43 - Sigstore transparency entry: 1390951338
- Sigstore integration time:
-
Permalink:
adibisoyi/SessionWeave@f1bfcf5042d1388e9f84280223fb97d78f3c15b2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/adibisoyi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f1bfcf5042d1388e9f84280223fb97d78f3c15b2 -
Trigger Event:
push
-
Statement type: