rulesync icon indicating copy to clipboard operation
rulesync copied to clipboard

Add support for Poolside (`pool` coding agent CLI)

Open Fe2-O3 opened this issue 2 months ago • 8 comments

Summary

Please add support for Poolside as a generation target.

Poolside's coding agent is pool — a single binary that runs an interactive TUI in the terminal and also acts as an Agent Client Protocol (ACP) server, so it is driven from Zed, JetBrains, Neovim and other ACP-compatible editors as well as from the CLI.

  • Repo: https://github.com/poolsideai/pool
  • Docs: https://docs.poolside.ai (LLM doc index: https://docs.poolside.ai/llms.txt)
  • CLI overview: https://docs.poolside.ai/cli/pool
  • Install: https://docs.poolside.ai/cli/install

Why

Poolside exposes most of the primitives rulesync already fans out — rules, skills, MCP, subagents, hooks and permissions — and it does so on top of two conventions rulesync already handles: it reads AGENTS.md for instructions, and its skills follow the Agent Skills specification that rulesync's agentsskills target already enforces. So a fair amount of the plumbing exists.

Being honest about demand: this is one user asking. I keep a single source of truth across several agents and Poolside is the only one of mine that rulesync cannot target.

Config surface → rulesync feature mapping

Read from the official docs and cross-checked against a local pool 1.0.14 install.

rulesync feature Global scope Project scope
rules ~/.config/poolside/AGENTS.md (honours XDG_CONFIG_HOME) AGENTS.md at the repository root, plus nested AGENTS.md in subdirectories
skills ~/.config/poolside/skills/<name>/SKILL.md, also ~/.agents/skills/ .poolside/skills/<name>/SKILL.md, also .agents/skills/
mcp mcp_servers: in ~/.config/poolside/settings.yaml mcp_servers: in .poolside/settings.yaml / .poolside/settings.local.yaml
permissions tools: and paths: (each allow / deny / disabled) in the settings file same keys, project settings files
hooks hooks: in the settings file same key, project settings files
subagents subagents: in the settings file same key, project settings files
commands Not user-definable — slash commands are built-in only; skills cover the custom-command use case —
ignore No public spec —

Docs for each: AGENTS.md instructions · skills · MCP servers · permissions · hooks · subagents · settings file reference

Settings files and precedence

All settings live in YAML, in three files, most specific winning:

  1. .poolside/settings.local.yaml — personal, project-specific (highest)
  2. .poolside/settings.yaml — shared, project-specific
  3. ~/.config/poolside/settings.yaml — personal defaults for all projects (lowest)

Top-level keys are pool, tools, paths, secrets, mcp_servers, sandbox, web_search, hooks, subagents, agent_servers.

Rules discovery

Inside a git repository, Poolside reads every AGENTS.md from the repository root down through the working directory, with deeper files taking precedence, and skips ignored directories (.git/, node_modules/, cache directories, and anything matching repository ignore rules). The personal file at ~/.config/poolside/AGENTS.md sits below both.

Hooks

The six lifecycle events are PreToolUse, PostToolUse, UserPromptSubmit, PreCompact, SessionStart and Stop — the same names Claude Code uses, so the existing hook model should map across with little translation.

Note — shared ~/.agents/ tree

Poolside discovers skills in the shared ~/.agents/skills/ and .agents/skills/ directories in addition to its own ~/.config/poolside/skills/ and .poolside/skills/. So a poolside target would share that tree with the other AGENTS.md-family targets, and would want the same shared-directory resolution discussed for the Kimi Code / Antigravity cases in #2359 so that co-enabling stays idempotent.

Precedent

Mirrors prior new-agent additions:

  • #2633 — Support Meta Muse Code
  • #2780 — Add support for ZCode
  • #2359 — Add support for Kimi Code
  • #2011 — Add support for Reasonix agent
  • #2018 — Add Hermes Agent support

Happy to test a branch against a real pool install and report back.

Fe2-O3 avatar Sep 06 '26 03:09 Fe2-O3

@Fe2-O3 提案ありがとう。PR出してくれたら前向きに考えるよ。

cm-dyoshikawa avatar Sep 08 '26 06:09 cm-dyoshikawa

Status: rules shipped, the other dimensions still open

Re-checked on 2026-09-11 during an unattended maintenance run. #2976 added pool as a rules target (project AGENTS.md with nested per-directory files, global ~/.config/poolside/AGENTS.md honouring XDG_CONFIG_HOME) and shipped in v16.27.0.

