ah-gemi-smooth
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGS_RG | No | ripgrep 可执行文件的显式路径 | PATH 上的 `rg` |
| AGS_LOG | No | `debug` / `info` / `warn` / `error` / `silent`,只写 stderr | info |
| AGS_HOME | No | 状态目录(`catalog-cache/`、`spool/`) | ~/.ah-gemi-smooth |
| AGS_CONFIG | No | 主配置文件 | $AGS_HOME/config.json |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
AhGemiSmooth (ags): hot tools are listed directly; folded (cold) groups are reached through hub_help -> hub_read ([R], read-only) / hub_exec ([W]). tool_chain runs up to 8 cross-group steps with per-step receipts and never rolls back automatically.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| tool_chainA | Run 1-8 tool calls sequentially across groups (internal, hot or cold ":") and return a receipt per step (judged: exception | mcp-isError | exit-code | error-prefix | ok). on_error "halt" (default) stops at the first failure; there is NO automatic rollback. All steps are policy-checked before any runs (chain_policy, chain_forbidden, deny_tools). background=true returns a chain_id for chain_job. strip_images (default true) saves images to spool files. |
| chain_jobA | Inspect or stop tool_chain runs: action "status" (needs chain_id) returns the receipt ledger, "list" lists retained chains, "kill" aborts a running chain. |
| batch_searchA | Run 1-20 searches concurrently in one call: type text | regex | glob (list files) | git (read-only: status/diff/log/show/branch/rev-parse/ls-files/grep). Per query: path, glob filter, outputMode (content | files_with_matches | count), caseSensitive, contextLines, maxResults. Uses ripgrep when found on PATH, else a built-in Node scanner (skips .git, node_modules, dist and binary files). Output is capped by maxChars (<= 8800); overflow is spooled to a file. |
| quick_outlineA | Outline 1-30 files in one call: symbols / headings with 1-based line numbers and total line count. TS/JS (class, interface, type, enum, function, method), Python (class, def), GDScript (class_name, class, signal, enum, const, func), Go, Rust, C#, Markdown headings, JSON keys (depth <= 2). No external dependencies. |
| apply_editsA | Edit 1-50 files in one call. Per file: "hunks" (exact oldText -> newText, applied in order; CRLF/LF and BOM preserved) or "create" (+ overwrite). Default: every file is pre-checked and nothing is written unless all pass; bestEffort=true writes the valid files. Failed hunks report the closest matching line. dryRun validates only. Optional verify command (pwsh default, windowsHide) runs afterwards; a non-zero exit is returned as structured exitCode. |
| run_checksA | Run 1-8 non-interactive commands concurrently (shell: pwsh default | cmd | wsl), all with windowsHide. Per-command timeoutSec (default 120, max 900) kills the whole process tree. outputMode compact (status + failure tails) or full. Any non-zero exit is returned as structured exitCode (timeout = 124). |
| hub_helpA | Catalog for folded (cold) tool groups, which are NOT in tools/list. Cold groups: wsl-bridge (WSL shell: wsl_exec + read-only wsl_read_info git/ls/slice;…). Call hub_help before hub_read/hub_exec: omit args for a status overview; pass group (+query) for a tool list with [R]/[W] marks; pass group+tool for the exact schema and an example call (tools: [names] with group, or ["group:tool", ...] without, for up to 20 at once). [R] tools go through hub_read (read-only, safe to auto-approve); [W] tools must go through hub_exec. |
| hub_readA | Call a READ-ONLY tool of a cold group. Default-deny: only tools matched by read_tools or declaring readOnlyHint pass; anything else is refused without being forwarded (use hub_exec). |
| hub_execA | Call a cold-group tool that may have side effects (writes, UI actions, injections). Everything except deny_tools is allowed; intended for host-side approval. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Most tools have sharply distinct purposes: quick_outline for structure, batch_search for searching, apply_edits for writes, run_checks for commands. The main fuzziness is between run_checks and tool_chain (which can dispatch tool calls including shell-ish steps), and the hub_read/hub_exec pair, though the read/write split is explicitly documented.
A readable hub_* family exists, but the rest mix noun-first (quick_outline, tool_chain, chain_job, batch_search) with verb-first (apply_edits, run_checks) conventions. The names are meaningful but do not follow a single predictable verb_noun pattern.
Nine tools is well within a healthy range, and the cold-group hub (hub_help/hub_read/hub_exec) lets breadth be folded away rather than bloating tools/list. Each tool covers a genuinely different capability: outline, search, edit, execute, orchestrate, inspect chains, and reach cold groups.
Core code-workflow lifecycle is covered: inspect structure, search, edit/create files, run commands, chain operations, and monitor/kill chains. The notable gap is direct file reading and directory listing, which are delegated to cold groups via hub_help + hub_read, adding an extra discovery step for common read operations.