Skip to main content

Architectural memory system for autonomous coding agents.

Project description

klyd

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░  ░░░░  ░░░      ░░░        ░░░      ░░░  ░░░░  ░░  ░░░░░░░░  ░░░░░░░░  ░░░░  ░
▒  ▒  ▒  ▒▒  ▒▒▒▒  ▒▒▒▒▒  ▒▒▒▒▒  ▒▒▒▒  ▒▒  ▒▒▒▒  ▒▒  ▒▒▒▒▒▒▒▒  ▒▒▒▒▒▒▒▒   ▒▒   ▒
▓        ▓▓  ▓▓▓▓  ▓▓▓▓▓  ▓▓▓▓▓  ▓▓▓▓▓▓▓▓        ▓▓  ▓▓▓▓▓▓▓▓  ▓▓▓▓▓▓▓▓        ▓
█   ██   ██        █████  █████  ████  ██  ████  ██  ████████  ████████  █  █  █
█  ████  ██  ████  █████  ██████      ███  ████  ██        ██        ██  ████  █
████████████████████████████████████████████████████████████████████████████████

Persistent architectural memory for autonomous coding agents.

Current status

Early design & specification phase. Subsystem boundary defined; codebase scaffolded.

Overview

Large Language Models (LLMs) tend to lose architectural context and make regression decisions over long coding sessions. klyd solves this by acting as a persistent architectural memory layer. It extracts architectural decisions from git history/diffs, stores them locally, and retrieves relevant constraints at write time to keep autonomous agents aligned with project guidelines.

klyd remembers. The kernel enforces.

Core Features

  • Architectural Decision Extraction: Auto-extracts design constraints and guidelines from repository changes and commit history.
  • Local Memory Store: Uses a lightweight local SQLite database to persist constraints offline.
  • Context Retrieval: Queries relevant architectural constraints based on the files currently being edited.
  • Agent Prompt Injection: Injects retrieved guidelines into agent execution loops to guide code generation.

Relationship to Kernel

  • klyd (Memory): Tracks and provides the historical context and architectural rules.
  • Kernel (Enforcement): Deteministically evaluates code changes at the write-path to ensure those rules are not violated.

Non-goals

  • Write-path interception: klyd does not block files or handle save hooks; that is the sole responsibility of the Kernel.
  • Code Generation: klyd does not generate or rewrite source code.

Installation

pip install -e .

Usage

klyd --help
python -m klyd --help

Links

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

watchllm_klyd-0.1.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

watchllm_klyd-0.1.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file watchllm_klyd-0.1.0.tar.gz.

File metadata

  • Download URL: watchllm_klyd-0.1.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for watchllm_klyd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ad44a1fa3f864107295f1d097c255cc6711684c6b15a94f4bce29e713ac9f81d
MD5 9a0d34f74901d544d22256f399b33be8
BLAKE2b-256 325dd4a14a05323a8515e795f395cad3969b567e9859821c55fd0424ba7d9b79

See more details on using hashes here.

File details

Details for the file watchllm_klyd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: watchllm_klyd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for watchllm_klyd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a37dee50ca8aec3d612e587194a86ad76394ee8c86ff5cd1b53024c9be122fb6
MD5 b36500d3ffecbf357275699414adbadc
BLAKE2b-256 41279d46577eaae4858211a91e6ab232294cebade6f3da612cc1fd051afaf8b7

See more details on using hashes here.

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