Skip to main content

Naiyue Test Agent

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

主要功能

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

0.5.6 的更新与升级说明见版本说明。

远端沙箱支持直接 SSH 连接 Linux Docker,Windows 可复用 OpenSSH 和跳板机配置,无需安装 Docker CLI。当前使用预先准备的 key/ssh-agent;公司原机验收及普通密码后台认证尚未完成,准备步骤见远端 SSH 使用说明。Agent 0.5.6 的常驻通道与权限隔离需要配套新镜像,请从 0.5.6 Release 下载 Linux x64 离线镜像,包含 envd 0.5.5 与 AITest Kit 0.6.0;旧会话不自动迁移。

安装

需要 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 daemon 和兼容镜像。

配置模型

默认配置文件为 ~/.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.6

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.6
File Actions
naiyue_test_agent-0.5.6-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for naiyue_test_agent-0.5.6-py3-none-win_amd64.whl
naiyue_test_agent-0.5.6-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for naiyue_test_agent-0.5.6-py3-none-manylinux_2_17_x86_64.whl
naiyue_test_agent-0.5.6-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for naiyue_test_agent-0.5.6-py3-none-manylinux_2_17_aarch64.whl
naiyue_test_agent-0.5.6-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for naiyue_test_agent-0.5.6-py3-none-macosx_11_0_arm64.whl

Total release size: 17.4 MB

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

Download URL naiyue_test_agent-0.5.6-py3-none-win_amd64.whl
Size 4.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
681d522390c53636552b8955f95f16fd13aa5d3b988f1d3b01c330f2f756dd42
BLAKE2b-256 checksum
How to use checksums
ae0f6f4db6340c750ee0685037e776b5d5f89e3bce38731de137533b63809e86
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 Oct 30, 2026.

Transparency log

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

Download URL naiyue_test_agent-0.5.6-py3-none-manylinux_2_17_x86_64.whl
Size 4.8 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
c2eda55b3aeaf5f9b2de6834ea6b27e1fad4346d69e4000c3689099a3382518a
BLAKE2b-256 checksum
How to use checksums
eca80d45ec1e88d23c7c40155cee54f4f7be54c66a099d2ecc4b36b38d8ccaf5
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 Oct 30, 2026.

Transparency log

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

Download URL naiyue_test_agent-0.5.6-py3-none-manylinux_2_17_aarch64.whl
Size 4.3 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
ee24f6b07679d4b30a57b2ad80d3624463bdfbe80ef639e02a5ad857c38556ef
BLAKE2b-256 checksum
How to use checksums
d7c36d8462f785aba7a8a34dbc2efed17797b3c276202ea00cc8eaf6b089039a
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 Oct 30, 2026.

Transparency log

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

Download URL naiyue_test_agent-0.5.6-py3-none-macosx_11_0_arm64.whl
Size 4.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a38c484c5bb8ab5957280d1d51fbd789e3f92c102990962dc1157fb651bb7b50
BLAKE2b-256 checksum
How to use checksums
2e1e2017bda0e3c180dcbfe9534a828bc222dd2098f52fb303a320badd8128c4
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 Oct 30, 2026.

Transparency log

Security for naiyue-test-agent 0.5.6

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.6-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 Oct 30, 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