peda-cos

Terminal Native Coding Agent — Development skill for Claude Code

Development community

Terminal-Native Coding Agent — By 2026 the shape of a coding agent is settled.

How to install Terminal Native Coding Agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open peda-cos/terminal-native-coding-agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Terminal Native Coding Agent does

Terminal-Native Coding Agent — By 2026 the shape of a coding agent is settled. A TUI harness, a stateful plan, a sandboxed tool surface, a loop that plans, acts, observes, recovers. Claude Code, Cursor 3, and OpenCode all look the same from 50 feet. This capstone asks you to build one end to end — C

Alternatives in Development

  • Om Tidy — Self-maintenance pass — acts on every hygiene flag: archives completed work, groups loose clusters, splits ove 4.6k ★
  • AgentHandover — What if OpenClaw, Claude Code, Codex etc. knew how to do your work without you saying it 600 ★
  • Prompt Sensei — Local-first prompt coach for Claude Code and Codex that improves prompts, observes prompting habits, and analy 107 ★

README

Terminal-Native Coding Agent

A local-first implementation of the 2026 coding-agent shape: a typed plan the model rewrites each turn, a permissioned tool surface over MCP StreamableHTTP, a disposable git worktree, eight lifecycle hooks, hard turn/context/cost ceilings, GenAI traces, crash recovery, and a PR at the end.

The harness is model-agnostic. A deterministic scripted policy drives every offline test and the evaluation; an OpenAI-compatible adapter drives OpenRouter (or any compatible endpoint) when a key is provided.

Measured locally

The 30-task local holdout below is **not** SWE-bench Pro and the scripted policy is **not** an LLM. It measures harness mechanics and overhead under a fixed policy, not frontier-model capability. Each passing branch was independently checked out by the evaluator and its tests rerun.

Agent pass@1 passed mean turns mean tool calls tokens cost / task total cost
This harness 1.00 30/30 7.0 6.0 168,023 $0.022639 $0.679173
Minimal bash baseline 1.00 30/30 4.0 4.0 24,193 $0.003726 $0.111783

Costs use $3/MTok input and $15/MTok output. They are token-derived estimates, not provider invoices. On these one-function tasks both policies hit the ceiling: the plan, structured tools, sandbox, MCP hop, and verification cost three extra turns and about 6x the tokens. That is the architecture tax this project makes visible; it is not evidence of a pass@1 advantage.

Other measured values on this workstation:

  • bun src/cli.ts --help cold start: 0.016–0.018 s across five runs.
  • Full offline demo (7 turns, sandbox, MCP server, verification, commit): 0.27 s wall time.
  • ./verify.sh: typecheck, 74 unit tests, 30-task corpus integrity, committed eval validation, and a three-task end-to-end smoke.

Architecture

CLI (Ink split view or plain stream)
  |
  v
runAgent: plan -> act -> observe -> recover
  |        |                |