ChatPaper.aiChatPaper

터미널용 AI 코딩 에이전트 구축: 스캐폴딩, 활용, 컨텍스트 엔지니어링 및 교훈

Building AI Coding Agents for the Terminal: Scaffolding, Harness, Context Engineering, and Lessons Learned

March 5, 2026
저자: Nghi D. Q. Bui
cs.AI

초록

AI 코딩 지원의 환경은 복잡한 IDE 플러그인에서 다기능의 터미널 네이티브 에이전트로 근본적인 전환을 겪고 있습니다. 개발자가 소스 제어를 관리하고 빌드를 실행하며 환경을 배포하는 바로 그 위치에서 직접 운영되는 CLI 기반 에이전트는 장기간의 개발 작업에 있어 전례 없는 자율성을 제공합니다. 본 논문에서는 이러한 새로운 패러다임을 위해 특별히 설계된 오픈소스 명령줄 코딩 에이전트인 OPENDEV를 소개합니다. 효과적인 자율 지원을 위해서는 컨텍스트 비대증과 추론 성능 저하를 방지하기 위한 엄격한 안전 제어와 고효율 컨텍스트 관리가 필요합니다. OPENDEV는 워크로드 특화 모델 라우팅, 계획과 실행을 분리하는 이중 에이전트 구조, 지연 도구 발견, 그리고 오래된 관찰 내용을 점진적으로 축소하는 적응형 컨텍스트 압축을 포함한 복합 AI 시스템 아키텍처를 통해 이러한 과제를 극복합니다. 더 나아가, 세션 간 프로젝트별 지식을 축적하기 위한 자동화된 메모리 시스템을 활용하고 이벤트 기반 시스템 알림을 통해 지시 사항 소실을 방지합니다. 명시적인 추론 단계를 강제하고 컨텍스트 효율성을 우선시함으로써, OPENDEV는 터미널 우선 AI 지원을 위한 안전하고 확장 가능한 기반을 제공하며, 견고한 자율 소프트웨어 엔지니어링을 위한 청사진을 제시합니다.
English
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 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.
PDF62March 16, 2026