Skip to main content

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, and verify

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cwmem-0.2.0.tar.gz (56.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cwmem-0.2.0-py3-none-any.whl (28.4 MB view details)

Uploaded Python 3

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

Hashes for cwmem-0.2.0.tar.gz
Algorithm Hash digest
SHA256 48b47d96259cc6e05725c804a0c73d83bc2a175eeed3e24bb336868a4a525013
MD5 16898241ac159d2d6237d80559c19303
BLAKE2b-256 97a55a3871dc8ab06a2e7352a06ed374666d4463ef7afd7016d8bbd59b46c878

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwmem-0.2.0.tar.gz:

Publisher: publish.yml on ThomasRohde/cwmem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for cwmem-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a38f7c21a83141b4a54e241019b812e2d53644985b86ba0610810609ec505a69
MD5 5ababcd51261246bd0bdda1987c8dfaf
BLAKE2b-256 7fc3f66e60da5c2bcb73127ec167b3aa237e1ca554ca761bc06442b9d6e26d88

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwmem-0.2.0-py3-none-any.whl:

Publisher: publish.yml on ThomasRohde/cwmem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page