Problem
When a user says "continue on issue X" or "resume work on issue X", Claude Code instances don't have a standardized workflow to follow. This leads to:
- Inconsistent behavior across sessions
- Missing the MCP session coordinator sign-on step
- Not retrieving stored state from previous sessions
- Not checking GitHub issues when no state exists
- Confusion when issue numbers don't exist
Enhanced Solution (Credit: Cipher/DS-02)
Transform from static documentation to self-teaching MCP server integration that guides Claude Code through the Resume Issue workflow automatically.
Key Insight: Instead of writing documentation that Claude might skip, embed the workflow directly into the MCP server's prompts and resources so Claude sees it every time.
Implementation Strategy
Phase 1: MCP Server Integration
File: packages/mcp-server/src/claude_session_coordinator/prompts.py
Create startup and sign-off prompts that teach the workflow:
-
STARTUP_PROMPT - Shown when Claude connects to MCP server:
- Document trigger phrases ("continue on issue #X", "resume issue #X", etc.)
- Provide complete workflow steps (sign-on → retrieve state → present → work → sign-off)
- Include decision tree for all scenarios (state exists vs. no state vs. issue doesn't exist)
- List best practices and common pitfalls
- Define standardized state storage keys
-
SIGNOFF_PROMPT - Shown before sign-off:
- Checklist for state storage before signing off
- Reminder to document next steps for handoff
- Ensure proper session release
File: packages/mcp-server/src/claude_session_coordinator/resources.py
Enhance session://context resource with workflow guidance:
- Add workflow object with step-by-step instructions
- Include trigger phrases array
- Provide best practices for state storage
- Show quick start guide
- Give current recommendations (next available session, etc.)
Phase 2: Supporting Documentation
File: .claude/workflow.md
Create human-readable reference explaining:
- Self-teaching concept (MCP server teaches Claude automatically)
- Trigger phrases that activate the workflow
- What happens behind the scenes
- Troubleshooting guide
- How to customize for other projects
File: README.md
Add brief mention of Resume Issue Workflow:
- Link to workflow.md
- Quick example of usage
- Benefits of self-teaching approach
Phase 3: Testing & Validation
Test the complete workflow:
- Start work on an issue and store state
- Sign off and start new session
- Say "continue on issue #X"
- Verify Claude follows workflow automatically
- Test edge cases (non-existent issue, no state, multiple sessions)
Phase 4: Polish
- Add example conversations to startup prompt
- Improve error messages with recovery guidance
- Document in blog post (The Claude Code Chronicles)
Requirements
The implementation must:
- Be self-teaching - Claude learns the workflow from MCP server prompts, not static docs
- Be automatic - Workflow triggers on recognized phrases without manual explanation
- Cover all scenarios:
- State exists in MCP session coordinator → restore and continue
- No state exists → check GitHub issue
- No GitHub issue exists → ask user for clarification
- Define trigger patterns - Recognize variations of "continue on issue X"
- Integrate seamlessly - Work with existing sign-on/sign-off procedures
- Be reusable - Template approach works for other repositories
Acceptance Criteria
Phase 1: MCP Server Integration
Phase 2: Supporting Documentation
Phase 3: Testing
Phase 4: Polish
Success Metrics
After implementation, this workflow should work:
✅ User says: "continue on issue #54"
✅ Claude responds: "Let me check the session coordinator..."
✅ Claude retrieves: Previous state from MCP server
✅ Claude presents: "Found previous work on batch 2. Continue?"
✅ Claude continues: From exactly where previous session stopped
Critical: This should work WITHOUT the user explaining the workflow - the MCP server teaches Claude automatically.
Why This Approach is Better
Original approach (static documentation):
Human writes workflow.md → Hopes Claude reads it → Often doesn't work
Enhanced approach (self-teaching MCP):
MCP server prompts Claude → Claude sees it every time → Always works
The difference:
- Static docs = Claude might skip them
- Dynamic prompts = Claude can't miss them
- Self-teaching = Consistent behavior across all sessions
Context
This issue was discovered when trying to resume work on issue #54. The current workflow documentation doesn't cover resuming work, only starting new work.
Related to the MCP session coordinator (Phase 3) which provides state storage and retrieval capabilities.
Enhanced by Cipher (DS-02) to use a self-teaching approach via MCP server integration rather than static documentation.
Implementation Timeline
Phase 1 (2-3 hours):
- Create prompts.py with startup and sign-off prompts
- Enhance resources.py with workflow guidance
- Create .claude/workflow.md
- Update README
Phase 2 (Testing & Blog):
- End-to-end testing with real scenarios
- Document results
- Write blog post with examples
Related Issues
Problem
When a user says "continue on issue X" or "resume work on issue X", Claude Code instances don't have a standardized workflow to follow. This leads to:
Enhanced Solution (Credit: Cipher/DS-02)
Transform from static documentation to self-teaching MCP server integration that guides Claude Code through the Resume Issue workflow automatically.
Key Insight: Instead of writing documentation that Claude might skip, embed the workflow directly into the MCP server's prompts and resources so Claude sees it every time.
Implementation Strategy
Phase 1: MCP Server Integration
File:
packages/mcp-server/src/claude_session_coordinator/prompts.pyCreate startup and sign-off prompts that teach the workflow:
STARTUP_PROMPT - Shown when Claude connects to MCP server:
SIGNOFF_PROMPT - Shown before sign-off:
File:
packages/mcp-server/src/claude_session_coordinator/resources.pyEnhance
session://contextresource with workflow guidance:Phase 2: Supporting Documentation
File:
.claude/workflow.mdCreate human-readable reference explaining:
File:
README.mdAdd brief mention of Resume Issue Workflow:
Phase 3: Testing & Validation
Test the complete workflow:
Phase 4: Polish
Requirements
The implementation must:
Acceptance Criteria
Phase 1: MCP Server Integration
prompts.pycreated with STARTUP_PROMPTprompts.pyincludes SIGNOFF_PROMPTresources.pyenhanced with workflow guidance insession://contextPhase 2: Supporting Documentation
.claude/workflow.mdcreatedREADME.mdupdatedPhase 3: Testing
End-to-end workflow test completed
Edge cases tested
Phase 4: Polish
Success Metrics
After implementation, this workflow should work:
✅ User says: "continue on issue #54"
✅ Claude responds: "Let me check the session coordinator..."
✅ Claude retrieves: Previous state from MCP server
✅ Claude presents: "Found previous work on batch 2. Continue?"
✅ Claude continues: From exactly where previous session stopped
Critical: This should work WITHOUT the user explaining the workflow - the MCP server teaches Claude automatically.
Why This Approach is Better
Original approach (static documentation):
Enhanced approach (self-teaching MCP):
The difference:
Context
This issue was discovered when trying to resume work on issue #54. The current workflow documentation doesn't cover resuming work, only starting new work.
Related to the MCP session coordinator (Phase 3) which provides state storage and retrieval capabilities.
Enhanced by Cipher (DS-02) to use a self-teaching approach via MCP server integration rather than static documentation.
Implementation Timeline
Phase 1 (2-3 hours):
Phase 2 (Testing & Blog):
Related Issues