Configs2026年7月19日·1 分钟阅读

Devon — Open Source AI Pair Programmer

An open-source AI software engineering agent that works as a pair programmer, understanding codebases and implementing features or fixing bugs through natural language interaction with multiple LLM backends.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 29/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Stage only
信任
信任等级:Established
入口
Devon
安全暂存命令
npx -y tokrepo@latest install bdca63ca-830c-11f1-9bc6-00163e2b0d79 --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

Introduction

Devon is an open-source AI pair programmer that aims to be a capable software engineering agent. Unlike code completion tools, Devon can understand entire codebases, plan multi-step implementations, and execute changes across files while communicating its reasoning in natural language.

What Devon Does

  • Understands project structure and navigates codebases autonomously
  • Plans and implements multi-file code changes from natural language descriptions
  • Executes shell commands and interprets their output for debugging
  • Supports multiple LLM backends including OpenAI, Anthropic, Groq, and Ollama
  • Provides a conversational interface for iterative development guidance

Architecture Overview

Devon uses an agent loop architecture where the LLM receives context about the current codebase state, decides on actions (read file, edit file, run command), and executes them through tool interfaces. The system maintains a session with conversation history and file state. A sandboxed execution environment ensures shell commands run safely.

Self-Hosting & Configuration

  • Clone the repository and install with pip in a Python 3.10+ environment
  • Configure LLM provider via environment variables (OPENAI_API_KEY, ANTHROPIC_API_KEY)
  • Set the model in Devon's config (supports GPT-4, Claude, Llama via Ollama)
  • Run in a project directory to give Devon access to the codebase context
  • Session history is stored locally for context continuity

Key Features

  • Multi-file editing with coherent cross-file changes
  • Shell command execution for testing and debugging
  • Support for local LLMs via Ollama for privacy-sensitive codebases
  • Conversational interface for iterative refinement of implementations
  • Open-source with no usage limits or subscription fees

Comparison with Similar Tools

  • Aider — More mature terminal-based AI coder; Devon focuses on autonomous agent behavior
  • OpenHands — Broader autonomous agent; Devon is more focused on pair programming interaction
  • SWE-agent — Research-oriented for benchmark evaluation; Devon targets practical development use
  • Cline — VS Code extension approach; Devon is a standalone agent with broader action capabilities
  • Claude Code — Proprietary terminal agent; Devon is open-source and supports multiple LLMs

FAQ

Q: Which LLM models work best with Devon? A: GPT-4 and Claude provide the best results. Smaller models work for simple tasks but may struggle with complex multi-file changes.

Q: Can Devon run entirely offline? A: Yes, by configuring Ollama as the backend with a locally-running model like Llama or CodeLlama.

Q: Is it safe to let Devon execute shell commands? A: Devon runs commands in your terminal. Review the proposed commands before approving execution, especially for destructive operations.

Q: How does Devon handle large codebases? A: It uses selective file reading and context management to stay within LLM token limits. Very large monorepos may require guiding it to relevant directories.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产