Skip to main content

Naiyue Test Agent

本地运行的通用编程与测试 Agent,提供浏览器界面和终端交互。通过配置的模型、项目提示词、Skills 和工具读取项目、修改文件、执行命令,并保留会话历史。

主要功能

  • Web 与终端:流式回复、工具执行过程、权限审批、停止、引导和跟进消息。
  • 多项目与会话:在同一界面添加和切换项目,各项目保留独立会话与草稿;Web 和 CLI 共用本机服务。
  • 图片输入:粘贴截图、拖入或选择图片,支持多图、仅图发送及历史预览;需要模型明确支持图片输入。
  • 文件与命令工具:Read、Ls、Find、Grep、Write、Edit、Bash、PowerShell,支持跨轮后台命令及输出查看、停止。
  • 子 Agent:委派任务,并按需沿已有子实例的上下文继续工作。
  • 历史与记忆:查询项目会话历史,维护项目和个人记忆;支持会话保存、迁移前备份与显式还原。
  • 外部集成:MCP、网页搜索与抓取、AITest 工具,以及项目 Skills。
  • 云端任务:从主输入框加号菜单新建或续聊独立任务;云端Coordinator/Runner执行,本机可离线,结果可保存报告、应用代码或交给主Agent分析。

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.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for naiyue-test-agent 0.5.8
File Actions
naiyue_test_agent-0.5.8-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for naiyue_test_agent-0.5.8-py3-none-win_amd64.whl
naiyue_test_agent-0.5.8-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for naiyue_test_agent-0.5.8-py3-none-manylinux_2_17_x86_64.whl
naiyue_test_agent-0.5.8-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for naiyue_test_agent-0.5.8-py3-none-manylinux_2_17_aarch64.whl
naiyue_test_agent-0.5.8-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for naiyue_test_agent-0.5.8-py3-none-macosx_11_0_arm64.whl

Total release size: 18.5 MB

Release files / naiyue_test_agent-0.5.8-py3-none-win_amd64.whl

Download URL naiyue_test_agent-0.5.8-py3-none-win_amd64.whl
Size 4.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
996248eec3fb38b7df1230e794e7bc908453044457b3a9d25b3002c6058c8583
BLAKE2b-256 checksum
How to use checksums
015899bd78b931112f71d9b50c983e874c6774268e307bca01bac547c06f3cc3
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 4, 2026.

Transparency log

Release files / naiyue_test_agent-0.5.8-py3-none-manylinux_2_17_x86_64.whl

Download URL naiyue_test_agent-0.5.8-py3-none-manylinux_2_17_x86_64.whl
Size 5.0 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
b9fb9e456af721f093bf4cc0bb315dc3ff5230e2d748efef2ef4ea32145b2e6d
BLAKE2b-256 checksum
How to use checksums
49e64ad81d0c8a58d10c83663ab01b152ca40f0c34502decf2c63c2ffc5a58e1
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 4, 2026.

Transparency log

Release files / naiyue_test_agent-0.5.8-py3-none-manylinux_2_17_aarch64.whl

Download URL naiyue_test_agent-0.5.8-py3-none-manylinux_2_17_aarch64.whl
Size 4.6 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
6f825aadf79a1ead7a53eaecd064a35bf2a332c810a9f109fadcae7a4aca4a1c
BLAKE2b-256 checksum
How to use checksums
2bf3b77ed65711f325756fa016312b0e1ca85f33b8e8c341d87212fc14e0b581
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 4, 2026.

Transparency log

Release files / naiyue_test_agent-0.5.8-py3-none-macosx_11_0_arm64.whl

Download URL naiyue_test_agent-0.5.8-py3-none-macosx_11_0_arm64.whl
Size 4.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ec2d7acdda1b76860097f0aa41988d5066dbc2f53ae886085c63c72e99c11af7
BLAKE2b-256 checksum
How to use checksums
62890df544a526ef1bf611430e88f00456b2a456047c73f05110f61bedc088ce
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 4, 2026.

Transparency log

Security for naiyue-test-agent 0.5.8

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.

Select from 4 files

Attestation for naiyue_test_agent-0.5.8-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 4, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page