Stacks/Sales / GTM
Fedor Kovalev's production GTM agents on Mastra and Postgres
GTM engineer Fedor Kovalev (@KesselmanF) runs his company's production GTM agents on a Mastra and Postgres harness on an AWS VM, which the sales and CS team talk to in Slack. Row-level decisions (ICP grading, enrichment, CRM cleanup) go to decision models D1 Ultra and Parallel Decision rather than frontier chat models. Guardrails include a hard daily spend stop, a per-run vendor cap, a step clamp of 50, and split static/dynamic system prompts for caching. He reports the live desk agents cost roughly $121 a month, or about $0.46 a thread. The post also covers his separate dev harness and a $12k Claude Code context bill.
- Use case
- Production GTM agents that sales and customer success talk to in Slack: lead analysis, ICP grading, company enrichment, CRM cleanup, campaigns, and account-level RevOps.
- Category
- Sales / GTM
- Orchestrator / framework
- Company-built Mastra harness deployed on an AWS VM, with multi-step agent loops and a Slack interface. Step clamp of 50 instead of the framework default of 1,000. Deterministic workflow glue in n8n; enrichment through treg.to (behind MCP) and Apify. Changes ship spec-first, in thin PRs, verified by an independent verifier, and roll out dark behind a feature switch.
- Memory
- Postgres with stateful account memory (covered in the author's separate 'Effective freedom' post). A plain Markdown company wiki in the repo is shared context for agents.
- Evals
- An independent verifier tests each build against user journeys and test scenarios merged before implementation. Corrections, seller feedback, and failed runs loop back into skill and routing updates.
- Observability
- Hard daily spend stop across combined model and vendor spend, plus a per-run vendor cap on treg.to calls.
- Cost (stated in writeup)
- roughly $121 a month (about $0.46 a thread) · monthly
- Cost per output (stated)
- Stated: about $0.46 per thread
“With those guardrails on, the live desk agents cost roughly $121 a month to operate, or about $0.46 a thread.”
As stated in the writeup, checked 2026-11-27.
- Other tools
- PostgresAWSSlackn8nClaytreg.toApify
- Source
- https://x.com/KesselmanF/status/2125958036812337506
Fedor Kovalev (@KesselmanF) · Published Nov 26, 2026 · Last verified Nov 27, 2026
Related
More like this
Mastra Factory software factory
Agentic kanban board, @-taggable in Slack, that the Mastra team uses to triage issues, build, review and ship PRs across the mastra-ai GitHub org.
Lindy Raptor: AI teammate engine on Mastra with Postgres as the job queue
Lindy is an AI teammate that does work in Slack, email and text using a team's connected apps, for example finding what someone said on yesterday's call, sending email, or changing files. Raptor is the rewritten engine (harness) behind it, replacing a three-year-old home-rolled harness.