[FEATURE] Scope /insights to current project directory
Resolved 💬 2 comments Opened Feb 24, 2026 by DanielPBak Closed Feb 24, 2026
Problem
/insights aggregates session data across all projects globally. When running /insights from a specific project directory (e.g., /dev/basic), it includes data from unrelated projects (e.g., a personal chess project), making the insights less relevant and harder to act on.
Proposed Solution
Scope /insights to only analyze sessions associated with the current project directory by default. This could work by:
- Filtering sessions based on the working directory they were started in
- Adding an optional
--globalflag to preserve the current cross-project behavior when desired
Why This Matters
- Developers working across multiple projects get diluted insights that mix unrelated contexts
- Project-specific patterns and recommendations are lost in cross-project noise
- Other features (MCP servers, plugins, CLAUDE.md) already respect project-level scoping —
/insightsshould too
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