Migration: Pre-Deep Agent

Breaking changes checklist for adopters of the old template-agent and template-ui before the August 2026 Deep Agent merge.

If you used template-agent or template-ui before the August 2026 Deep Agent merge, this checklist summarizes what changed and how to migrate.

Summary of changes

AreaBeforeAfter
Agent frameworkSimple LangGraph scriptDeep Agents + Aegra CLI
Package layouttemplate_agent/deep_agent/ + config/agent/
Run commandpython -m template_agent...make local / aegra dev --port 5002
Agent portVaried (often 8000)5002 (LangGraph API)
PromptsEmbedded in Pythonconfig/agent/PROMPT.md + subagents
MCP configEnv vars / Python settingsconfig/agent/mcp.json + frontmatter
DependenciesAgent onlyPostgreSQL + Redis required
Python version3.123.13+
UI backendFastAPI split or WebSocketsFastify BFF (single Node app)
UI structurefrontend/ + backend/ dirssrc/frontend/ + src/server/
UI → agentAGENT_URL, port 8000/8001AGENT_HOST / AGENT_ENDPOINT, port 5002
UI devSeparate frontend/backend startsnpm run dev (unified)
Agent responsesHTML/Tailwind possibleMarkdown-first rendering
UI brandingCode or env onlyconfig/ui/settings.yaml + hot-reload

template-agent migration steps

  1. Re-clone or merge from current main after PR #104.

  2. Install prerequisites: Python 3.13+, Podman, uv.

  3. Replace run workflow:

    make install
    make local
    curl http://localhost:5002/health
    
  4. Move prompts from Python strings to:

    • config/agent/PROMPT.md (orchestrator)
    • config/agent/subagents/*.md
  5. Move MCP configuration to config/agent/mcp.json. Wire servers via frontmatter mcps: on orchestrator and subagents.

  6. Configure .env for Postgres, Redis, and GOOGLE_APPLICATION_CREDENTIALS_CONTENT (see .env.example).

  7. Update API clients to LangGraph API:

    • POST /threads
    • POST /threads/{thread_id}/runs/stream
    • Assistant ID: agent
  8. Update deployment manifests — health checks on port 5002, Postgres and Redis components in OpenShift overlay.

template-ui migration steps

  1. Re-clone or merge from current main after PR #76.

  2. Install Node.js 22+.

  3. Replace startup:

    cp env.template .env
    # AGENT_HOST=http://localhost:5002
    # AUTH_ENABLED=false  # for local dev
    npm install
    npm run dev
    
  4. Remove references to:

    • python -m backend.main
    • AGENT_URL=http://localhost:8000
    • Separate frontend/ and backend/ directory layout (now under src/)
  5. Add config/ui/settings.yaml for branding (copy from config/ui/examples/).

  6. Expect Markdown agent responses — UI uses ReactMarkdown auto-detection.

  7. Use new UI features optionally: HITL banners, task progress, MCP status panel, debug panel.

API client migration

If your app called the old agent HTTP API directly:

Old assumptionNew approach
Custom /v1/stream endpointLangGraph POST /threads/{id}/runs/stream
Single monolithic agentOrchestrator + subagents; stream includes delegation events
Direct browser → agentUse template-ui BFF or implement LangGraph client

Use template-ui as the reference BFF implementation.

Documentation map

TopicUpdated docs
Agent overview/templates/agent/
Agent quick start/templates/agent/quick-start/
UI overview + BFF/templates/ui/
Config reference/reference/config-as-code/
Announcements/news/
Upstream frameworksDeep Agents, LangGraph, Agent Skills

Getting help

Warning Warning

There is no automatic upgrade path from pre-Deep Agent forks. Treat this as a re-adoption of the template: migrate config and prompts into the new config/agent/ and config/ui/ layouts rather than patching old Python modules.