aungkokothet

CodingAgentHarnessDemo — AI skill for Claude Code

AI community

Interactive simulator for visualizing agentic coding loops behind Claude Code and Codex — model decisions, harness control, tool execution, results, and loop termination.

How to install CodingAgentHarnessDemo

This entry records only its repository, not the path inside it, so there is no exact command to give. Open aungkokothet/CodingAgentHarnessDemo and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What CodingAgentHarnessDemo does

Interactive simulator for visualizing agentic coding loops behind Claude Code and Codex — model decisions, harness control, tool execution, results, and loop termination.

Alternatives in AI

  • Ralphex — Extended Ralph loop for autonomous AI-driven plan execution 1.1k ★
  • Agentrq — AgentRQ: Human-in-loop realtime conversational task manager for AI Agents 1.1k ★
  • Lighthouse MCP — Allows AI assistants such as Amp/Cline/Cursor/Claude Code/Codex/GitHub Copilot to use Google's lighthouse tool 214 ★

README

Coding Agent Harness Demo

An interactive, dependency-free learning simulator for **CCA-F Domain 1, Task 1.1 — Agentic Loops**.

The demo focuses on one core pattern:

**Model decides → Harness controls → Tool executes → Result returns → Model decides again**

It shows how a coding-agent request travels through a VS Code-style interface, an agent harness, a model, and a tool/execution environment. The simulator makes it clear that the model proposes actions, while the harness owns the deterministic execution loop.

What the simulator teaches

  • The VS Code/chat UI is the presentation layer, not the harness.
  • The harness owns conversation state, tool coordination, validation, permissions, execution, and loop termination.
  • The model chooses from available tool schemas but never executes tools directly.
  • A tool request does not modify the repository; the change occurs only when the tool environment executes it.
  • Tool results are correlated and returned to the model so it can decide again.

Two comparison modes

Claude Messages API

This is the canonical CCA-F Task 1.1 flow:

  • stop_reason: "tool_use" → validate, execute, return tool_result, and continue.
  • stop_reason: "end_turn" → terminate the loop and return the final answer.
  • tool_use_id correlates the request with its result.

Codex — Responses API Loop Analogy

This mode illustrates an analogous control flow without claiming to reproduce the complete Codex IDE architecture:

  • A function_call output item → validate, execute, and continue.
  • A matching function_call_output returns the tool result using call_id.
  • A completed final response with no remaining function_call → terminate.

In the actual Codex IDE experience, the Codex harness manages the agent loop, state, tools, sandbox/approvals, and execution across turns.

Seven-step trace

  1. Harness sends the request, current state, and available tool schemas to the model.
  2. Model selects edit_file and returns a struct