Agent Workflow Process - Testing + Coding Agent Collaboration
How the Testing Director (Cowork) and Coding Agents (Cursor/Claude Code) collaborate on the GoGrab platform
Agent Workflow Process
How the Testing Director (Cowork/Claude Desktop) and Coding Agents (Cursor/Claude Code) collaborate to build and maintain the GoGrab platform.
1. The Two Sides
Testing Side (Cowork / Claude Desktop)
- Agent role: Testing Director
- Tools: Chrome browser, code reading, MCP, documentation
- Repos tested: gspace1 (ports 6200/6100/6300/6400/6500/6010) and gmodules1 (port 4301)
- Does NOT: Write production code, modify source files, run builds
Coding Side (Cursor / Claude Code)
- Agent role: Angular Agent, Backend Agent, etc.
- Tools: Full code editing, terminal, builds, linting
- Repos modified: editor2 (ports 5200/5100/5300) and gograb-modules (port 4201)
- Does NOT: Test in browser, create test reports
Both sides share:
- Same backend APIs (ports 3000, 3001, 3002)
- Same MCP server (mcp-gograb-ai) for session tracking and handoffs
- Same documentation in
docs/english/
2. The Feedback Loop
Testing Director Coding Agents
│ │
├─ Test UI/UX/E2E ──────────────────►│
│ │
├─ Find bugs/issues ────────────────►│
│ │
├─ Write handoff doc ───────────────►│ Read handoff
│ (docs/english/Handoffs/) │
│ │
├─ Log to MCP ──────────────────────►│ Check MCP for handoffs
│ (agent handoff_create) │ (agent handoff_pending)
│ │
│ ├─ Implement fix
│ │
│ ├─ Log decision to MCP
│ │
│◄── Notify via MCP ────────────────┤ (agent handoff_respond)
│ │
├─ Re-test fix ─────────────────────►│
│ │
├─ Report outcome ──────────────────►│
│ (outcome report) │
│ │
└─ Next issue ──────────────────────►│
3. Handoff Document Standards
Every handoff must include:
- Problem — What was observed, with screenshots if possible
- Expected Behavior — What should happen instead
- Root Cause Analysis — File paths, line numbers, code flow trace
- Suggested Fix — Specific changes with code context
- Files to Modify — Table of files and what to change
- Verification Steps — How to confirm the fix works
Where to Save Handoffs
- Primary:
docs/english/Handoffs/HANDOFF-{DESCRIPTION}.md - MCP:
agent { action: "handoff_create", toAgentType: "angular", summary: "...", tasks: [...] } - Convention: Handoff files start with
HANDOFF-prefix
4. MCP Integration Points
Testing Director Uses
| MCP Call | When |
|---|---|
preflight |
Start of session — get context |
session { action: "get_info" } |
Verify session state |
log_decision |
Record test findings and analysis |
agent { action: "handoff_create" } |
Send work to coding agents |
agent { action: "handoff_pending" } |
Check for responses from coding agents |
outcome { action: "report" } |
Report if a fix worked or not |
intelligence { action: "recall" } |
Check for similar past issues |
convention { action: "get" } |
Refresh codebase conventions |
Coding Agents Use
| MCP Call | When |
|---|---|
preflight |
Start of session |
agent { action: "handoff_pending" } |
Check for work from Testing Director |
agent { action: "handoff_respond" } |
Acknowledge/complete handoffs |
log_decision |
Record implementation decisions |
convention { action: "add" } |
Add new conventions discovered during coding |
outcome { action: "track" } |
Track with git commit triggers |
5. Session Workflow
Testing Director Session Start
- Call
preflightwith task description - Read latest handoffs in
docs/english/Handoffs/ - Check MCP for pending handoffs:
agent { action: "handoff_pending" } - Connect Chrome browser:
tabs_context_mcp - Navigate to test target URL
Testing Cycle
- Navigate to page under test
- Take screenshot (evidence)
- Interact with UI elements
- Check network requests and console for errors
- If bug found → trace root cause through code (Read/Grep/Glob)
- Write handoff document
- Log to MCP
- Move to next test target
Testing Director Session End
- Summarize findings in test report
- Ensure all handoffs are logged
- Update any tracking documents
- Log session outcome to MCP
6. Port Reference (Quick)
| What | Testing (gspace1) | Coding (editor2) |
|---|---|---|
| gograb-space | 6200 | 5200 |
| gograb-admin | 6100 | 5100 |
| gograb-dev | 6300 | 5300 |
| gograb-ai | 6400 | — |
| space-admin | 6500 | — |
| gograb-docs | 6010 | 5010 |
| gmodules admin | 4301 | 4201 |
| backend-api | 3000 (shared) | 3000 (shared) |
| backend-ai-api | 3001 (shared) | 3001 (shared) |
| backend-docs-api | 3002 (shared) | 3002 (shared) |
7. Documentation Rules (from AGENTS.md)
- Session docs go in
docs/english/sessions/SX/ - Handoffs go in
docs/english/Handoffs/ - Max 5-8 files per session
- Use proper frontmatter with title, description, icon, session, status
- Consolidate related content into single files
- Link format:
/section/page(absolute, no .md extension)