Naiyue Test Agent
本地运行的通用编程与测试 Agent,提供浏览器界面和终端交互。通过配置的模型、项目提示词、Skills 和工具读取项目、修改文件、执行命令,并保留会话历史。
主要功能
- Web 与终端:流式回复、工具执行过程、权限审批、停止、引导和跟进消息。
- 多项目与会话:在同一界面添加和切换项目,各项目保留独立会话与草稿;Web 和 CLI 共用本机服务。
- 本机缓存清理:在左下角「本机设置 → 清理缓存」手动选择类别。工具输出归档默认保留 7 天,云输入包缓存默认保留 3 天。清理后,会话历史仍可查看,已清掉的详细输出无法再次读取。遇到跳过或失败,可按明细中的原因处理后重新发起。浏览器断线后可在同一服务实例内查询原结果,服务重启后旧结果可能无法确认。
- 图片输入:粘贴截图、拖入或选择图片,支持多图、仅图发送及历史预览;需要模型明确支持图片输入。
- 文件与命令工具:Read、Ls、Find、Grep、Write、Edit、Bash、PowerShell,支持跨轮后台命令及输出查看、停止。
- 子 Agent:委派任务,并按需沿已有子实例的上下文继续工作。
- 历史与记忆:查询项目会话历史,维护项目和个人记忆;支持会话保存、迁移前备份与显式还原。
- 外部集成:MCP、网页搜索与抓取、AITest 工具,以及项目 Skills。
- 云端任务:从主输入框加号菜单新建或续聊独立任务;云端Coordinator/Runner执行;新任务无需Git基线,在对话中上传文件,按提示词使用材料,结果窗口可预览普通产物并保存到本地,主 Agent 可通过
cloud_result查询关联任务和下载产物。已开始的云端运行不依赖浏览器保持打开。
0.5.13 修复旧项目会话变为只读的问题,删除会话时显示等待与具体失败原因,并补充云端连接日志。升级与验证
0.5.12 增加模型配置刷新、上下文用量校准与本机手动清理缓存,云端交付使用文件成果,新 Runner 模板搭配 AITest Kit 0.7.0。升级与配置
0.5.11 支持本机和云端为每个 MCP 服务分别配置认证头。云端 Runner 沿用直连或 Windows 隧道。升级与验收
0.5.10 支持本机一键刷新 MCP、云端 MCP 直连和 Windows 中转。任务附件支持批量混选文件和文件夹,云端详情可折叠,项目移除入口位于项目右键菜单。升级与验收
0.5.9发布云端文件与统一连接配置:空任务、对话附件、20GiB传输预算、下一轮待发送消息和直接产物下载;Windows使用一份connections.json。
0.5.9将服务入口扩展为通用TCP列表;配置与迁移见服务隧道手册。
0.5.9 新增项目移除能力,确认后从列表移除登记,保留磁盘文件、本地历史数据库和归档;缺失目录也可移除。有运行、审批、恢复、后台工作或仍保留的云端任务关联时,会提示先处理。请求结果不确定时可核对原操作。移除后的历史不会继续显示在列表,重新添加目录不承诺自动恢复旧历史。
0.5.8新增2GiB项目输入、目录选择与个人服务隧道。Linux/Windows升级及页面操作见0.5.8指南,详细网络说明见服务隧道。
0.5.7 的更新与升级说明见版本说明,两端启动及相对0.5.6的配置差异见启动与迁移。
0.5.7将正式云端入口切换为独立任务链,普通主会话在本机运行。Windows通过预先配置的OpenSSH连接云端管理服务,无需本机Docker CLI;Linux侧使用独立Coordinator、OpenSandbox及受信Runner模板。首次准备见Windows+Linux手册,结果操作见结果取回。
旧环境配置、按会话Docker执行及旧sandbox会话已不再支持;程序不会迁移或清理旧数据、卷或镜像。已有配置中的[sandbox]/[delivery]及MCP的allow_sandbox需要用户手动移除,本机服务协议已升级为2,升级前应先用旧版CLI或旧服务原入口显式关闭旧服务,再启动新版;已升级时仍用旧服务原入口停服,新版不会兼容接管旧协议。旧S09/S11候选仍按各自SHA核验,不与正式0.5.7产物混用。
显式云端更新、Windows通过SSH触发、维护和已有任务换代见更新说明。本机代码/受控进程验证与原机验收分别记录。
安装
需要 Python 3.12.4 或更高版本。支持 macOS Apple Silicon、Linux x86_64 / ARM64(glibc)和 Windows x64。
建议使用独立虚拟环境:
python -m venv .venv
- macOS / Linux:
source .venv/bin/activate - Windows PowerShell:
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install naiyue-test-agent
nyt --version
发行包已包含构建后的前端及 Find/Grep 使用的 fd / rg,使用时无需 Node.js、npm 或 Rust。纯本机使用无需 Docker;云端执行需要在开发机准备 Docker/OpenSandbox 后端及通过预检的Runner模板。
配置模型
默认配置文件为 ~/.naiyue-test-agent/models.json;Windows 对应 %USERPROFILE%\.naiyue-test-agent\models.json。也可以用 --config 指定文件。
编辑并保存该文件后,可以在网页左上角打开模型菜单,点击「刷新模型配置」。刷新成功后,后续请求使用新配置。如果配置读取失败,服务会保留上一次可用配置。有会话或后台记忆任务正在运行时,可等待结束后重新点击。若旧会话所选模型或推理档位已失效,可以在模型菜单改选后继续。
以下为兼容 OpenAI 接口的配置示例,请替换地址、密钥和模型名称:
{
"schema_version": 1,
"default_model_id": "main",
"providers": {
"gateway": {
"kind": "openai_compatible",
"base_url": "https://example.invalid/v1",
"api_key": "<your-api-key>"
}
},
"models": {
"main": {
"provider_id": "gateway",
"model": "<your-model-name>",
"api": "chat_completions"
}
}
}
支持 OpenAI、兼容 OpenAI 的接口、Anthropic 和 Ollama。OpenAI / 兼容接口的 api 可选 chat_completions 或 responses,须与服务能力一致。
思考、视觉能力、工具参数流式及超时配置见模型配置示例;工具、权限、代理、后台任务、图片额度和沙箱模板见应用设置示例。凭证由用户自行配置,不随安装包提供。
启动 Web
nyt
在浏览器中打开终端输出的本地链接。首次使用项目时按提示确认目录与信任,也可以在界面中选择已有文件夹或创建新文件夹。新建会话时,在输入框上沿选择项目及执行环境。
nyt --workspace /path/to/project
nyt --config /path/to/models.json
nyt --settings /path/to/settings.toml
nyt --help
默认监听回环地址并自动选择端口。访问链接包含服务凭证,请妥善保管。关闭网页或启动器不会结束共享服务和持久任务;同一会话同一时间只接受一个运行。
共享服务在后台运行。正常退出服务、查看服务端警告和错误日志:
nyt service stop
nyt service logs
nyt service logs --follow
stop 会请求当前配置对应的服务正常收尾;若未运行服务,不会为了退出而启动新服务。查看日志时按 Ctrl+C 只退出日志查看,不会停止服务。默认日志文件为 ~/.naiyue-test-agent/data/service/service.log;若启动时使用了 --settings 或 --config,停服时也传入相同路径。日志命令使用相同的 --settings 定位对应数据目录的 service/service.log。浏览器自身的错误仍在浏览器开发者工具的 Console 中查看。
使用终端 CLI
nyt chat
nyt chat --workspace /path/to/project
nyt projects
nyt chat --project <project-uuid>
nyt chat --resume
nyt chat --help
常用交互命令::quit 退出、:stop 停止、:approve / :deny 处理审批、:tasks 查看后台任务。更多命令以终端帮助和提示为准。
权限与数据
本机工具以当前用户权限执行,Shell 和外部工具受工具开关、权限规则及审批控制。Docker 沙箱的文件和进程在独立环境执行,MCP 等外部集成仍按各自配置工作。沙箱结果须经审查和确认才交付到本机,销毁环境也需单独确认。
会话和记忆保存在本机;使用远程模型时,消息、图片和工具结果会发送给所配置的供应商。重新生成会再次执行任务及其工具,已有文件修改不会自动回滚。升级前请先正常结束旧版服务,具体步骤见 0.5.0 版本说明。
使用文档
开发与发行
源码开发需安装 requirements.txt 和 requirements-web.txt,并在 PATH 中提供 rg / fd。前端使用 frontend/ 下的 npm 配置。
完整测试、四平台构建、安装验证和标签发布流程见发行指南。
许可证
MIT。
Metadata
Release files for naiyue-test-agent 0.5.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| naiyue_test_agent-0.5.13-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for naiyue_test_agent-0.5.13-py3-none-win_amd64.whl |
| naiyue_test_agent-0.5.13-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for naiyue_test_agent-0.5.13-py3-none-manylinux_2_17_x86_64.whl |
| naiyue_test_agent-0.5.13-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for naiyue_test_agent-0.5.13-py3-none-manylinux_2_17_aarch64.whl |
| naiyue_test_agent-0.5.13-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for naiyue_test_agent-0.5.13-py3-none-macosx_11_0_arm64.whl |
Total release size: 19.2 MB
Release files / naiyue_test_agent-0.5.13-py3-none-win_amd64.whl
| Download URL | naiyue_test_agent-0.5.13-py3-none-win_amd64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2183f3628b72fc9c7f1f38e8bc1660475808fef5c09e25a490ea9e5a391ac013
|
|
BLAKE2b-256 checksum How to use checksums |
cb3ac8a990d684d4a519dbb1668395f0929fc33187fae3feb325abdf7c1c863f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / naiyue_test_agent-0.5.13-py3-none-manylinux_2_17_x86_64.whl
| Download URL | naiyue_test_agent-0.5.13-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 5.2 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
dafca1dd0b31fabce849fff94d088e1eaa362d3faf43ac17e2b1b9411f0f0697
|
|
BLAKE2b-256 checksum How to use checksums |
618215443b1d06e9480948840eb16f33baffb798a844a404bbc3aeac71a6ddf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / naiyue_test_agent-0.5.13-py3-none-manylinux_2_17_aarch64.whl
| Download URL | naiyue_test_agent-0.5.13-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
d251c2692d08eacab205055eaec629668227fa36e972236067ae64f78a1b7648
|
|
BLAKE2b-256 checksum How to use checksums |
1a1d65168c999a41821b3d2b5ee0a973d868d935322a95bd635b0b3208821615
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / naiyue_test_agent-0.5.13-py3-none-macosx_11_0_arm64.whl
| Download URL | naiyue_test_agent-0.5.13-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e6016a3cd8b7bc103635478c58992e86bcbe554e79364ed8053d81badf7c971a
|
|
BLAKE2b-256 checksum How to use checksums |
8889180ee6e89b13456a3c210ab26b5006ef520640986912acf614f70ae31b6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for naiyue-test-agent 0.5.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for naiyue_test_agent-0.5.13-py3-none-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.