Skip to main content

deepagents-graph-memory

PyPI Python 3.11–3.14 License: MIT

Give your agent a record of what it tried and what worked.

For developers building LangChain Deep Agents that handle long-running tasks and need to remember a lot of context. The graph connects attempts, evidence, and results so agents can find earlier work before deciding what to do next.

Works alongside the virtual filesystem (VFS): files hold code, logs, and tool dumps; the graph links findings to their evidence. For example: failing test → suspected cause → code change → test result.

Virtual Graph System: connected reasoning traces

Inspired by Niels de Jong's Neo4j article, From recall to reasoning: How context graphs upgrade an agent’s brain. Built by Pranav Bedi and Taha Khan, using LadybugDB. Experimental.

Install

pip install --upgrade deepagents-graph-memory

Requires Python 3.11–3.14 on Linux or Apple Silicon Mac; see supported platforms. The graph database, OpenSSL, and search extension come bundled. No database server or separate search setup.

Quick start

Set your model provider's API key, then add the graph tools and guidance to your agent:

from deepagents import create_deep_agent
from deepagents_graph_memory import (
    GraphMemoryBackend,
    graph_context_middleware,
    graph_memory_tools,
)

graph = GraphMemoryBackend.create()
agent = create_deep_agent(
    model="google_genai:gemini-3.5-flash",
    tools=graph_memory_tools(graph),
    middleware=[graph_context_middleware()],
)

result = agent.invoke({"messages": [{"role": "user", "content": "Investigate the parser failure and record what you find."}]})
print(result["messages"][-1].content)
graph.close()

Storage options

GraphMemoryBackend.create() keeps the graph temporarily while the backend is open. Use GraphMemoryBackend.create(path="project.lbdb") to keep it on a persistent disk across runs.

The full guide covers deployment, shared agents, graph-only mode, and debugging. Agents choose what to record; the graph doesn't automatically verify their claims.

Report an issue · MIT license

Metadata

Release files for deepagents-graph-memory 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for deepagents-graph-memory 0.1.8
File
deepagents_graph_memory-0.1.8-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
deepagents_graph_memory-0.1.8-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details
deepagents_graph_memory-0.1.8-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details
deepagents_graph_memory-0.1.8-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
deepagents_graph_memory-0.1.8-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details
deepagents_graph_memory-0.1.8-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details
deepagents_graph_memory-0.1.8-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
deepagents_graph_memory-0.1.8-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details
deepagents_graph_memory-0.1.8-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details
deepagents_graph_memory-0.1.8-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
deepagents_graph_memory-0.1.8-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details
deepagents_graph_memory-0.1.8-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details

Total release size: 127.4 MB

Release files / deepagents_graph_memory-0.1.8-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL deepagents_graph_memory-0.1.8-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 12.3 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
63518ebfd7fa9da4a87db0f6044e082d152581b7f1127a52f61e77162d6a7b68
BLAKE2b-256 checksum
How to use checksums
4d6273d2d12f45ca6b1bc97b2fa1671804a0bc70c06eb17754b10ea2677fa9de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / deepagents_graph_memory-0.1.8-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL deepagents_graph_memory-0.1.8-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 11.6 MB
Tags CPython 3.14 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
6c01f28d70ddd42957f1178af460762c6e3a4b657ebe5938a049ef22d6c99152
BLAKE2b-256 checksum
How to use checksums
cc11dd81720c84cb97fa37c8fa2f121abe418a72811b0ea0bf6a1ad40c4cc460
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / deepagents_graph_memory-0.1.8-cp314-cp314-macosx_15_0_arm64.whl

