Inside an Agent Harness: One Working Session

Inside an Agent Harness: One Working Session A workflow diagram generated by Archify. 01 / Harness + permissions 02 / Model 03 / Sandbox & tools 04 / Durable state Start session · task + budget · Harness + permissions Start session task + budget Build context · instructions, state · Harness + permissions Build context instructions, state Compact · summarise old turns · Harness + permissions Compact summarise old turns Permission check · allow, ask, deny · Harness + permissions Permission check allow, ask, deny Ask human · risky action · Harness + permissions Ask human risky action Decide next step · reason + tool call · Model Decide next step reason + tool call Run tool · shell, browser, MCP · Sandbox & tools Run tool shell, browser, MCP Verify · tests, linters, evals · Sandbox & tools Verify tests, linters, evals Progress notes · plan, done, next · Durable state Progress notes plan, done, next Skills · SKILL.md on demand · Durable state Skills SKILL.md on demand Save progress · commit + checkpoint · Durable state Save progress commit + checkpoint ask context window tool call read too long Legend Agent logic Policy Tool action Context / trace Cloud service External system

Context

  • • Skills load on demand

Control

  • • Permission check on every call

Durability

  • • Resume from saved state
© 2026 Samir Kumar Sahoo. All rights reserved.