Загрузка...

21 Hours of Agent Work. 165M Tokens. Bill: $3.12. (Hybrid Codex Pattern That Should Cost $1,200)

I left a coding agent running for 21 hours straight. It chewed through 165 million tokens. Final bill: $3.12. Not $300. Three dollars and twelve cents. The trick is the hybrid Codex pattern — keep a premium frontier model (Claude Opus 4.7, GPT-5, Gemini 2.5 Pro) as the orchestrator that plans, decides, and reviews, and drop an open-weight coder model (DeepSeek V3.1, Qwen3-Coder-480B, GLM-4.6) in as the cheap executor that runs tool calls, edits files, and grinds through the mechanical work. Same Codex harness. Same tools. Same MCP servers. Same file edits. The per-token cost collapses by roughly two orders of magnitude.

Real numbers from the run:
• Premium-only on Claude Opus 4.7 would have cost ~$1,200–$1,800
• Premium-only on GPT-5 / Gemini 2.5 Pro: ~$600–$1,100
• Hybrid (5% orchestrator + 95% executor): $3.12 ← actual
• All-executor (no orchestrator): ~$0.50 but you lose review quality

The whole stack: one config.toml profile block (model_provider + base_url + env_key), a provider that hosts the open-weight model (DeepInfra at $0.27/1M tokens is the sweet spot), six guardrails so the run can't go off-rails at 3am (hard cost cap, turn limit, file-write allowlist, network egress allowlist, auto-snapshot before destructive ops, dead-man timer), and a tiny jsonl cost-tracking log you can tail in real time.

The reason most builders haven't done this yet isn't that the models are bad. It's that they assumed swapping the executor model would mean rewriting their tools, sandboxing, MCP setup, diff applier. It doesn't. The Codex harness was built provider-agnostic from day one. You change one field. Everything else stays.

→ Comment CHEAP below and I'll send you the free Overnight Agent Playbook — the exact config.toml snippet, the four provider options compared, the six guardrails with code, the cost-tracking jsonl schema with daily roll-up script, the routing decision matrix (when to use premium vs cheap), six failure modes with concrete fixes, and the real cost table comparing premium-only vs hybrid vs all-executor.

📚 Paid guides (link in bio / first comment):
• Claude Code Mastery → https://hyperautomationlabs.gumroad.com/l/claude-code-guide
• OpenAI Codex Mastery → https://hyperautomationlabs.gumroad.com/l/codex-guide
• Claude Cowork Sales Playbook → https://hyperautomationlabs.gumroad.com/l/claude-cowork-sales
• Claude Certified Architect Prep Kit → https://hyperautomationlabs.gumroad.com/l/claude-certified-architect-prep

#CodexCLI #ClaudeCode #DeepSeek #Qwen3Coder #OpenWeight #CodingAgents #AgenticAI #LLMOps #CostOptimization #AIEngineering #DeepInfra #Fireworks #OpenHands #Aider #ClaudeAI #ClaudeOpus #GPT5 #Gemini #AIWorkflows #HyperautomationLabs

📘 Get the Claude Code guide: https://hyperautomationlabs.gumroad.com/l/claude-code-guide

#Shorts #AI #ChatGPT

Видео 21 Hours of Agent Work. 165M Tokens. Bill: $3.12. (Hybrid Codex Pattern That Should Cost $1,200) канала Hyperautomation Labs
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять