Project Automation Execute State 13
- ✅ Task 1 — Add
switch_agenttool to Forge Chat’s MCP server (forge-spawn)- ✅ Run
cd Forge/Configs/MCP_Servers/forge-spawn && npm install mongodb - ✅ Create
src/mongo.tswithMongodbClientclass - ✅ In
src/index.ts, instantiateMongodbClientininitializeServices() - ✅ Add
switch_agenttool to server withagent_idandconversation_idargs
- ✅ Run
- ✅ Task 2 — Update Forge Chat prompt with routing rules for
switch_agent- ✅ Add “Permanent Handoff” section to
Forge_Chat_Prompt.md - ✅ Create
Forge/Configs/Agents/agent_ids.jsonwith agent ID lookup table - ✅ Add note in prompt about reading
agent_ids.json
- ✅ Add “Permanent Handoff” section to
- ✅ Task 3 — Update the “project” routing rule to use both mechanisms
- ✅ Modify PRE-WORK rule 1 in
Forge_Chat_Prompt.md
- ✅ Modify PRE-WORK rule 1 in
- ✴️ Task 4 — Handle the overwrite race in
chatCompletionfinally block- ✅ Step 4a — Verify LibreChat’s existing conversation update endpoint
- 🚫 Step 4b — Frontend SSE detection of
switch_agenttool result - ✅ Step 4c — Custom PATCH endpoint (only if LibreChat doesn’t have one)
- ✅ Task 5 — Build, commit, push
- ✅ Build forge-spawn:
cd Forge/Configs/MCP_Servers/forge-spawn && npm run build - ✅ Verify build succeeds with no errors
- ✅ Stage all changes, commit, and push to
dev
- ✅ Build forge-spawn: