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.1.tar.gz (17.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.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: watchllm_klyd-0.1.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for watchllm_klyd-0.1.1.tar.gz
Algorithm Hash digest
SHA256 479fdf5287ed0cccd0ec9fde12b4835a2bf36a25a9703b552b64079d6c029afc
MD5 233c52c7534aac3a5d8cdb132aacc01a
BLAKE2b-256 ead8080934023c7f05c189daa46429a4c4487896e9e769636af13614bebfa8d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: watchllm_klyd-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for watchllm_klyd-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 585198977bdd8578ec06f7c9c0b0f6dbc2d447f844fb6c2722f91d156999f7bd
MD5 0cf094786c7964ce5690d64ab5e154f5
BLAKE2b-256 a03208640431c135411cb76279f391274ca647a0f4a6201669c3ccc0102aac52

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