S193: Workflow Improvement — Session/Git/MCP Consistency
Unified agent protocol, Claude Code parity, platform detection, stale session cleanup
Session 193: Workflow Improvement
Goals
- Fix critical misconfigurations (MCP path, platform detection, branch naming)
- Achieve Claude Code feature parity with Cursor (commands, hooks, rules)
- Add Vitto and Cowork as first-class platform types
- Automate session lifecycle (auto-manifest, stale cleanup, branch validation)
- Create unified agent onboarding protocol for all platforms
Changes Made
Phase 1: Critical Fixes
- Fixed
.claude/mcp.json— was pointing to editor2, now points to gspace1 - Fixed
start-server.sh— no longer overridesCLAUDE_CODE_AGENTwithCURSOR_AGENT - Fixed
preflight.tsbranch naming — now expectssession-{N}per SAGP v1.2 - Added
vittoandcoworkplatform types across types, schema, and detector
Phase 2: Claude Code Parity
- Created
.claude/commands/— mirrors.cursor/commands/(6 commands) - Created
/sessioncommand for one-step session setup - Consolidated
CLAUDE.md(Claude Code-specific, ~100 lines) +AGENTS.md(shared, ~200 lines) - Eliminated ~60% content overlap between the two files
Phase 3: Automation
- Enhanced
updateSessionManifest()to auto-create docs directory for new sessions - Added
cleanupcommand to session-manager.js (stale sessions + orphaned branches) - Aligned session-manager.js branch naming to SAGP v1.2 (
session-{N}) - Added
yarn session:cleanupandyarn session:cleanup:fixscripts
Phase 4: Quality of Life
- Created
.claude/hooks/session-check.sh— validates branch/manifest on every prompt - Created unified agent onboarding protocol document
Files Modified
.claude/mcp.json— workspace path fix.claude/settings.json— added hooks configuration.claude/commands/— 6 new command files.claude/hooks/session-check.sh— session validation hookCLAUDE.md— rewritten as Claude Code-specific instructionsAGENTS.md— rewritten as shared cross-platform rulesMCP/mcp-gograb-ai/start-server.sh— platform detection fixMCP/mcp-gograb-ai/src/tools/preflight.ts— branch naming alignmentMCP/mcp-gograb-ai/src/session/session-detector.ts— Vitto/Cowork detectionMCP/mcp-gograb-ai/src/types/index.ts— PlatformType expansionMCP/mcp-gograb-ai/src/storage/docs-data-integration.ts— auto-docs-dirsessions/schemas/session-manifest.schema.json— platform enum expansionsessions/manifests/S193.json— this session's manifesttools/scripts/database/session-manager.js— cleanup command + branch naming fixpackage.json— cleanup scripts