memo

package
v0.0.1-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package memo is the file-based memory surface (T-044): MEMORY.md, notes.md, and tasks/<id>/progress.md. Load assembles them into one block for system- prompt injection (resume inject); AppendMemory and WriteProgress persist updates. These are ordinary project files — nothing here touches the network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Files

type Files struct {
	Root string
}

Files addresses the memory files relative to a project Root.

func (Files) AppendMemory

func (f Files) AppendMemory(line string) error

AppendMemory appends a line to MEMORY.md, creating it (and tasks/ parents are not needed here) if absent.

func (Files) Load

func (f Files) Load() (string, error)

Load reads MEMORY.md, notes.md, and tasks/*/progress.md (in task-id order), concatenating them with section headers for resume injection. Missing files are skipped silently. Returns "" (no error) when nothing exists.

func (Files) WriteProgress

func (f Files) WriteProgress(task, content string) error

WriteProgress writes (overwrites) tasks/<task>/progress.md.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL