Files
conversation-history/Daily Notes/2026-04-20.md
T

2.8 KiB

Session: DeerFlow Agent Fixes & Raphael Creation

Issues Resolved

  1. Jacob disappeared from interface — Root cause: upstream commit a7e7c6d6 (Apr 14) disabled custom-agent API by default. After user's Apr 19 upgrade (168 commits), agents_api was disabled because ConfigMap lacked explicit enabled: true.
    • Fix: Added agents_api.enabled: true to config.yaml
    • Re-applied K8s ConfigMap deer-flow-app-config
    • Restarted deer-flow-gateway and deer-flow-langgraph deployments
    • Verified: curl -u boaz:strength https://jacob.fetcherpay.com/api/agents returns both Jacob and Raphael

New Agent Created: Raphael

  • Name: raphael
  • Directory: backend/.deer-flow/agents/raphael/
  • Description: Divine guide and vocational matchmaker who walks with you through the marketplace of opportunity — discerning fitting roles, opening doors, and ensuring you arrive where your talents are truly valued.
  • Identity: Archangel-inspired career guide — discerns fit before chasing titles, scouts across every plane (boards, networks, research, outreach), advocates fiercely, tells painful truths about misalignment, and walks with you through uncertainty.
  • Files created:
    • backend/.deer-flow/agents/raphael/config.yaml
    • backend/.deer-flow/agents/raphael/SOUL.md
  • Synced to K8s PVC at /var/snap/microk8s/common/default-storage/fetcherpay-deer-flow-data-pvc-*/agents/raphael/

Gmail MCP Discussion

  • DeerFlow has no built-in Gmail MCP — it's MCP-agnostic
  • Official @modelcontextprotocol/server-gmail requires OAuth2 (difficult in containers)
  • Options evaluated:
    1. Forward Gmail → Yahoo (Hermes already reads Yahoo)
    2. OAuth token file on PVC + stdio MCP server
    3. Google Workspace service account (domain-wide delegation)
    4. Community HTTP Gmail MCP
  • Decision: User will switch to Hermes MCP codebase and add native Gmail/Google support there rather than fighting OAuth in DeerFlow containers

Files Modified

  • config.yaml — added agents_api.enabled: true
  • K8s ConfigMap deer-flow-app-config — re-applied with agents_api enabled
  • backend/.deer-flow/agents/raphael/config.yaml — new
  • backend/.deer-flow/agents/raphael/SOUL.md — new

Next Steps

  • User working on Hermes MCP codebase to add Gmail/Google integration
  • Test Raphael with a fresh thread for job search

Hermes MCP ChatGPT Fix

  • Fixed JSON.parse crash on MySQL JSON columns in src/oauth.ts
  • Fixed timezone bug (EDT vs UTC) causing instant token expiry in src/db.ts (timezone: 'Z')
  • Updated hermes-k8s.yaml with hostNetwork: true, strategy: Recreate, MySQL + Gmail env vars
  • Built, pushed, and deployed new image to K8s
  • Verified full OAuth + MCP flow end-to-end on https://hermes.fetcherpay.com — 10 tools working