[Feature Request] @directory mentions should include file list context in rules

Resolved 💬 3 comments Opened Dec 12, 2025 by andrewgazelka Closed Feb 11, 2026

Bug Description
Doing @ in rules when mentioning a DIRECOTRY (not a file) does not add any context but it should likely provide a list of files as context

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.67
  • Feedback ID: 5ea5e653-0005-45bf-afa2-fa7aa076b056

Errors

[{"error":"Error: Duplicate hooks file detected: ./hooks/hooks.json resolves to already-loaded file /Users/andrewgazelka/.claude/plugins/cache/mcsound/mcsound/0.1.0/hooks/hooks.json. The standard hooks/hooks.json is loaded automatically, so manifest.hooks should only reference additional hook files.\n    at SHB (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1045:4310)\n    at Ij6 (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1045:7453)\n    at async Jj6 (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1045:5709)\n    at async file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1045:14558","timestamp":"2025-12-12T02:12:51.730Z"},{"error":"Error: EACCES: permission denied, open '/nix/store/5861lr5hbrxi4lxjwp12h7rl2cshf62z-home-manager-files/.claude.json.tmp.9298.1765505572136'\n    at Module.openSync (node:fs:560:18)\n    at file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:9:999\n    at xI (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:8:8084)\n    at Object.writeFileSync (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:9:774)\n    at KM (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4400:592)\n    at Tg2 (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4379:12009)\n    at i0 (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4379:10001)\n    at file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4393:7741\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)","timestamp":"2025-12-12T02:12:52.136Z"},{"error":"Error: EACCES: permission denied, open '/nix/store/5861lr5hbrxi4lxjwp12h7rl2cshf62z-home-manager-files/.claude.json.tmp.9298.1765505572490'\n    at Module.openSync (node:fs:560:18)\n    at file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:9:999\n    at xI (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:8:8084)\n    at Object.writeFileSync (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:9:774)\n    at KM (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4400:592)\n    at Tg2 (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4379:12009)\n    at i0 (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4379:10001)\n    at TD5 (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4692:4446)\n    at JJ0.<anonymous> (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4709:6936)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)","timestamp":"2025-12-12T02:12:52.490Z"},{"error":"Error: EACCES: permission denied, open '/nix/store/5861lr5hbrxi4lxjwp12h7rl2cshf62z-home-manager-files/.claude.json.tmp.9298.1765505572523'\n    at Module.openSync (node:fs:560:18)\n    at file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:9:999\n    at xI (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:8:8084)\n    at Object.writeFileSync (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:9:774)\n    at KM (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4400:592)\n    at Tg2 (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4379:12009)\n    at i0 (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4379:10001)\n    at VN2 (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4393:7887)\n    at file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2656:13927\n    at c0 (file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:212:62374)","timestamp":"2025-12-12T02:12:52.523Z"},{"error":"Error: EACCES: permission denied, open '/nix/store/5861lr5hbrxi4lxjwp12h7rl2cshf62z-home-manager-files/.claude.json.tmp.9298.1765505572542'\n    at Module.openSync (node:fs:560:18)\n    at file:///Users/andrewgazelka/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:9:999\n    at xI (file:///

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