Per the mapping above, skills, mcp, permissions, hooks and subagents remain unimplemented; commands and ignore are out by design. Since the rules PR ended with an offer to follow up on skills/MCP next, this issue is left open for those follow-ups rather than closed — one PR per dimension (or skills + mcp together, as offered) keeps each review small. The mcp/permissions/hooks/subagents set all write into the same settings.yaml, so those should go through the shared-config gateway the way other single-settings-file targets do.

dyoshikawa avatar Sep 11 '26 16:09 dyoshikawa

Upstream update (re-check on 2026-09-12)

Newly found releases / changes

  • v1.0.16 (2026-08-14) is still the latest tag. It is the release that introduced the hooks: section (six events) and the named-subagent schema (subagents.agents.<name>) that the mapping table above lists, so both dimensions now have a stable, documented shape to implement against. It also added the opt-in Auto approval mode (pool.auto_mode_classifier), which has no rulesync dimension and only needs to be preserved by a settings.yaml writer.
  • v1.0.11 (2026-07-09) added ~/.agents/skills/ as a skills source, confirming the shared-tree note above.
  • Nothing changed for rules since v1.0.7; the shipped pool rules target (project AGENTS.md, nested files, global ~/.config/poolside/AGENTS.md) still matches the docs.

Additional or changed gaps

