Building Effective AI Coding Agents for the Terminal: Scaffolding, Harness, Context Engineering, and Lessons Learned
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
The landscape of AI coding assistance is undergoing a fundamental shift from complex IDE plugins to versatile, terminal-native agents. Operating directly where developers manage source control, execute builds, and deploy environments, CLI-based agents offer unprecedented autonomy for long-horizon development tasks. In this paper, we present OPENDEV, an open-source, command-line coding agent written in Rust, engineered specifically for this new paradigm. Effective autonomous assistance requires strict safety controls and highly efficient context management to prevent context bloat and reasoning degradation. OPENDEV overcomes these challenges through a compound AI system architecture with workload-specialized model routing, a dual-agent architecture separating planning from execution, lazy tool discovery, and adaptive context compaction that progressively reduces older observations. Furthermore, it employs an automated memory system to accumulate project-specific knowledge across sessions and counteracts instruction fade-out through event-driven system reminders. By enforcing explicit reasoning phases and prioritizing context efficiency, OPENDEV provides a secure, extensible foundation for terminal-first AI assistance, offering a blueprint for robust autonomous software engineering.
Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 42 of its 115 references that are in the map. First posted on arXiv 5 Mar 2026.
Builds on
42 of 115 references.
Closest ancestors · 9
Same direction, newest first
- 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios20 Dec
- 2025Agentic Software Engineering: Foundational Pillars and a Research Roadmap7 Sep
- 2025Adaptive Self-improvement LLM Agentic System for ML Library Development4 Feb
- 2024HyperAgent: Generalist Software Engineering Agents to Solve Coding Tasks at Scale9 Sep
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
- 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution26 Mar
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb
Other references · 33
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Let's Verify Step by Stepcited by 3,789
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,075
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 923
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2023StarCoder: may the source be with you!cited by 799
- 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 682
21 more
- 2025Memory in the Age of AI Agentscited by 303
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 279
- 2023ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Modelscited by 184
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 171
- 2025Measuring AI Ability to Complete Long Software Taskscited by 156
- 2024Tree Search for Language Model Agentscited by 151
- 2025Scaling Long-Horizon LLM Agent via Context-Foldingcited by 148
- 2024Benchmark Data Contamination of Large Language Models: A Surveycited by 147
- 2025ACON: Optimizing Context Compression for Long-horizon LLM Agentscited by 136
- 2025A Survey of Context Engineering for Large Language Modelscited by 126
- 2025Establishing Best Practices for Building Rigorous Agentic Benchmarkscited by 102
- 2024CodeR: Issue Resolving with Multi-Agent and Task Graphscited by 91
- 2023TaskWeaver: A Code-First Agent Frameworkcited by 86
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Recordscited by 78
- 2025FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementationcited by 58
- 2026A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective Agentscited by 50
- 2026Meta Context Engineering via Agentic Skill Evolutioncited by 49
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugscited by 22
- 2023CodeTF: One-stop Transformer Library for State-of-the-art Code LLMscited by 21
- 2025Context Engineering 2.0: The Context of Context Engineeringcited by 18
- 2025ReplicationBench: Can AI Agents Replicate Astrophysics Research Papers?cited by 11
Built on by
Citing papers per year: 2026: 18.
18 papers.
Sort:
By area:
- 2026Natural-Language Agent Harnessescited by 61
- 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skillscited by 20
- 2026Crafter: A Multi-Agent Harness for Editable Scientific Figure Generation from Diverse Inputscited by 9
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Taskscited by 8
- 2026Effective Harness Engineering for Algorithm Discovery with Coding Agentscited by 6
- 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Trainingcited by 4
- 2026Learning When to Remember: Risk-Sensitive Contextual Bandits for Abstention-Aware Memory Retrieval in LLM-Based Coding Agentscited by 3
- 2026Agentic Coding Needs Proactivity, Not Just Autonomycited by 3
- 2026Harnesses for Inference-Time Alignment over Execution Trajectoriescited by 2
- 2026Autonomous heterogeneous catalyst discovery with a self-evolving multi-agent digital twincited by 2
- 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agentscited by 2
- 2026Environment Evolution for Terminal Agentscited by 2
6 more
- 2026Towards an Agent Operating System - Lessons from Classical and Cloud OScited by 1
- 2026Harness the Memory: A Holistic Evaluation of Memory Substrates in Memory Agentscited by 1
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environmentscited by 1
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agentscited by 0
- 2026PrimeAgentOrchestrator: Memory-Primed Agent Spawning for Personal AI Infrastructurecited by 0
- 2026When Agents Act Unwatched: The Reduced-Supervision Paradox in Agentic AIcited by 0
- 2026Environment Evolution for Terminal Agents3 Sep 2026
- 2026When Agents Act Unwatched: The Reduced-Supervision Paradox in Agentic AI28 Aug 2026
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environments20 Aug 2026
- 2026Harness the Memory: A Holistic Evaluation of Memory Substrates in Memory Agents15 Aug 2026
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Tasks6 Aug 2026
- 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Training30 Jul 2026
- 2026Towards an Agent Operating System - Lessons from Classical and Cloud OS27 Jul 2026
- 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agents20 Jul 2026
- 2026Autonomous heterogeneous catalyst discovery with a self-evolving multi-agent digital twin3 Jun 2026
- 2026Crafter: A Multi-Agent Harness for Editable Scientific Figure Generation from Diverse Inputs28 May 2026
- 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skills20 May 2026
- 2026Harnesses for Inference-Time Alignment over Execution Trajectories15 May 2026
6 more
- 2026Effective Harness Engineering for Algorithm Discovery with Coding Agents13 May 2026
- 2026PrimeAgentOrchestrator: Memory-Primed Agent Spawning for Personal AI Infrastructure8 May 2026
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agents8 May 2026
- 2026Agentic Coding Needs Proactivity, Not Just Autonomy7 May 2026
- 2026Learning When to Remember: Risk-Sensitive Contextual Bandits for Abstention-Aware Memory Retrieval in LLM-Based Coding Agents30 Apr 2026
- 2026Natural-Language Agent Harnesses26 Mar 2026
- 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skillscited by 20
- 2026Effective Harness Engineering for Algorithm Discovery with Coding Agentscited by 6
- 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Trainingcited by 4
- 2026Learning When to Remember: Risk-Sensitive Contextual Bandits for Abstention-Aware Memory Retrieval in LLM-Based Coding Agentscited by 3
- 2026Agentic Coding Needs Proactivity, Not Just Autonomycited by 3
- 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agentscited by 2
- 2026Environment Evolution for Terminal Agentscited by 2
- 2026Towards an Agent Operating System - Lessons from Classical and Cloud OScited by 1
- 2026Harness the Memory: A Holistic Evaluation of Memory Substrates in Memory Agentscited by 1
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environmentscited by 1
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agentscited by 0
- 2026PrimeAgentOrchestrator: Memory-Primed Agent Spawning for Personal AI Infrastructurecited by 0
12 most cited of 13 All 13 (JSON)
- 2026Environment Evolution for Terminal Agents3 Sep 2026
- 2026When Agents Act Unwatched: The Reduced-Supervision Paradox in Agentic AI28 Aug 2026
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environments20 Aug 2026
- 2026Harness the Memory: A Holistic Evaluation of Memory Substrates in Memory Agents15 Aug 2026
- 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Training30 Jul 2026
- 2026Towards an Agent Operating System - Lessons from Classical and Cloud OS27 Jul 2026
- 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agents20 Jul 2026
- 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skills20 May 2026
- 2026Effective Harness Engineering for Algorithm Discovery with Coding Agents13 May 2026
- 2026PrimeAgentOrchestrator: Memory-Primed Agent Spawning for Personal AI Infrastructure8 May 2026
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agents8 May 2026
- 2026Agentic Coding Needs Proactivity, Not Just Autonomy7 May 2026
12 newest of 13 All 13 (JSON)
- 2026Natural-Language Agent Harnessescited by 61
- 2026Crafter: A Multi-Agent Harness for Editable Scientific Figure Generation from Diverse Inputscited by 9
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Taskscited by 8
- 2026Harnesses for Inference-Time Alignment over Execution Trajectoriescited by 2
- 2026Autonomous heterogeneous catalyst discovery with a self-evolving multi-agent digital twincited by 2
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Tasks6 Aug 2026
- 2026Autonomous heterogeneous catalyst discovery with a self-evolving multi-agent digital twin3 Jun 2026
- 2026Crafter: A Multi-Agent Harness for Editable Scientific Figure Generation from Diverse Inputs28 May 2026
- 2026Harnesses for Inference-Time Alignment over Execution Trajectories15 May 2026
- 2026Natural-Language Agent Harnesses26 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026Understanding the Architecture of Coding Agents: An Exploratory Study Using a Research Prototype
- 2026SDAD: Spec-Driven Agentic Development for the AI-Native SDLC
- 2025The Rise of AI Teammates in Software Engineering (SE) 3.0: How Autonomous Coding Agents Are Reshaping Software Engineering
- 2026openJiuwen: Beyond Static Harnesses for Long-Horizon Coding Agents
- 2025NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents
- 2026Harness Engineering for Agentic AI Coding Tools: An Exploratory Study
- 2026Dive into Claude Code: The Design Space of Today's and Future AI Agent Systems
- 2026Harness-of-Harness: Multi-Day Autonomous Software Development with Continual Improvement