host-ask

仓库创建 2026年6月25日最近提交 21 天前SkillHot 收录 21 天前
▸ 精选理由

方便隔离环境向主机请求实地信息与操作协助

▸ 风险提示

会在共享目录写入请求,可能包含敏感路径或上下文并泄露信息

这个 Skill 做什么

在 sbx box 内写入结构化请求文件,向主机请求不可见的信息并等待回复

当 box(sbx microVM)内的 agent 需要只有宿主机才能看到的事实(例如其它 compose 项目状态、占用端口、mount 外的宿主文件系统或 host-only 服务)时,会把结构化请求写到 .claude/host-bridge 下的 ask 文件并通知宿主。然后持续监控宿主写回的答复文件并自动拾取结果,能绕过短时后台运行超时限制,适用于 box 无法直接访问宿主信息的场景。特点是把 box→host 的沟通流程标准化并支持持久化的轮询以保证拿到回复。

▸ 展开 SKILL.md 英文原文

From inside an sbx box, write a structured request file under `.claude/host-bridge/` asking the host claude session to investigate something only visible from host (other compose projects, port occupiers, host fs outside the mount, host-local services unreachable from box). The mirror of `/box-session-context` (which is host-from-box): this is box-from-host. Use when the box agent realizes it needs host-side facts and cannot infer them from the bind-mounted workspace. After writing the ask, automatically picks up the answer via a Monitor (persistent, session-length watch — bypasses the 10-minute Bash run_in_background timeout cap so long HOTL response windows are handled) when the host writes it; falls back to Bash run_in_background or manual cat when Monitor is unavailable (Claude Code < 2.1.98 / Bedrock / Vertex / Foundry / DISABLE_TELEMETRY / CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC) so the skill keeps minimum functionality across environments. Box-side monitor only; host-side answe

开发编程box-to-host询问桥接环境探查通用
0
Stars
15
Forks
17
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/host-ask/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/host-ask/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# host-ask

box 内 (sbx microVM) で動いている claude session が、box からは見えない host 側の事実 (他 compose project の状態 / host で listen 中の port の占有者 / mount 外の host filesystem / box の network 制限で到達不能な host-local service) を必要としたとき、`.claude/host-bridge/ask-<box-name>-<topic>-<seq>.md` に**構造化された問い合わせ**を Write し、user に「host で `/host-answer` を回して」と告知してから ans file の出現を background polling で auto-pickup する skill (box 側 monitor のみ。host 側 auto-pickup は injection chain 防止のため**意図的に持たない** — limitations 参照)。

`/box-session-context` (host が box の transcript を覗く) の**逆方向**として対をなす leaf skill (`box → host` の能動 ask)。両者は重複せず補完関係。

## 前提条件

- **box (sbx microVM) の中で実行** する skill。host 側で起動すると意味がない (ans 待ちのループが host 上で生じるだけ)
- **bind
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有