Browse Source

docs: Update README and AGENTS for v3.1 schema changes

- Add v1.7.0 changelog entry for schema v3.1 features
- Update command descriptions with session ID and PR awareness
- Add MEMORY.md to persistence table and session workflow
- Update --resume comparison table with new bridging features
- Fix skill count to 42 in AGENTS.md and PLAN.md
- Update session cache description to v3.1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0xDarkMatter 2 months ago
parent
commit
0bc656b2ab
3 changed files with 24 additions and 11 deletions
  1. 2 2
      AGENTS.md
  2. 21 8
      README.md
  3. 1 1
      docs/PLAN.md

+ 2 - 2
AGENTS.md

@@ -5,7 +5,7 @@
 This is **claude-mods** - a collection of custom extensions for Claude Code:
 - **22 expert agents** for specialized domains (React, Python, Go, Rust, AWS, etc.)
 - **3 commands** for session management (/sync, /save) and experimental features (/canvas)
-- **41 skills** for CLI tools, patterns, workflows, and development tasks
+- **42 skills** for CLI tools, patterns, workflows, and development tasks
 - **Custom output styles** for response personality (e.g., Vesper)
 
 ## Installation
@@ -65,7 +65,7 @@ On "INIT:" message at session start:
 
 **Tasks API:** Use `TaskCreate`, `TaskList`, `TaskUpdate`, `TaskGet` for task management. Tasks are session-scoped (don't persist). Use `/save` to capture and `/sync` to restore.
 
-**Session Cache:** v3.0 schema stores full task objects (subject, description, activeForm, status, blockedBy). Legacy v2.0 files auto-migrate on `/sync`.
+**Session Cache:** v3.1 schema stores full task objects, session ID (for `--resume`), PR linkage (for `--from-pr`), and writes a summary to native MEMORY.md. Backwards compatible with v3.0.
 
 ## Performance
 

+ 21 - 8
README.md

@@ -22,8 +22,16 @@ From Python async patterns to Rust ownership models, from AWS Fargate deployment
 
 ## Recent Updates
 
+**v1.7.0** (February 2026)
+- 🔄 **Schema v3.1** - `/save` and `/sync` upgraded for Claude Code 2.1.x and Opus 4.6
+  - Session ID tracking with `--resume` suggestions (bridges task state + conversation history)
+  - PR-linked sessions via `gh pr view` with `--from-pr` suggestions
+  - Native memory integration - `/save` writes to MEMORY.md (auto-loaded safety net)
+  - Dynamic plan path via `plansDirectory` setting (Claude Code v2.1.9+)
+  - Dropped legacy v2.0 migration code
+
 **v1.6.0** (February 2026)
-- 🚀 **NEW: Tech Debt Scanner** - Automated detection using parallel subagents (1,520 lines)
+- 🚀 **Tech Debt Scanner** - Automated detection using parallel subagents (1,520 lines)
   - Always-parallel architecture for fast analysis (2-15s depending on scope)
   - 4 categories: Duplication, Security, Complexity, Dead Code
   - Session-end workflow: catch issues while context is fresh
@@ -153,8 +161,8 @@ See [skill-creator](skills/skill-creator/) for the complete guide.
 
 | Command | Description |
 |---------|-------------|
-| [sync](commands/sync.md) | Session bootstrap - read project context, restore saved state, show status. |
-| [save](commands/save.md) | Save session state - persist tasks, plan content, and git context. |
+| [sync](commands/sync.md) | Session bootstrap - restore tasks, plan, git/PR context. Suggests `--resume` and `--from-pr`. |
+| [save](commands/save.md) | Persist tasks, plan, git/PR context, and session summary to native memory. |
 | [canvas](commands/canvas.md) | Terminal canvas for content drafting with live markdown preview. Requires Warp terminal. (Experimental) |
 
 ### Skills
@@ -332,6 +340,7 @@ Tasks (created via TaskCreate, managed via TaskList/TaskUpdate) are session-scop
 |---------------------|-----------|----------|
 | Conversation history | Yes | Internal (use `--resume`) |
 | CLAUDE.md context | Yes | `./CLAUDE.md` |
+| Native memory (MEMORY.md) | Yes | `~/.claude/projects/.../memory/` |
 | Tasks | **No** | Deleted on session end |
 | Plan Mode state | **No** | In-memory only |
 
@@ -341,13 +350,14 @@ Tasks (created via TaskCreate, managed via TaskList/TaskUpdate) are session-scop
 Session 1:
   /sync                              # Bootstrap + restore saved state
   [work on tasks]
-  /save "Stopped at auth module"     # Writes .claude/session-cache.json
+  /save "Stopped at auth module"     # Writes session-cache.json + MEMORY.md
 
 Session 2:
-  /sync                              # Restore tasks, show status
+  [MEMORY.md auto-loaded: "Goal: Auth, Branch: feature/auth, PR: #42"]
+  /sync                              # Full restore: tasks, plan, git, PR
+  → "Previous session: abc123... (claude --resume abc123...)"
   → "In progress: Auth module refactor"
-  → "Notes: Stopped at auth module"
-  /sync --status                     # Quick status check anytime
+  → "PR: #42 (claude --from-pr 42)"
 ```
 
 ### Why Not Just Use `--resume`?
@@ -357,12 +367,15 @@ Session 2:
 | Conversation history | Yes | No |
 | Tasks | **No** | Yes |
 | Git context | No | Yes |
+| PR linkage | Yes (`--from-pr`) | Yes (detected via `gh`) |
+| Session ID bridging | N/A | Yes (suggests `--resume <id>`) |
+| Native memory safety net | No | Yes (MEMORY.md auto-loaded) |
 | Human-readable summary | No | Yes |
 | Git-trackable | No | Yes |
 | Works across machines | No | Yes (if committed) |
 | Team sharing | No | Yes |
 
-**Use both together:** `claude --resume` for conversation context, `/sync` for task state.
+**Use both together:** `claude --resume` for conversation context, `/sync` for task state. Since v3.1, `/save` stores your session ID so `/sync` can suggest the exact `--resume` command.
 
 ### Session Cache Schema (v3.1)
 

+ 1 - 1
docs/PLAN.md

@@ -13,7 +13,7 @@
 | Component | Count | Notes |
 |-----------|-------|-------|
 | Agents | 22 | Domain experts (Python, Go, Rust, React, etc.) |
-| Skills | 41 | Pattern libraries, CLI tools, workflows, dev tasks |
+| Skills | 42 | Pattern libraries, CLI tools, workflows, dev tasks |
 | Commands | 3 | Session management (sync, save) + experimental (canvas) |
 | Rules | 5 | CLI tools, thinking, commit style, naming, skill-agent-updates |
 | Output Styles | 1 | Vesper personality |