Root — MEMORY.md

Module: root-memory-md Cohesion: 0.80 Members: 0

Root — MEMORY.md

This document describes the MEMORY.md file, which serves as a persistent knowledge base and operational log for the @phuetz/code-buddy CLI agent. While not a traditional code module with executable functions, MEMORY.md is a critical component for the agent's understanding of the project context and its ongoing operations.

MEMORY.md Overview

MEMORY.md is a markdown file designed to store essential project information and a chronological log of the code-buddy agent's interactions and observations. It acts as a form of long-term memory, providing the agent with a consistent and up-to-date understanding of the project's technical landscape and its own operational history.

Purpose

The primary purpose of MEMORY.md is to:

  1. Establish Project Context: Provide fundamental details about the project, its identity, and core technical configurations.
  2. Guide Agent Behavior: Inform the AI agent about critical development practices (e.g., test runner, module system) to ensure its suggestions and actions are aligned with the project's setup.
  3. Maintain Operational History: Log significant events, responses, and tool usages by the agent, allowing for introspection and continuity across sessions.
  4. Serve as a Reference: Offer a human-readable summary of key project facts for developers.

Structure and Content

The MEMORY.md file is structured into distinct sections:

1. Project Identity

This section provides high-level information about the code-buddy project itself.

2. Key Facts

This section details crucial technical aspects of the project's development environment. These facts are vital for the AI agent to generate accurate and relevant code, tests, or refactorings.

3. CLAUDE.md Status

This section acts as a meta-instruction, indicating that CLAUDE.md is the primary and authoritative source of project guidance. Any information in MEMORY.md should either be derived from or consistent with CLAUDE.md, and duplication should be avoided.

4. Extracted Facts (Operational Log)

This is a dynamic section where the code-buddy agent logs its interactions and observations. Each entry is timestamped (e.g., Facts extracted 2026-03-07 (pre-compaction flush)) and contains a brief description of the agent's activity or a summary of information it processed.

Common log entry types include:

The "pre-compaction flush" notation implies that these entries are raw, unsummarized facts, likely awaiting a future "compaction" or summarization process to reduce redundancy and distill key insights into a more concise form.

Interaction and Maintenance

Developers should be aware of the following when interacting with or modifying the project:

No Code Components

As MEMORY.md is a documentation and log file, it does not contain executable code, functions, or classes. Therefore, there are no internal calls, outgoing calls, incoming calls, or execution flows associated with this file in a programmatic sense. Its role is purely informational and contextual within the code-buddy system.