{"modulePath":"github.com/memcode-ai/memcode","version":"v0.56.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package plans\n\nPackage 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.\n\n## Functions\n\n```go\nfunc Dir() (string, error)\n```\nDir is the user-level plans directory (~/.memcode/plans). Created on demand by Save.\n\n```go\nfunc Read(slug string) (string, error)\n```\nRead returns the markdown of one saved plan.\n\n```go\nfunc Save(slug, plan string) (string, error)\n```\nSave writes the plan markdown to ~/.memcode/plans/\\\u003cslug\u003e.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.\n\n## Types\n\n```go\ntype Ref struct {\n\tSlug  string\n\tTitle string\n\tSaved time.Time\n\tPath  string\n}\n```\nRef is one saved plan's metadata, for listing.\n\n```go\nfunc List() ([]Ref, error)\n```\nList returns saved plans, newest first (by file modtime).\n\n","path":"github.com/memcode-ai/memcode/internal/plans","name":"plans","synopsis":"Package plans is the user-level store of saved plans — one markdown file per plan under ~/.memcode/plans, mirroring Claude Code's ~/.claude/plans.","isRedistributable":true}
