Terminal Agent Improvement Loop
Agent Buildingterminal-agent-improvement-loopTerminal 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.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- 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:
benchmarks/terminal-agent/README.mddocs/impl/terminal-agent-benchmark.mddocs/impl/terminal-agent-improvement-loop.md
Workflow
- Choose the smallest operator profile that matches the problem.
- 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 ...
- 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 ...
- Record one short summary, a few lessons, and a few next-focus bullets in the score record.
- Append the scorecard to the tracked improvement log:
python3 benchmarks/terminal-agent/log_iteration.py --scorecard ... --change "..."
- Make one focused product change.
- Re-run the same operator profile.
- Generate a report when you need to inspect trend:
python3 benchmarks/terminal-agent/report.py
Rules
- Use
strictsuites to protect the floor andoperatorsuites 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.mduseful 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.