Anatomy of a Coding Harness

Anatomy of a Coding Harness An architecture diagram generated by Archify. User / Goal · task and feedback · Architecture component User / Goal task and feedback Instructions · system and project rules · Harness runtime Instructions system and project rules Session State · history, results, summaries · Harness runtime Session State history, results, summaries Tool Surface · tools, MCP, extensions · Harness runtime Tool Surface tools, MCP, extensions Context Assembly · build next request · Harness runtime Context Assembly build next request Model Call · reason and propose actions · Harness runtime Model Call reason and propose actions Policy Gate · allow, ask, deny · Harness runtime Policy Gate allow, ask, deny Environment · files, shell, tests, APIs · Architecture component Environment files, shell, tests, APIs Response · progress or final answer · Harness runtime Response progress or final answer input rules state capabilities prompt tool calls actions results text answer Harness runtime Legend Frontend Backend Database Cloud Security External