Build your own AI agent (Hard)
The runtime under a coding agent: a sandboxed workspace, exact edits, permissions, plans, budgets, rollback, helper agents and checked answers.
Claude Code, Codex, Cursor and Devin all run on a runtime like this: the model proposes actions, the runtime checks and executes them on a sandbox, and logs everything.
About 420 minutes across 10 stages. Skills: Sandboxing, Permissions, DAG plans, Budgets, Checkpoints, Multi-agent, Structured output.
The guides are part of licode Club.
Stages
- Write the run loop and its event log.
- Give the agent a sandboxed workspace.
- Edit files with exact, safe replacements.
- Enforce permissions with ALLOW and DENY globs.
- Check plans and run their steps in a safe order.
- Stop runs that go over a step or token budget.
- Save checkpoints and roll back to them.
- Let the agent hand work to a read-only helper.
- Check the final answer against a schema.
- Report actions, time and errors at the end.