Repo-native institutional memory CLI for Enterprise Architecture work.
Project description
cwmem
cwmem is a repo-native institutional memory CLI for Enterprise Architecture work.
It keeps operational state in SQLite, exports deterministic reviewable artifacts under memory/, and exposes a machine-first CLI contract so humans and coding agents can use the same tool safely.
Current feature set
- entry CRUD with automatic lifecycle events
- tags, formal events, and entity/edge graph workflows
- lexical, semantic, hybrid, and graph-expanded search
- deterministic
sync export/sync import - dry-run, idempotency keys, sidecar write locking,
plan,validate,apply, andverify
Local workflow
uv sync
uv run cwmem init
uv run cwmem add --title "Architecture decision" --type decision "Capture the rationale."
uv run cwmem search "architecture decision"
uv run cwmem sync export
uv run cwmem verify
Safety contract
Every command writes exactly one JSON envelope to stdout.
Reads stay parallel-safe. Mutating commands serialize through .cwmem/memory.sqlite.lock and support the safety flags below where relevant:
--dry-run--idempotency-key--wait-lock--plan-out
High-risk workflows follow:
uv run cwmem plan sync-export --plan-out .cwmem/plans/export-plan.json
uv run cwmem validate --plan .cwmem/plans/export-plan.json
uv run cwmem apply --plan .cwmem/plans/export-plan.json
uv run cwmem verify
Deterministic sync surface
Tracked collaboration artifacts live under:
memory/entries/memory/events/memory/graph/memory/taxonomy/memory/manifests/
Use uv run cwmem sync export --check in CI or before commit to confirm the checked-in export tree matches the runtime database.
Local quality gate
uv run ruff check src tests
uv run pyright src
uv run pytest --tb=short
uv build
Release automation
- CI workflow:
.github/workflows/ci.yml - Publish workflow:
.github/workflows/publish.yml - Contributor guide:
CONTRIBUTING.md - Agent expectations:
AGENTS.md
The publish workflow is designed for GitHub OIDC + PyPI Trusted Publisher with the pypi environment and publishes automatically on pushes to master.
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 cwmem-0.2.0.tar.gz.
File metadata
- Download URL: cwmem-0.2.0.tar.gz
- Upload date:
- Size: 56.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48b47d96259cc6e05725c804a0c73d83bc2a175eeed3e24bb336868a4a525013
|
|
| MD5 |
16898241ac159d2d6237d80559c19303
|
|
| BLAKE2b-256 |
97a55a3871dc8ab06a2e7352a06ed374666d4463ef7afd7016d8bbd59b46c878
|
Provenance
The following attestation bundles were made for cwmem-0.2.0.tar.gz:
Publisher:
publish.yml on ThomasRohde/cwmem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cwmem-0.2.0.tar.gz -
Subject digest:
48b47d96259cc6e05725c804a0c73d83bc2a175eeed3e24bb336868a4a525013 - Sigstore transparency entry: 1101750768
- Sigstore integration time:
-
Permalink:
ThomasRohde/cwmem@c582f3cff363bb596d8d554fbf4f5fd4e713b687 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/ThomasRohde
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c582f3cff363bb596d8d554fbf4f5fd4e713b687 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cwmem-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cwmem-0.2.0-py3-none-any.whl
- Upload date:
- Size: 28.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a38f7c21a83141b4a54e241019b812e2d53644985b86ba0610810609ec505a69
|
|
| MD5 |
5ababcd51261246bd0bdda1987c8dfaf
|
|
| BLAKE2b-256 |
7fc3f66e60da5c2bcb73127ec167b3aa237e1ca554ca761bc06442b9d6e26d88
|
Provenance
The following attestation bundles were made for cwmem-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on ThomasRohde/cwmem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cwmem-0.2.0-py3-none-any.whl -
Subject digest:
a38f7c21a83141b4a54e241019b812e2d53644985b86ba0610810609ec505a69 - Sigstore transparency entry: 1101750795
- Sigstore integration time:
-
Permalink:
ThomasRohde/cwmem@c582f3cff363bb596d8d554fbf4f5fd4e713b687 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/ThomasRohde
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c582f3cff363bb596d8d554fbf4f5fd4e713b687 -
Trigger Event:
push
-
Statement type: