<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/codeact-in-agent-framework-faster-agents-with-fewer-model-turns-hn6hbllvs" -->

---
title: CodeAct in Agent Framework: Faster Agents with Fewer...
description: Microsoft&#x27;s Agent Framework now supports the CodeAct pattern via the alpha `agent-framework-hyperlight` package. Instead of chaining multiple model-tool-model...
canonical: https://daily.dev/posts/codeact-in-agent-framework-faster-agents-with-fewer-model-turns-hn6hbllvs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: CodeAct in Agent Framework: Faster Agents with Fewer Model Turns | daily.dev
og:description: Microsoft&#x27;s Agent Framework now supports the CodeAct pattern via the alpha `agent-framework-hyperlight` package. Instead of chaining multiple model-tool-model...
og:url: https://daily.dev/posts/codeact-in-agent-framework-faster-agents-with-fewer-model-turns-hn6hbllvs
og:image: https://api.daily.dev/og/posts/Hn6HBLLvs.png
og:image:alt: CodeAct in Agent Framework: Faster Agents with Fewer Model Turns
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CodeAct in Agent Framework: Faster Agents with Fewer Model Turns

**[DevBlogs](https://daily.dev/sources/devblogs)** · 15 min read · 0 upvotes · 0 comments

## Summary

Microsoft's Agent Framework now supports the CodeAct pattern via the alpha `agent-framework-hyperlight` package. Instead of chaining multiple model-tool-model round trips, CodeAct lets an AI agent express a full multi-step plan as a single Python program executed inside a Hyperlight micro-VM sandbox. Benchmarks show ~52% latency reduction and ~64% token savings on workloads with many chained tool calls. The Hyperlight sandbox provides per-call isolation with millisecond startup, no shared state, and explicit opt-in for filesystem/network access. The post covers setup, approval modes, when to use CodeAct vs. traditional tool-calling, and current alpha limitations (Linux/Windows only, Python guest only).

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devblogs.microsoft.com/agent-framework/codeact-with-hyperlight>

## Similar posts on daily.dev

- [Agent Harness: Scaling the claw or harness capabilities](https://daily.dev/posts/agent-harness-scaling-the-claw-or-harness-capabilities-kmc2tlu6x) · DevBlogs · 1 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#ai-agents](https://daily.dev/tags/ai-agents)

[View this post on daily.dev](https://daily.dev/posts/codeact-in-agent-framework-faster-agents-with-fewer-model-turns-hn6hbllvs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"CodeAct in Agent Framework: Faster Agents with Fewer Model Turns","url":"https://daily.dev/posts/codeact-in-agent-framework-faster-agents-with-fewer-model-turns-hn6hbllvs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/codeact-in-agent-framework-faster-agents-with-fewer-model-turns-hn6hbllvs"},"datePublished":"2026-04-23T14:24:34.036Z","dateModified":"2026-04-23T14:24:56.678Z","description":"Microsoft's Agent Framework now supports the CodeAct pattern via the alpha `agent-framework-hyperlight` package. Instead of chaining multiple model-tool-model...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d02610efd8f351aaf65772bbd8d28723?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d02610efd8f351aaf65772bbd8d28723?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"DevBlogs","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DevBlogs","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/8f68b453325f482ebeb73fb780092713","url":"https://daily.dev/sources/devblogs"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/codeact-in-agent-framework-faster-agents-with-fewer-model-turns-hn6hbllvs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,ai-agents","timeRequired":"PT15M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevBlogs","item":"https://daily.dev/sources/devblogs"},{"@type":"ListItem","position":3,"name":"CodeAct in Agent Framework: Faster Agents with Fewer Model Turns"}]}
```

