Simon Willison 发布 llm-coding-agent 0.1a0,基于其 llm 框架构建的开源 Python CLI 编程代理
英文摘要
Simon Willison released llm-coding-agent 0.1a0, an early alpha Python library that provides a Claude Code-style coding agent. The agent includes file read/edit/write tools, regex search, file listing, and shell command execution, all built on the developer's llm alpha tool-use framework. It is available on PyPI and can be invoked via `uvx --prerelease=allow --with llm-coding-agent llm code`, with a `--yolo` flag for automatic approval. A Python API exposes a `CodingAgent(model, root, approve).run(prompt)` class. A demo generated a SwiftUI CLI app that prints an ASCII-art clock.
中文摘要
Simon Willison 发布了 llm-coding-agent 0.1a0,这是一个早期 alpha 版 Python 库,提供了类似 Claude Code 风格的编程代理。该代理内置文件读取/编辑/写入、正则搜索、文件列表和 Shell 命令执行等工具,全部构建在其 llm alpha 工具使用框架之上。它已发布到 PyPI,可通过 `uvx --prerelease=allow --with llm-coding-agent llm code` 调用,并提供 `--yolo` 自动批准标志。同时底层的 Python API 暴露了 `CodingAgent(model, root, approve).run(prompt)` 类。演示中它生成了一个能打印 ASCII 艺术时钟的 SwiftUI 命令行应用。
关键要点
llm-coding-agent 0.1a0 implements a Claude Code-style coding agent with tools for file editing, command execution, and file search.
llm-coding-agent 0.1a0 实现了带有文件编辑、命令执行和文件搜索工具的 Claude Code 风格编程代理。
The agent is built on Willison's llm alpha framework and can be installed via `uvx --prerelease=allow --with llm-coding-agent llm code`.
该代理基于 Willison 的 llm alpha 框架,可通过 `uvx --prerelease=allow --with llm-coding-agent llm code` 安装。
It includes a Python API class `CodingAgent` and supports auto-approval with `--yolo` flag.
它包含 Python API 类 `CodingAgent`,并支持通过 `--yolo` 标志自动批准操作。
A demo task successfully created a SwiftUI CLI ASCII clock app following a natural-language prompt.
在一项演示任务中,它根据自然语言提示成功创建了一个 SwiftUI 命令行 ASCII 艺术时钟应用。