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

默认监听回环地址并自动选择端口。访问链接包含服务凭证,请妥善保管。关闭网页或启动器不会结束共享服务和持久任务;同一会话同一时间只接受一个运行。

使用终端 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.0

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

Total release size: 17.2 MB

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

Download URL naiyue_test_agent-0.5.0-py3-none-win_amd64.whl
Size 4.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
17c72904e18a406d98cb71d64e1dfbeffdc77ee1b45526540d279070e1d8cb1e
BLAKE2b-256 checksum
How to use checksums
e86b854389af5cd3d3988507f9fbe595c4cfc18fa6d106e3be361e446d4e8e29
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 27, 2026.

Transparency log

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

Download URL naiyue_test_agent-0.5.0-py3-none-manylinux_2_17_x86_64.whl
Size 4.7 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
67c853c7d4756ed07f95db2f9f89a3b643a1a43c80d84e880cb48bbc96a62bf7
BLAKE2b-256 checksum
How to use checksums
d9289b1b8c35fba74fb6f2e811a8f5e3c3f86bc2e083bd69a495bec904635b65
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 27, 2026.

Transparency log

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

Download URL naiyue_test_agent-0.5.0-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
88d03b93fa1416a4623357a3b7a9cc78940f822a648f38a1c798cdc148ed00d0
BLAKE2b-256 checksum
How to use checksums
baeb2007df946a57491f352a607a123bef7f8787da6d32964d2fc45e67008ecf
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 27, 2026.

Transparency log

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

Download URL naiyue_test_agent-0.5.0-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
df7b32d522f5a7d72ff1a18a820d58c237eebf35d657433cc94cf319e4898d44
BLAKE2b-256 checksum
How to use checksums
6f4b1884280628d8277a419c1bd97333607ae607aee2cb9d5f8788f5ab78ffa4
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 27, 2026.

Transparency log

Security for naiyue-test-agent 0.5.0

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.0-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 27, 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