Skip to main content

🧠 Urdyn

Models are replaceable. Memory should remain portable.

Urdyn is a local-first, private-by-default memory engine for projects, people, and AI agents. It keeps durable decisions, evidence, attempts, lessons, and project context in .urdyn/, independently of any model or provider.

⚡ Quick start

Install Urdyn from PyPI:

pip install urdyn-memory

Or install it from a local source checkout:

cd /path/to/urdyn-memory
python -m pip install .

Then initialize Urdyn inside a project:

cd my-project
urdyn init dev
urdyn status

The base engine requires Python 3.12+, declares zero mandatory runtime dependencies, and needs no model or API key.

Why Urdyn?

Provider history belongs to a provider and a session. When the session ends, the model changes, or another tool takes over, the project's operational knowledge should not disappear with it.

The model is replaceable. The memory is persistent.

Urdyn is not a conversation archive. It stores explicit, structured records with provenance and current-state rules, then retrieves the material relevant to the task at hand. A new AI session can reconstruct useful project context without depending on a previous provider transcript.

🧠 What Urdyn remembers

Urdyn keeps different kinds of information separate instead of flattening everything into chat text:

Concept What it represents
Memory Notes, decisions, root causes, pending work, questions, invariants, environment facts, and lessons
Evidence User statements or confirmations, command/test/tool output, observed errors, file references, and document observations
Attempt What was tried, how it was tried, and whether it succeeded, failed, or was partial
Skill An ordered procedure deliberately promoted from a Lesson; never created automatically
Source A project file identity with an append-only history of observations
Current state The current projection of Memory after superseded records are excluded; full history remains available

This preserves decisions, failures, provenance, and lessons as distinct records rather than pretending they all carry the same authority.

🔒 Local-first and private by default

  • Canonical data lives inside .urdyn/ in your workspace.
  • No account, cloud service, or API key is required for the base engine.
  • Base operation does not automatically upload data or download a model.
  • urdyn init adds .urdyn/ to the project's .gitignore automatically.
  • Seeding a document stores the observed document content locally in .urdyn/; it is not sent elsewhere.

The optional semantic extra is the explicit exception to zero downloads: its setup fetches a pinned embedding model from Hugging Face.

🤖 Works with AI tools

Any AI tool or coding agent with shell access can use Urdyn through its public CLI. Tools without shell access can consume context that you export and provide to them manually.

AI / tool
   │
   ▼
Urdyn public CLI / Python API
   │
   ▼
validation · provenance · memory rules
   │
   ▼
.urdyn/

This is a generic integration boundary, not an automatic provider integration. Urdyn 0.2.0 does not ship provider-specific adapters, MCP support, autonomous curation, or automatic invocation. AI tools should use the public CLI/API and never edit .urdyn/ directly.

Existing project files

Explicit file seeding works in every profile. In a dev workspace, urdyn seed with no paths lists conservative discovery candidates and records nothing. Name regular UTF-8 text files explicitly to observe them:

urdyn seed                           # list candidates; record nothing
urdyn seed README.md pyproject.toml  # record specific files

Each seeded file becomes a Source with a document-observation Evidence record. Urdyn keeps the observed text, digest, size, and timestamp, but does not treat the document's claims as verified knowledge.

👀 Project watcher

The dev profile can keep project-document observations current in the background:

urdyn watch status
urdyn watch start
urdyn watch stop

urdyn init dev enables and starts the watcher. It watches only already tracked Sources plus the same conservative discovery allowlist used by urdyn seed; it never scans the whole project. Changes create Source/Observation/Evidence records, never automatic Memory or other canonical knowledge, and remain local. urdyn watch stop stops and persistently disables it.

The watcher is validated and supported on Linux in this release. Known 0.2.0 limits:

  • Deletions and renames are not tracked. Existing history is retained, and a renamed file begins a new Source history.
  • It is not a boot service. After a reboot, the next normal urdyn command restarts an enabled watcher and rechecks already tracked files.
  • A file first created while the watcher is down is discovered only after it changes again, not retroactively at restart.

Evidence ≠ Knowledge

Evidence records what was observed. Memory records what the caller asks Urdyn to treat as knowledge, with an explicit epistemic state.

Recording Evidence never creates a Memory, Lesson, or Skill automatically. A seeded README is faithful evidence of what that file said at that moment; it is not proof that the README is correct. A new Memory can be user_asserted, inferred, or verified, and verified requires explicitly designated supporting Evidence of a qualifying kind. Urdyn enforces that structural gate but does not claim to understand whether the evidence truly proves the conclusion.

