workbench-flue-agent-harness
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWorkbench Flue Agent Harness
Workbench Flue Agent Harness
Use this skill when an issue asks to create, review, or package a deployable
Flue agent, or when it declares .
FLUE_AGENT_CONTRACT当任务要求创建、评审或打包可部署的Flue Agent,或者任务中声明了时,使用本技能。
FLUE_AGENT_CONTRACTRequired Source Reads
必要的源文件读取
Read only as much as the task requires:
docs/flue-agent-harness-lane.mdhttps://flueframework.com/start.mdhttps://raw.githubusercontent.com/withastro/flue/refs/heads/main/README.md- if the requested model is not one of the recommended IDs
https://flueframework.com/models.json
If network access is unavailable, use the checked-in workbench doc and report
unless the issue requires fresh upstream docs.
FLAG仅读取任务所需的内容:
docs/flue-agent-harness-lane.mdhttps://flueframework.com/start.mdhttps://raw.githubusercontent.com/withastro/flue/refs/heads/main/README.md- 如果请求的模型不在推荐ID列表中,读取
https://flueframework.com/models.json
如果无法访问网络,使用已签入的工作台文档,并返回,除非任务需要最新的上游文档。
FLAGRequired Contract
必要的合约信息
Do not scaffold until the issue provides or you can safely infer:
yaml
FLUE_AGENT_CONTRACT:
purpose:
project_directory:
workspace_layout:
agent_file:
deploy_target:
model_id:
sandbox_mode:
trigger:
secrets_policy:
validation_command:
public_artifact_policy:Inference rules:
- missing : use the issue's repo checkout only if it is the declared target;
project_directory - new or empty directory: ;
workspace_layout: root - existing non-empty directory: ;
workspace_layout: .flue - missing deploy target: prefer ;
node - missing model: prefer for starter agents;
anthropic/claude-sonnet-4-6 - missing secrets policy: use for pure virtual agents, otherwise
none.env-only
If a field cannot be inferred safely, return with the smallest missing
field list.
BLOCK在任务提供或你可以安全推断出以下合约信息之前,不要进行脚手架搭建:
yaml
FLUE_AGENT_CONTRACT:
purpose:
project_directory:
workspace_layout:
agent_file:
deploy_target:
model_id:
sandbox_mode:
trigger:
secrets_policy:
validation_command:
public_artifact_policy:推断规则:
- 若缺少:仅当任务的仓库检出目录是指定目标时,才使用该目录;
project_directory - 新目录或空目录:;
workspace_layout: root - 已存在的非空目录:;
workspace_layout: .flue - 缺少部署目标:优先选择;
node - 缺少模型:对于入门级Agent,优先选择;
anthropic/claude-sonnet-4-6 - 缺少密钥策略:纯虚拟Agent使用,否则使用
none。env-only
如果某个字段无法安全推断,返回并列出缺失的最小字段列表。
BLOCKSafety Rules
安全规则
- Do not invent API keys, OAuth material, cookies, or tokens.
- Do not paste secrets into prompts, durable docs, example payloads, or issue comments.
- Do not copy raw MCP request payloads or raw run transcripts into Git.
- Do not mutate Multica daemon, Desktop UI, runtime config, or live agent bindings from a Flue scaffold issue.
- Do not place a real Flue app inside this workbench repo unless the issue explicitly asks for it; this repo usually records the lane, not the app.
- 不要编造API密钥、OAuth材料、Cookie或令牌。
- 不要将密钥粘贴到提示词、持久文档、示例负载或任务评论中。
- 不要将原始MCP请求负载或原始运行记录复制到Git中。
- 不要从Flue脚手架任务中修改Multica守护进程、桌面UI、运行时配置或已上线的Agent绑定。
- 除非任务明确要求,否则不要将真实的Flue应用放入本工作台仓库;本仓库通常记录流程,而非应用本身。
Implementation Rules
实现规则
- For a new or empty project, create and
agents/.roles/ - For an existing non-empty project, create and
.flue/agents/..flue/roles/ - Pass the selected model ID explicitly to .
init({ model: "<model_id>" }) - Prefer or
flue dev --target nodefor local development.flue dev --target cloudflare - Do not use ; use
flue run --target cloudflareor build and call a deployed endpoint.flue dev --target cloudflare - Grant host commands per prompt or skill, not globally, for CI/local sandbox agents.
- Keep starter agents close to one narrow workflow. Wider autonomy belongs in a later reviewed iteration.
- 对于新项目或空项目,创建和
agents/目录。roles/ - 对于已存在的非空项目,创建和
.flue/agents/目录。.flue/roles/ - 将选定的模型ID显式传递给。
init({ model: "<model_id>" }) - 本地开发优先使用或
flue dev --target node。flue dev --target cloudflare - 不要使用;使用
flue run --target cloudflare或构建并调用已部署的端点。flue dev --target cloudflare - 对于CI/本地沙箱Agent,按提示词或技能授予主机命令权限,而非全局授予。
- 入门级Agent应专注于单一狭窄工作流。更广泛的自主性应放在后续评审迭代中。
Report Contract
合约报告
Always close with:
text
FLUE_AGENT_REPORT
purpose:
project_directory:
workspace_layout:
agent_file:
deploy_target:
model_id:
sandbox_mode:
trigger:
secrets_policy:
files_changed:
validation:
residual_risk:
next_action:
VERDICT: PASS | FLAG | BLOCKPASSFLAGBLOCK始终以以下内容结束:
text
FLUE_AGENT_REPORT
purpose:
project_directory:
workspace_layout:
agent_file:
deploy_target:
model_id:
sandbox_mode:
trigger:
secrets_policy:
files_changed:
validation:
residual_risk:
next_action:
VERDICT: PASS | FLAG | BLOCKPASSFLAGBLOCK