{
  "id": "ts-production-agent",
  "title": "Production agent in TypeScript",
  "category": "agents",
  "job": "Build an agent with tools, memory and workflows you can deploy.",
  "difficulty": "Advanced",
  "tools": [
    {
      "id": "mastra",
      "name": "Mastra",
      "url": "https://mastra.ai",
      "kind": "framework",
      "summary": "TypeScript framework for agents, typed workflows, memory and evals.",
      "open_source": true,
      "pricing": {
        "plans": [
          {
            "name": "Open source",
            "usd_month": 0,
            "note": "Framework is free; pay for models"
          }
        ],
        "source": "https://dbggr.dev/articles/agent-frameworks-compared/",
        "status": "verified",
        "notes": "Licensing details not re-checked."
      },
      "last_checked": "2026-10-21"
    },
    {
      "id": "langfuse",
      "name": "Langfuse",
      "url": "https://langfuse.com",
      "kind": "observability",
      "summary": "Open-source tracing, evals and prompt management for LLM apps and agents.",
      "open_source": true,
      "pricing": {
        "plans": [
          {
            "name": "Hobby",
            "usd_month": 0,
            "note": "50k units/month, 2 users"
          },
          {
            "name": "Core",
            "usd_month": 29,
            "note": "100k units/month, unlimited users"
          }
        ],
        "source": "https://langfuse.com/pricing",
        "status": "verified",
        "notes": null
      },
      "last_checked": "2026-10-21"
    },
    {
      "id": "claude-code",
      "name": "Claude Code",
      "url": "https://claude.com/product/claude-code",
      "kind": "coding-agent",
      "summary": "Anthropic's agentic coding tool for the terminal and IDEs. Included in paid Claude plans.",
      "open_source": false,
      "pricing": {
        "plans": [
          {
            "name": "Pro",
            "usd_month": 20,
            "note": "$17/mo billed yearly; 5-hour and weekly usage limits"
          },
          {
            "name": "Max 5x",
            "usd_month": 100,
            "note": "5x Pro usage per session"
          },
          {
            "name": "Max 20x",
            "usd_month": 200,
            "note": "20x Pro usage per session"
          }
        ],
        "source": "https://claude.com/pricing?mode=code",
        "status": "verified",
        "notes": "Free Claude plan does not include Claude Code."
      },
      "last_checked": "2026-10-21"
    }
  ],
  "model": "GPT-6.1 Sol or Claude Sonnet 5.5 ($2 in / $10 out per 1M tokens)",
  "mcp_servers": [],
  "config": {
    "filename": "agent-plan.md",
    "language": "markdown",
    "code": "Agent: <name>\nTools: <3-5 tools>\nMemory: per-user thread\nWorkflow: plan -> act -> verify -> report\nEvals: 25 cases in evals/"
  },
  "starter_prompt": "Using Mastra, implement the agent in agent-plan.md with typed tools, a workflow with a human-approval step before any write action, and Langfuse tracing. Add the eval cases and a CI script.",
  "monthly_cost": {
    "min_usd": 0,
    "max_usd": 29,
    "note": "Mastra is open source. Model usage is pay-per-token. Langfuse Hobby free, Core $29."
  },
  "steps": [
    "Write the plan.",
    "Build tools first, then the workflow.",
    "Add evals before adding features."
  ],
  "why_this_works": "One TypeScript stack for agents, workflows and evals.",
  "watch_out": "Pick LangGraph instead if your team is Python-first.",
  "unverified": [],
  "tested": false,
  "last_checked": "2026-10-21"
}