Format details from the current docs that the mapping table does not record, and that an implementation will have to get right. All dimensions below are still unsupported in rulesync (the processor gates skip skills, mcp, hooks, permissions and subagents for pool).

  • hooks (docs): each entry is {name?, matcher, command, timeout?} under hooks.<Event>. matcher must be provided for every event — it selects tools on PreToolUse/PostToolUse (exact name, a|b, regex, *) and is ignored elsewhere, so non-tool events need matcher: "*". timeout is in seconds (default 60). A section-level stop_hook_max_continuations caps Stop continuations. Hook entries with the same name are replaced by more specific settings levels. Rulesync's canonical event set is a superset, so Notification, SubagentStop and SessionEnd would have to be dropped with a warning.
  • subagents (docs): no markdown surface — subagents exist only as subagents.agents.<name> keys with type: in_process | command | agent_server, description, instructions (multi-line body), plus command/args/env/agent_server/disabled. general is reserved and must stay in_process. A rulesync subagent maps to type: in_process + description + instructions: |; tool/model restrictions have no equivalent.
  • mcp (docs): remote servers nest under transport: {type: http | sse, url, headers}, and headers is a YAML list of "Header: value" strings, not a map, so rulesync's headers object needs a list conversion. Local servers use top-level command/args/cwd/env; all servers accept enabled_tools, allow/deny glob patterns and disabled.
  • permissions (settings reference): tools.<name>.allow/deny patterns support * only (** is rejected); paths.allow[] entries are {path, write?: true} and paths.deny[] entries {path}, with */** supported and deny winning. Per-file constraint: paths in .poolside/settings.yaml must be project-relative, while paths in .poolside/settings.local.yaml and ~/.config/poolside/settings.yaml must be absolute or ~-prefixed — a global-scope emitter has to enforce that.
  • skills (docs): unchanged, but the docs recommend project-level .poolside/skills/ because user-level skills are not mounted into local sandboxes — worth noting when deciding the shared .agents/skills policy.

References

  • https://github.com/poolsideai/pool/releases/tag/v1.0.16 — release that introduced hooks, named subagents and Auto mode (2026-08-14).
  • https://github.com/poolsideai/pool/releases/tag/v1.0.11 — ~/.agents/skills/ discovery (2026-07-09).
  • https://docs.poolside.ai/hooks — hook entry schema, matcher requirement, timeout, stop_hook_max_continuations.
  • https://docs.poolside.ai/subagents — subagents.agents.<name> schema and the reserved general entry.
  • https://docs.poolside.ai/mcp-servers — transport.headers list format and per-server tool filters.
  • https://docs.poolside.ai/settings-file-reference — tools/paths rule syntax and the per-file relative/absolute path constraint.

dyoshikawa avatar Sep 12 '26 15:09 dyoshikawa

Status update: the skills dimension is now merged in #3057 (pool skills target).

  • Writes .poolside/skills/<name>/SKILL.md (project) and ~/.config/poolside/skills/<name>/SKILL.md (--global), per https://docs.poolside.ai/skills.
  • Models the required name/description pair with a loose schema; warns at generate time when a skill's name differs from its directory name, since Pool only loads matching ones.
  • The shared .agents/skills/ roots are left to the agentsskills target so each skill is written exactly once.
  • Import round-trip, project/global e2e coverage, .gitignore, the Supported Tools tables and the file-formats note are included.

Remaining dimensions from the plan above (mcp, permissions, hooks, subagents) are still open and will each get their own PR; leaving this issue open to track them.

dyoshikawa avatar Sep 15 '26 15:09 dyoshikawa

Upstream update (re-check on 2026-09-16)

Newly found releases / changes

  • No new release: https://github.com/poolsideai/pool/releases still tops at v1.0.16 (2026-08-14); the repository's last pushes (2026-08-18, #39 / #42) are docs-only, and CHANGELOG.md tops at 1.0.16. There is no package registry (install script / pool update).
  • Docs (https://docs.poolside.ai/llms.txt): agent-instructions, skills, settings-file-reference, hooks, mcp-servers, subagents, permissions, sandboxes, secrets, cli/install ("describes Poolside Agent CLI v1.0.16") and cli/cli-reference re-read; rules / skills / commands (built-in only) / mcp (stdio, transport.type http | sse) / hooks (six events + stop_hook_max_continuations) are unchanged from the 2026-09-11/12 baseline. Dry-runs match (AGENTS.md + .poolside/skills/**; global .config/poolside/AGENTS.md + .config/poolside/skills/**).

Additional or changed gaps

  • RESOLVED-UPSTREAM — global path on Windows (#2984 item 4). https://docs.poolside.ai/cli/install (Uninstall, step 3) now states the config directory is "~/.config/poolside on macOS or Linux, or %USERPROFILE%\.config\poolside on Windows. This directory holds settings.yaml and credentials.json." (Windows installer marked BETA). rulesync's POOL_GLOBAL_DIR resolves to <home>/.config/poolside/..., which is exactly %USERPROFILE%\.config\poolside, so there is no mismatch and item 4 of #2984 can be closed for Pool. Optional: mention the Windows path in the Pool note of file-formats.md when that section is next touched.
  • ignore (project, NEW, low — re-evaluation of the "no public spec / out by design" entry). The settings reference documents paths.deny[] ({ path }) in .poolside/settings.yaml — project-relative, * / ** globs, deny overrides allow, lists combine across scopes — https://docs.poolside.ai/settings-file-reference#paths and https://docs.poolside.ai/permissions#path-rules. It is enforced for read/edit tools only (not shell), the same caveat as permissions.deny Read(...) used by src/features/ignore/claudecode-ignore.ts. Proposed follow-up: once the settings.yaml writer tracked here lands, consider a pool ignore adapter that emits .aiignore patterns as paths.deny through the shared-config gateway — maintainer call.
  • subagents (still unsupported) — addendum to the 2026-09-12 key list. https://docs.poolside.ai/subagents#configuration-reference also lists subagents.default, subagents.agents.<name>.session_config_options (map) and subagents.agents.<name>.inherit_agent_config (bool; default true for general, false for custom agents).
  • Inconclusive: the docs edits (Windows sentence, subagent keys) cannot be dated; they are live as of 2026-09-16.

References

  • https://github.com/poolsideai/pool/releases — still v1.0.16.
  • https://docs.poolside.ai/cli/install — Windows config directory (%USERPROFILE%\.config\poolside).
  • https://docs.poolside.ai/settings-file-reference#paths — paths.deny schema.
  • https://docs.poolside.ai/permissions#path-rules — path-rule semantics.
  • https://docs.poolside.ai/subagents#configuration-reference — additional subagent keys.

dyoshikawa avatar Sep 16 '26 12:09 dyoshikawa

Status update: Pool MCP server support (generate + import, project and global scope) landed in #3118 (mcp_servers in .poolside/settings.yaml / ~/.config/poolside/settings.yaml; enabledTools -> enabled_tools, disabledTools -> deny, and the Pool-only poolAllow -> allow).

Still open from this issue: permissions, hooks and subagents. Leaving the issue open to track those.

dyoshikawa avatar Sep 17 '26 15:09 dyoshikawa

Status update on the remaining Pool dimensions:

  • permissions: #3125 adds the permissions feature for Pool — tools.<name>.allow/deny lists and paths.allow/deny entries in .poolside/settings.yaml (project) and ~/.config/poolside/settings.yaml (global), merged into the same file the mcp feature already owns, with import support. Rules Pool cannot express (ask, all-tools, MCP categories, non-* wildcards, write-only denies, cross-scope path forms) are withheld with a warning instead of being written weaker than authored.
  • hooks and subagents follow in separate PRs.

dyoshikawa avatar Sep 18 '26 03:09 dyoshikawa

Poolside support is now complete. The remaining dimensions landed in three pull requests:

  • Permissions: #3125
  • Hooks: #3126
  • Subagents: #3127

Together with the earlier rules, MCP and skills support, the pool target now covers every feature Pool itself has a file format for (see the supported tools table). Closing this issue; please open a new one for anything Pool-specific that still turns out to be missing.

dyoshikawa avatar Sep 18 '26 07:09 dyoshikawa