AGENTS.md@src/host/toolsA

AGENTS.md@src/host/tools from gzx2211/dsh-visual-workflow is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add gzx2211/dsh-visual-workflow/src/host/tools/AGENTS.md@git:20261016.0a66f2a

Pins git:20261016.0a66f2a in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
gzx2211/dsh-visual-workflow
Path
src/host/tools/AGENTS.md
Versions recorded
4
Latest version
git:20261016.0a66f2a, committed Oct 16, 2026
First version recorded
Sep 21, 2026
Size
2,382 bytes
Repository stars
65
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Tools Module Rules

## 范围与职责

适用于 `src/host/tools/`。

负责将 Host 能力暴露为 Agent-facing Tools,并维护 Tool 基础设施:Tool 定义、参数与输出 Schema、调用方校验、Host 能力调用、输出渲染、可见性与全局开关。

## 目录与分类

- 按工具能力组织,文件夹按工具名命名:`wf-run-node/`、`wf-ask-user/`、`wf-db-query/`等。
- `infrastructure/` 放 Tool 基础设施,如 `define-tool.ts`、`text-render.ts`等。
- `caller.ts` 承载跨 Tool 共享的调用方身份派生(`callerOf`)与工具层宿主能力最小缝(`WfToolsHost`);多个 Tool 共用同一逻辑时提升到此层,不得由某个 Tool 目录反向导出。

## Tool 文件职责

标准入口为 `tool.ts`,负责:注册、参数 Schema、description、调用方身份校验、调用 Host capability、输出结果。

不要把大型业务算法堆进 `tool.ts`。复杂 Tool 应拆分:

```text
tool.ts       Tool-facing adapter
apply.ts      纯变换 / 应用逻辑
types.ts      类型与契约
service.ts    业务服务
driver.ts     外部资源驱动
policy.ts     安全 / 规则策略
```

## 依赖边界

- 允许经公共入口依赖 orchestrator / graph / storage / agent / ... 等模块的能力;
- Tools 不得成为核心模块的底层依赖;禁止循环依赖。

## Tool 之间解耦

一个 Tool 不得通过另一个 Tool 的注册函数或执行函数完成业务。

错误:`runNodeTool.execute(...)`

正确:

```text
Tool A → Host capability / service ← Tool B
```

多个 Tool 共享逻辑时,应将逻辑提升到合适的 Host 模块。

## Tool 契约

- 模型可见输出应稳定、紧凑、可预测;输出序列化只有一处实现,业务 Tool 不得重复实现渲染;
- Tool description 须回答:何时调用?调用前需要什么?失败时会发生什么?是否产生副作用?描述应简洁、无歧义。

## 错误处理
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add gzx2211/dsh-visual-workflow/src/host/tools/AGENTS.md@sha256:3d8a02c915f60f50

The line at the top of this page pins the label git:20261016.0a66f2a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_xeuko5renzad3tdl.svg)](https://markdownregistry.com/a/art_xeuko5renzad3tdl)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Sep 21, 2026 and Oct 16, 2026, about one every 8 days.

versioncommittedcommitsizeaudit
git:20261016.0a66f2a latest2026-10-16 0a66f2a 2,382 BA view · diff
git:20260928.0bc633c2026-09-28 0bc633c 2,376 BA view · diff
git:20260923.4575b132026-09-23 4575b13 2,661 BA view · diff
git:20260921.c0879f82026-09-21 c0879f8 4,138 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (2382 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

gzx2211/dsh-visual-workflow · 65 stars · license MIT · pushed 2026-10-29 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_xeuko5renzad3tdl
GET https://markdownregistry.com/api/v1/resolve?ref=gzx2211/dsh-visual-workflow/src/host/tools/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/3d8a02c915f60f50922106c7d31304a2f0e75e9d00b0101322c91f937fd697ea

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from gzx2211/dsh-visual-workflow

AGENTS.md AGENTS.md file
gzx2211/dsh-visual-workflow · AGENTS.md
git:20261029.890e702 · audit A · 65 stars
dsh-plugin-development SKILL.md skill
gzx2211/dsh-visual-workflow · prompt/SKILL.md · 开发、维护、分发和验证 DeepSeek Harness (DSH) 插件的执行型 Skill。覆盖 host/client 形态判断、bundle/profile 契约、Service…
v3.1.0 · audit A · 65 stars
AGENTS.md@src/client AGENTS.md file
gzx2211/dsh-visual-workflow · src/client/AGENTS.md
git:20260924.2e6ce57 · audit A · 65 stars
AGENTS.md@src/host AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/agent AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/agent/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/api AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/api/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/assets AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/assets/AGENTS.md
git:20261019.cae5b07 · audit A · 65 stars
AGENTS.md@src/host/graph AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/graph/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/orchestrator AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/orchestrator/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/prompts AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/prompts/AGENTS.md
git:20261017.3538eb1 · audit A · 65 stars
AGENTS.md@src/host/scheduler AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/scheduler/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/service AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/service/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars

Every file in gzx2211/dsh-visual-workflow

Browse by kind, by grade A, or by owner.