OpenParable
Skip to content
← Back to skills

Terminal Agent Improvement Loop

Agent Building
terminal-agent-improvement-loop

Terminal Agent Improvement Loop is an Agent Skill for agent building published in the nowledge-co/con-terminal repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Run a benchmark-driven improvement loop for Con's terminal agent. Use when iterating on pane awareness, SSH/tmux behavior, coding-cli flows, benchmark scoring, or progress tracking across many runs.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/nowledge-co/con-terminal/blob/HEAD/skills/terminal-agent-improvement-loop/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/terminal-agent-improvement-loop, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Terminal Agent Improvement Loop

Use this skill when improving Con as a terminal-native agent, not just fixing a one-off bug.

Primary references:

Workflow

  1. Choose the smallest operator profile that matches the problem.
  2. Run the benchmark on an idle tab:
    • python3 benchmarks/terminal-agent/run.py --profile operator-local-codex-devloop --suite operator
    • for repeated clean iterations, prefer python3 benchmarks/terminal-agent/iterate.py ...
  3. Score the resulting run with the matching rubric:
    • python3 benchmarks/terminal-agent/score.py --profile ... --record ... --score ...
    • or ask the built-in agent to judge the raw record and transcript first: python3 benchmarks/terminal-agent/judge_llm.py --profile ... --record ... --socket /tmp/con.sock
    • then turn that judge artifact into a normal scorecard: python3 benchmarks/terminal-agent/score.py --profile ... --record ... --judge-file ...
  4. Record one short summary, a few lessons, and a few next-focus bullets in the score record.
  5. Append the scorecard to the tracked improvement log:
    • python3 benchmarks/terminal-agent/log_iteration.py --scorecard ... --change "..."
  6. Make one focused product change.
  7. Re-run the same operator profile.
  8. Generate a report when you need to inspect trend:
    • python3 benchmarks/terminal-agent/report.py

Rules

  • Use strict suites to protect the floor and operator suites to judge real workflows.
  • Prefer operator profiles that start a fresh conversation and have bounded step timeouts.
  • Prefer typed control-plane improvements over prompt-only fixes.
  • Do not overfit to a single benchmark phrase or one host layout.
  • Keep unknowns honest when the backend cannot prove more.
  • When benchmark infra changes, say whether the product improved or the measurement improved.
  • Keep iteration notes concise and comparable across runs.
  • Keep docs/impl/terminal-agent-improvement-log.md useful to a human reader; it should explain what changed, not just repeat the numeric score.
  • If you use the LLM judge, feed it the raw record and transcript, not only the generated report. The report is a summary, not primary evidence.