🧩 Profiles

urdyn init [general|dev|lab]
Profile Implemented behavior
general Core engine; explicit seed works, but no-path discovery and the watcher are unavailable
dev Adds no-path project-file discovery and the Linux-validated background watcher
lab Reserved canonical profile identifier; currently behaves like general

All profiles share the same canonical store, retrieval, preflight, context, and export behavior. Today, the profile changes only no-path seed discovery and watcher availability.

📦 Python API

The distribution is urdyn-memory, the import package is urdyn, and the public workspace class is Urdyn:

from urdyn import Urdyn

ud = Urdyn.discover()
ud.remember("SQLite is the canonical project store.", kind="decision")

for memory in ud.recall("SQLite is the canonical project store"):
    print(memory.content)

The Python API and the urdyn CLI share the core validation and persistence rules. This README shows only the essential entry points; use the public types exported from urdyn for library integration.

Context compilation and export

Before starting work, ask Urdyn for relevant prior experience:

urdyn preflight "wrap a multi-step migration in one transaction"
urdyn context "wrap a multi-step migration in one transaction"
urdyn export "wrap a multi-step migration in one transaction"

context compiles a task-aware, character-budgeted working context. export renders the same kind of context as portable generic text suitable for redirection or piping:

urdyn export "<task description>" > context.txt

This export is task-scoped context, not a full backup or memory-archive export.

Seeded project documents can contribute task-relevant Project Evidence to compiled context through lexical retrieval and, when enabled, semantic retrieval. For large documents, Urdyn retrieves the portions relevant to the task instead of requiring the entire document to fit the context budget. The retrieved text remains document Evidence with its Source provenance: Source != Evidence != Durable Memory, and retrieving Evidence never promotes it to Memory.

Semantic retrieval

The base engine works offline with lexical/full-text retrieval. Semantic retrieval is optional:

pip install "urdyn-memory[semantic]"
urdyn semantic setup

Setup downloads a pinned embedding model and builds a derived local index next to the canonical store. The index is rebuildable; when semantic retrieval is unavailable, canonical data remains intact and Urdyn falls back to lexical retrieval.

🛠 Current scope and limitations

Urdyn 0.2.0 is an alpha release. It does not currently include:

  • cloud sync;
  • a GUI or desktop application;
  • native provider adapters or MCP integration;
  • autonomous AI-driven memory curation;
  • automatic conversation ingestion;
  • full memory-archive import/export.

The CLI/API boundary is deliberate: Urdyn provides the memory engine and its rules, while a person or external tool decides what to record and when to consult it.

Development

uv sync --extra semantic
uv run pytest
HF_HUB_OFFLINE=1 uv run pytest -m real_model
uv build

The full test suite exercises the optional semantic backend, so development setup installs the semantic extra. The base package still has no mandatory runtime dependencies.

Development requires Python 3.12+ and uv.

License

Apache License 2.0. See LICENSE.

🌍 Languages

This document is in English. See README.it.md for the Italian version.

Metadata

Release files for urdyn-memory 0.2.0

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

Source distribution (sdist)

Source distribution for urdyn-memory 0.2.0
File Size Uploaded Provenance Actions
urdyn_memory-0.2.0.tar.gz 151.9 kB With provenance Details for urdyn_memory-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for urdyn-memory 0.2.0
File Interpreter ABI Platform Actions
urdyn_memory-0.2.0-py3-none-any.whl Python 3 none any Details for urdyn_memory-0.2.0-py3-none-any.whl

Total release size: 319.6 kB

Release files / urdyn_memory-0.2.0.tar.gz

Download URL urdyn_memory-0.2.0.tar.gz
Size 151.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1e113ce9bf96336803f99588a52e8561e594c59aa038ce357a74152e3a2357b6
BLAKE2b-256 checksum
How to use checksums
515d85600cdaa25623196ddaebd9a910071360cb91ea796697f935a295663d30
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 Aug 23, 2026.

Transparency log

Release files / urdyn_memory-0.2.0-py3-none-any.whl

Download URL urdyn_memory-0.2.0-py3-none-any.whl
Size 167.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
adb40f9de885f32c75a626a55b7c35a19e65d124e82ae53061a6cc2f9d29beb9
BLAKE2b-256 checksum
How to use checksums
69ab4e8507fe1de14a72577da444b192b75f914206ac427a71810b18c82bd870
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 Aug 23, 2026.

Transparency log

Security for urdyn-memory 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for urdyn_memory-0.2.0.tar.gz

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 Aug 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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