EDGE FDE
IntermediateRun an agent with a state machine
Make agent behavior predictable so product and support can trust what the app will do next.
Deterministic orchestrator with Dynamic Profiles (one active Profile at a time), no LangChain.
Own the loop yourself. One Dynamic Profile is active at a time. Tools change state. The app decides the next step. iOS 27 and macOS 27 only.
Lessons
Key concepts
- Own the agent loop with a state machine and Dynamic Profiles.
- App state is the source of truth. One active Profile at a time.
- Tools propose transitions. Your code accepts or rejects them.
- No LangChain or hidden runtime on iOS 27 and macOS 27.
Takeaways
- You can run an agent with named states, legal moves, and a step cap.
- Product can name the next step. Support can read the log.
- You can bind each state to one Profile with its own instructions, tools, and model.
Agent briefs
Related courses
Route work to the right Apple model · Build a context packer for on-device AI · Test AI behavior before you ship · Pause and resume long AI jobs