Skip to content

Feature Request: Reading Plan File of Last Session #180

@unsafe9

Description

@unsafe9

Summary

Add the ability for claude-mem to capture plan file paths from ExitPlanMode hook and retrieve the previous session's plan in subsequent sessions.

Background

Claude Code plan mode creates temporary plan files (e.g., ~/.claude/plans/*.md) but doesn't persist references across sessions, making it difficult to continue previous planning work.

Testing with a PostToolUse hook confirmed that ExitPlanMode response contains the plan file path:

{
  "tool_response": {
    "filePath": "/Users/username/.claude/plans/federated-wandering-volcano.md",
    "plan": "# Plan content..."
  }
}

Proposed Feature

  1. Capture Plan References: On ExitPlanMode invocation, store filePath, plan content, session_id, and timestamp in claude-mem database
  2. Query Capability: Add get_last_plan tool or extend search filters to retrieve recent plan file paths
  3. Session Continuity: When user instructs "continue from previous plan", provide the plan file path to resume work

P.S. Love the plugin, using it every day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestFeature request to be converted to discussion

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions