Building Effective AI Coding Agents for the Terminal: Scaffolding, Harness, Context Engineering, and Lessons Learned
Nghi D. Q. Bui

TL;DR
This paper introduces OPENDEV, a Rust-based terminal AI coding agent that enhances autonomous developer assistance through advanced context management, safety controls, and a modular architecture tailored for long-horizon tasks.
Contribution
It presents a novel architecture for terminal-native AI coding agents, including context compaction, workload routing, and memory systems, addressing safety and efficiency challenges.
Findings
OPENDEV demonstrates effective long-term project assistance.
The system maintains context efficiency and safety during autonomous operation.
Adaptive context management improves reasoning accuracy over sessions.
Abstract
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.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsContext-Aware Activity Recognition Systems · Advanced Software Engineering Methodologies · Personal Information Management and User Behavior
