Fs Check

Reads the /tmp canary written by the plugin-level SessionStart hook, to test whether the hook (host) and the Bash tool (VM) share a filesystem.

kazukinagata ba164ce 1013 B Updated

File contents

fs-check

plugin-level SessionStart hook が /tmp/cowork-fs-canary.txt に書き込みました。Bash tool から読めるか確認します。次の bash を実行してください。

echo "BODY host=$(hostname)"
echo "--- cat /tmp/cowork-fs-canary.txt ---"
cat /tmp/cowork-fs-canary.txt 2>&1
echo "--- ls ---"
ls -la /tmp/cowork-fs-canary.txt 2>&1

実行後、context にある [FS-HOOK] wrote ... host=... の行も併せて貼ってください(hook が動いた host 名が分かります)。

判定:

  • cat が成功して FS_CANARY_CONTENT が出る + BODY host が hook host と同じ → 同一 filesystem(CLI 予想)
  • cat が No such file or directory + BODY host=claude(hook host と違う) → hook はホスト / Bash tool は VM の別 filesystem(Cowork 予想)

kazukinagata/analyzing-claude-plugin/tree/main/cowork-fs-probe/skills/fs-check commit ba164ce635

Frequently asked questions

npx skillmds@latest add kazukinagata/fs-check