frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Loop Engineering with native model switching in Codex and Claude

https://statewright.ai/blog/loop-engineering-with-native-model-switching-in-codex-and-claude
1•azurewraith•1h ago

Comments

azurewraith•1h ago
...or that one time I blew 60% of my Codex x20 weekly usage allotment in under 24 hours...

We've all had the same struggle, torn between wanting to run longer loops and maximize our current subscription quotas but not wanting to hand the keys to the kingdom over to an unrestricted OpenClaw or Hermes agent.

These tools are prominent examples of the recent long-running agent wave... Loop Engineering is not just letting an agent run until it declares itself victorious, but also properly designing an outer loop around said agent. I believe the discipline is better served with a bit more structure.

A better loop in my eyes is a sequence of bounded phases where each phase carries its own model, reasoning level, tool permissions, budget alongside escalation rules and intervention points. The agent should keep moving autonomously until the task is completed or human intervention is required.

The expensive frontier model isn't always the right call. Routine tasks like inspection, data extraction and validation can all run comfortably on less capable models... but you don't want to be around to switch them manually.

With the 0.3.0 release of Statewright (statewright.ai) you can perform Loop Engineering directly within the Claude & Codex TUIs you already love and trust. I didn't want to create another separate tool which forces me to give up my existing skills, agents and other native conveniences like Codex auto-approve, so I opted to make Loop Engineering work better in native TUIs.

At each phase boundary, Statewright can change the active model, reasoning level and token budget which is the big change here. Mixed with it's previous feature set you can assign tool permissions and other necessary guardrails to prevent your agent from running amok. It accomplishes this without requiring that you utilize separate agent shells or be at the helm injecting /model and hoping it lands at the turn boundaries you desire.

The benefits are cut and dry at the onset: leaving a frontier model active is a blunt instrument which is often overkill. In a similar time period and workload I consumed 10% of my weekly quota where the previous day I spent 60%. While testing Claude I was finally comfortable letting the agent run in YOLO mode (--dangerously-skip-permissions) with Statewright’s guardrails.

The end goal with Loop Engineering is not to make agents run forever, it's to make each additional turn intentional with the right model/reasoning, the right guarded tool access, a known token budget and a reason to continue.

How Did Rogue Generate Its Random Dungeons?

https://howtomakeanrpg.com/r/a/rogue-dungeon-generation.html
1•danschuller•21s ago•0 comments

California Town Says Flock Cameras Misread License Plates 71% of the Time

https://www.techdirt.com/2026/08/06/california-town-says-flock-cameras-misread-license-plates-71-...
1•hn_acker•48s ago•0 comments

List of Trading Losses

https://en.wikipedia.org/wiki/List_of_trading_losses
1•_vaporwave_•1m ago•0 comments

Dress made of living mycelium can renew and repair itself

https://www.dezeen.com/2026/08/05/dress-living-mycelium-renew-repair/
1•speckx•3m ago•0 comments

API Is Not Your MCP Tool

https://ro14nd.de/mcp-tool-design-patterns/
2•DataOverload•5m ago•0 comments

Massachusetts prosecutors run their offices on software from the dial-up era

https://nasser.blog/dial-up-justice/
1•aragonite•6m ago•0 comments

Agent Plugins

https://twitter.com/OpenAIDevs/status/2085398373511918022
2•tosh•7m ago•1 comments

What's My Local AI?

https://whatsmylocal.ai/
3•chrismatic•8m ago•0 comments

JWT decoder with connect-src 'none', so it can't upload your token

https://jwt.jamuny.com/
2•pop3zxcv•12m ago•1 comments

Introducing: Cloudflare Agents

https://blog.cloudflare.com/agents-on-cloudflare/
2•zuckerborg0101•13m ago•0 comments

Export AI chat sessions to carry context from one tool into another

https://github.com/TheJoin95/mnemosyne
1•thejoin95•14m ago•0 comments

Open Questions on Open Weights

https://www.astralcodexten.com/p/open-questions-on-open-weights
1•reducesuffering•14m ago•0 comments

Microsoft filings suggest "around 70%" of its AI revenue is on OpenAI

https://www.windowscentral.com/artificial-intelligence/microsoft-filings-suggest-around-70-percen...
23•speckx•15m ago•3 comments

The Question Concerning Technology – Martin Heidegger (Wikipedia)

https://en.wikipedia.org/wiki/The_Question_Concerning_Technology
2•jonash54•16m ago•0 comments

Five Indie Platforms You Might Not Have Heard Of

https://brennan.day/five-interesting-indie-platforms-you-might-not-have-heard-of/
1•nate•17m ago•0 comments

Zapscape (CVE-2026-64561)

https://github.com/V4bel/Zapscape
2•john_strinlai•18m ago•0 comments

India's IT sector is surviving artificial intelligence

https://www.economist.com/finance-and-economics/2026/08/06/indias-it-sector-is-surviving-artifici...
4•alephnerd•22m ago•1 comments

How I became the villain of El Cerrito's Nextdoor

https://www.oaklandreviewofbooks.org/the-villain-of-el-cerrito-nextdoor/
1•bsimpson•26m ago•0 comments

LLMs and Programmatic Stagnation

https://systemist.net/changelog/letters/2026-07-31-programmatic-stagnation
1•tsraveling•26m ago•0 comments

Potions in Mageia. 01 – Pidgin and its accessories

https://blog.mageia.org/en/2026/08/05/potions-in-mageia-01-pidgin-and-its-accessories/
1•rw_grim•28m ago•0 comments

Maybe we just shouldn't build software with so many people

https://blog.nicoleta.cc/maybe-we-just-shouldnt-build-software-with-so-many-people/
2•speckx•29m ago•1 comments

A Subtle Web of Meaning

https://robertxworld.com/a-subtle-web-of-meaning/
1•devrob•30m ago•0 comments

Nashville uses eminent domain to block data center near zoo

https://nashvillebanner.com/2026/08/04/metro-council-data-center-eminent-domain-vote/
10•DeepLogin•30m ago•1 comments

A Pronoun for LLMs

https://blog.david.connol.ly/2026/08/lem.html
3•slartibardfast0•30m ago•1 comments

DeepSeek Plans 'Significant' Price Increase for AI Services

https://www.bloomberg.com/news/articles/2026-08-06/deepseek-plans-significant-price-increase-for-...
4•croes•32m ago•1 comments

New Melania Trump series coming to Amazon Prime after losses for documentary

https://www.euronews.com/culture/2026/08/06/new-melania-trump-series-coming-to-amazon-prime-after...
2•vrganj•32m ago•0 comments

Reflections on software engineering in the age of AI

https://glattetre.me/blog/reflections-on-software-engineering/
2•GOATS-•34m ago•0 comments

Notes On Distance Dialing (1956) [pdf]

https://explodingthephone.com/hoppdocs/nodd1956.pdf
2•colinprince•35m ago•0 comments

Rogue OpenAI models teamed up to break out of their testing environment

https://www.tomshardware.com/tech-industry/artificial-intelligence/rogue-openai-models-behind-unp...
2•sbulaev•35m ago•1 comments

A Mathematical Theory of the Antilibrary

https://growingbits.dev/fragments/a-mathematical-theory-of-the-antilibrary#3-the-utility-score
2•MexicanYoda•35m ago•0 comments