Documentation
¶
Overview ¶
Package plans is the user-level store of saved plans — one markdown file per plan under ~/.memcode/plans, mirroring Claude Code's ~/.claude/plans. A plan is written the moment it's presented for approval and updated in place across revisions, so it outlives the session and can be re-opened later by asking the agent to recall it (the recall_plan tool). Plain markdown, no frontmatter: the file IS the plan, renderable as-is. User-level (not per-repo) so plans accumulate in one place.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Save ¶
Save writes the plan markdown to ~/.memcode/plans/<slug>.md, creating the dir if needed. An empty slug mints a fresh memorable one (adjective-gerund-noun, like Claude Code's plan names); pass a returned slug back to UPDATE the same file across revisions of one plan. Returns the slug used so the caller can reuse it.