An agent in production that posts to X only what clears its bar, and only after approval in Discord.
Honeycomb's Graviton5 migration reduced Lambda CPU usage by improving column presence tracking, dropping it from 15% to 2.6% in the US. For AI infra, such detailed optimization can significantly impact cost control. Focus on the details, see the savings. #AICostControl
Nov 25, 6:40 PM PT · read 41, 14 new · scored 3 in order · drafted 1.
Nothing posts without approval in Discord.
The transition to AWS Lambda Managed Instances resulting in significant cost savings tells a compelling story of performance engineering and architectural change.
It cleared the bar, so the planner reviewed it, given:
Worth posting
The significant cost reduction achieved through AWS Lambda Managed Instances highlights a relevant architectural shift that can inform AI infrastructure strategies.
Sent to Discord as a draft. Approved 22 min 21 s later and posted. Topic memory now records ai cost control, so later runs see it was covered.
How a run is wired, then the eight layers inside it. Select a box to open its layer.
Scroll sideways to see the whole diagram.
config/feeds.jsonsrc/context/rss.tssrc/context/seen-rss-items.tssrc/agent/extract-topics.tssrc/agent/trend-detector.tssrc/pipeline-signal-v2.ts · src/context/seen-rss-items.tssrc/agent/score.tssrc/agent/plan-content.tssrc/agent/plan-content.tssrc/agent/intervention-detector.tssrc/memory/topic-memory.tssrc/agent/generate.ts.github/workflows/social-agent.ymlsrc/output/discord.tssrc/memory/verified-publications.tsgateway (getmyagentnow-ui)src/memory/verified-publications.tsThe contract behind every planner decision, and what the agent keeps between runs.
fatigue: mild = 1+ verified post in 7 days · high = 3+Records a fate for each story when its evaluation finishes, not when it's fetched. A crash or the one-draft limit can't silently burn stories nobody looked at.
| unevaluated | re-eligible next run, so a crashed run loses nothing |
| rejected | suppressed; the reason is in the record |
| cooldown | re-checked against topic memory each run |
| tech_failure | retried, up to 3 attempts |
| delivered | suppressed; the approval flow owns it |
src/context/seen-rss-items.tsKeeps four kinds of history apart, so that only real posts can cause fatigue:
A corrupt memory file stops the run instead of reading as “no fatigue anywhere.” Saves are atomic.
src/memory/topic-memory.tsEvery event from the selected run, in the order GMAN recorded it, then each model call.
| # | Time | Event |
|---|---|---|
| 1 | 6:40:33 PM | pipeline_start Run started |
| 2 | 6:40:36 PM | source_fetch Read 15 feeds; kept 14 new items |
| 3 | 6:40:36 PM | rss_dedup_filtered 27 of 41 items already seen in an earlier run |
| 4 | 6:40:47 PM | topics_extracted Tagged 14 items with 7 distinct topics |
| 5 | 6:40:49 PM | trend_detected Trend: frontier models across 4 sources |
| 6 | 6:40:51 PM | candidate_scored Scored 3: Where scientists draw the line on AI agents |
| 7 | 6:40:51 PM | decision_recorded Declined: Where scientists draw the line on AI agents. score 3 below threshold 5 and not in a trend cluster |
| 8 | 6:40:53 PM | candidate_scored Scored 3: Introducing Search for Agents |
| 9 | 6:40:53 PM | decision_recorded Declined: Introducing Search for Agents. score 3 below threshold 5 and not in a trend cluster |
| 10 | 6:40:56 PM | candidate_scored Scored 8: Outgrowing Lambda Functions, Not Lambda |
| 11 | 6:40:58 PM | content_planned Planner: worth posting. The significant cost reduction achieved through AWS Lambda Managed Instances highlights a relevant architectural shift that can inform AI infrastructure strategies. |
| 12 | 6:41:03 PM | draft_generated Draft sent to Discord (topic: ai cost control) |
| 13 | 6:41:03 PM | topic_memory_updated Topic memory updated: ai cost control |
| 14 | 6:41:04 PM | pipeline_complete Run complete: 14 candidates, 1 draft sent |
| after | 7:03:25 PM | post_published Approved in Discord and posted to X, 22 min 21 s after the draft was sent |
| # | Step | Duration | Tokens | Cost |
|---|---|---|---|---|
| 1 | topic-extraction | 10.6 s | 3,217 | $0.0008 |
| 2 | relevance-scoring | 1.2 s | 796 | $0.0024 |
| 3 | relevance-scoring | 1.8 s | 786 | $0.0024 |
| 4 | relevance-scoring | 2.4 s | 658 | $0.0021 |
| 5 | content-planning | 2.3 s | 809 | $0.0002 |
| 6 | tweet-generation | 1.5 s | 1,946 | $0.0053 |
| 7 | tweet-generation-retry | 1.7 s | 2,161 | $0.0059 |
| 8 | tweet-generation-retry | 1.1 s | 2,357 | $0.0063 |
Totals for this demo since it went into production.
Loading the account totals.