Download URL deepagents_graph_memory-0.1.8-cp314-cp314-macosx_15_0_arm64.whl
Size 7.9 MB
Tags CPython 3.14 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
55acbb7f62ba65b150f05846cc6129cd08c59fbb57c45e692fb08b9e4b3959ab
BLAKE2b-256 checksum
How to use checksums
aa9e24c67ec954ddc836fc2630f1fe57b1e01cb4b5a22aa16c24163d5ba9257b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / deepagents_graph_memory-0.1.8-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL deepagents_graph_memory-0.1.8-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 12.3 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9245b1dfa8fc03f5dadb3b054386dac9e717fafb93cef89dbc16b0c0475ee2ff
BLAKE2b-256 checksum
How to use checksums
edfde8299d201218f69a80898b48544c0323a0abb66402c9533e3894a602382f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / deepagents_graph_memory-0.1.8-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL deepagents_graph_memory-0.1.8-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 11.6 MB
Tags CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
ac7ad4f781843ddecdb0cb629e235e577f15b0ce979f2f709d55bfeb6621bff1
BLAKE2b-256 checksum
How to use checksums
55983b5d81216892c0651709b019e4be5df9f50e69186a279105ca84c5a4c2c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / deepagents_graph_memory-0.1.8-cp313-cp313-macosx_15_0_arm64.whl

Download URL deepagents_graph_memory-0.1.8-cp313-cp313-macosx_15_0_arm64.whl
Size 7.9 MB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
837777fa60727acbc37b396d5ae1503f0830b8032d16563926391e2597b9c98e
BLAKE2b-256 checksum
How to use checksums
6c44a4e43fb93a9c9bb7a94194d5a0b813aba855cdd26e52f8afc17187c66416
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / deepagents_graph_memory-0.1.8-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL deepagents_graph_memory-0.1.8-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 12.3 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d715873ec14e02a64b0b4b32d6511a4364aa3e9ec7b2c26dd00fb578b05ef042
BLAKE2b-256 checksum
How to use checksums
db2d33a96227a81d72f995232a7036b5f33329554982c6d92e5adce842e6b58f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / deepagents_graph_memory-0.1.8-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL deepagents_graph_memory-0.1.8-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 11.6 MB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
166de19a35f870736b3e9b298338850490b6b51648179fc670f908b3a472a8de
BLAKE2b-256 checksum
How to use checksums
297a781807253e7fa36743fce460704fa4272dcbac4d1ca19918135052ee0cf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / deepagents_graph_memory-0.1.8-cp312-cp312-macosx_15_0_arm64.whl

Download URL deepagents_graph_memory-0.1.8-cp312-cp312-macosx_15_0_arm64.whl
Size 7.9 MB
Tags CPython 3.12 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
6d294cbc107793ae7d57044bc0be2419b2d39d651d9893360e9e342bcb7599f6
BLAKE2b-256 checksum
How to use checksums
bd8426341ecfbcaf2df392496b44d80be28161428448f5a4de8c1fe60caf1117
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / deepagents_graph_memory-0.1.8-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL deepagents_graph_memory-0.1.8-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 12.3 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
704bfe3f712b335e1eefc934419d61b66d1adc15e6daaebd741ed0ab50d477bd
BLAKE2b-256 checksum
How to use checksums
e4265bb5e4a3f35df0b845f179dd1a76dfa707a2658c65a70e6caf859b26e67d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / deepagents_graph_memory-0.1.8-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL deepagents_graph_memory-0.1.8-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 11.6 MB
Tags CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
508434d51f0c4b95e8b30ac30c7044c222f3e32ec2666846a375672ecbf16deb
BLAKE2b-256 checksum
How to use checksums
d3c36d7f49999c19dd08207f995ef1376c14c4c2fa4b512f743989e459fc4a52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / deepagents_graph_memory-0.1.8-cp311-cp311-macosx_15_0_arm64.whl

Download URL deepagents_graph_memory-0.1.8-cp311-cp311-macosx_15_0_arm64.whl
Size 7.9 MB
Tags CPython 3.11 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
5a56c4cfff1e63b0d5e6fdd82ecf4dececff5793e61af905760a32fc98c9c1e8
BLAKE2b-256 checksum
How to use checksums
8f29bf0644d1610037ec828ea578fb18b897577dc7f5db08230c3e93cc9d3f93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

12 release files

This release

0.1.8 This release

12 release files

0.1.7

20 release files

0.1.6

20 release files

0.1.5

20 release files

0.1.4

20 release files

0.1.3

20 release files

0.1.2

20 release files

0.1.1

20 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page