Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pyxis-harness-auto-review

权限模式「自动审查」:带审批门的工具调用先由模型审查,放行的直接执行,其余的交给用户审批。

项 值
条目 auto-review(base bundle)
注入 agentLoop、llm
权限模式 auto-review;基于 workspace-write
来源 dsh 的 dsh-experimental-auto-review

文件

文件 内容
__init__.py 导出
plugin.py apply、Config、MODE:向 agent loop 贡献权限模式
middleware.py ReviewMiddleware、reviewed、review_of、note
review.py Review、parse、history、prompt、tool_schema
config.toml MODE、NOTES、HISTORY
prompts.toml 审查者的 system prompt

配置

键 默认 内容
model None 审查用的模型;None:被审调用所在请求的模型
timeout 60.0 一次审查的时限(秒)

ctx.autoReview:生效中的配置对象;settings API 就地修改 model,下一次审查起生效。

流程

步骤 契约
模型回复 ReviewMiddleware.awrap_model_call:逐个审查回复里带审批门的工具调用
审查范围 工具有审批门,且审批门自己的 when 为真;其余调用不审
审查请求 每个调用一次模型请求,顺序执行,标记 nostream
记录 AI 消息的 additional_kwargs["pyharness"] = {"kind": "auto-review", "reviews": {调用 id: 记录}}
运行事件 tool_review:id、name 与记录的字段
审批门 reviewed:记录为 allow 时不中断;其余照常中断
审批卡片 描述以审查结论开头(NOTES),其后是审批门自己的描述
恢复运行 审批门重新求值时读同一条记录

记录

结果 字段
放行 decision: allow、risk
拒绝 decision: deny、risk、reason?
失败 decision: deny、error:超时、模型错误、回复不是合法结论
risk decision
low allow
medium allow、deny
high deny

审查输入

一个 JSON 对象:environment、history、tool、pending。

会话消息 history 的条目
用户输入的消息 user-instruction;去掉附件块
子 agent 的第一条消息 parent-instruction
harness 写入的消息(压缩检查点、重启续跑) checkpoint
AI 消息的工具调用 fact
AI 消息的正文与推理、工具结果、system prompt 无
HISTORY 内容
items 条目数上限;保留最近的
text_chars 一条文本的字符上限
args_chars 一次历史调用参数的字符上限

图

对象 处理
主 agent 审批门换成 reviewed;加入 ReviewMiddleware
声明式子 agent 继承主 agent 的审批门;加入 ReviewMiddleware(subagent=True)
自带 interrupt_on、已编译或远程的子 agent 不变
没有审批门的图 不变

边界

项 契约
没有审查记录的调用 照常中断
新会话的默认模式 base bundle 的 agent-loop.default_mode;本插件不在时回到 workspace-write
无人值守 pyh exec --mode auto-review --approvals reject:未放行的调用被拒绝,运行继续
审批时限 agents 的 approval_timeout:未放行的调用到期被拒绝
轮次统计 不含审查的模型请求

Metadata

Release files for pyxis-harness-auto-review 0.1.1.dev9

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

Source distribution (sdist)

Source distribution for pyxis-harness-auto-review 0.1.1.dev9
File Size Uploaded Provenance Actions
pyxis_harness_auto_review-0.1.1.dev9.tar.gz 9.8 kB Without provenance Details for pyxis_harness_auto_review-0.1.1.dev9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyxis-harness-auto-review 0.1.1.dev9
File Interpreter ABI Platform Actions
pyxis_harness_auto_review-0.1.1.dev9-py3-none-any.whl Python 3 none any Details for pyxis_harness_auto_review-0.1.1.dev9-py3-none-any.whl

Total release size: 24.3 kB

Release files / pyxis_harness_auto_review-0.1.1.dev9.tar.gz

Download URL pyxis_harness_auto_review-0.1.1.dev9.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
15d31f9654591b70eace50b917b8640bd0423602d3e534c89c7f370921da0ef7
BLAKE2b-256 checksum
How to use checksums
6157c16cf8f6b1bf8caa7c5323a65e27e99e8601e09dac044379870d8c80b470
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pyxis_harness_auto_review-0.1.1.dev9-py3-none-any.whl

Download URL pyxis_harness_auto_review-0.1.1.dev9-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86361145d2c8cae55604c134093ac41d83724b693bf28899f3826b69649624b7
BLAKE2b-256 checksum
How to use checksums
770d232515bd41b004ee2b773f8a97c8f867bb46965efb2c5539d2453f86938c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for pyxis-harness-auto-review 0.1.1.dev9

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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