Skip to content

Conversation

@tad-hq
Copy link

@tad-hq tad-hq commented Dec 24, 2025

Summary

Add support for excluding projects from claude-mem using glob patterns. This feature allows users to prevent certain projects from being tracked in memory, with zero overhead for excluded projects.

Changes

  • New Setting: CLAUDE_MEM_EXCLUDE_PROJECTS for configurable project exclusion
  • Glob Pattern Support: Matches project names with * and ? wildcards
  • Early Exit Optimization: Excluded projects skip worker contact entirely before any processing
  • Comprehensive Coverage: Applied to all 5 lifecycle hooks (context, new, save, summary, cleanup)
  • API Support: Added to SettingsRoutes for UI configuration
  • Documentation: Complete guide with pattern examples and use cases

Pattern Examples

  • project-name - Exact match
  • claude-analysis-* - Matches all claude-analysis prefixed projects
  • *-claudem - Matches projects ending with -claudem
  • test-? - Matches test-1, test-a, etc.

Benefits

  • Zero overhead for excluded projects (early exit before worker)
  • Supports glob patterns for flexible matching
  • Useful for temporary projects, CI/build directories, or automated analysis projects
  • Settings persist across sessions via UI or config file

- Add CLAUDE_MEM_EXCLUDE_PROJECTS setting to exclude projects from memory
- Support glob patterns (*, ?) for flexible project matching
- Early exit in all lifecycle hooks before worker contact for zero overhead
- Add setting to SettingsRoutes.ts API for UI configuration
- Add comprehensive documentation with pattern examples
- Excluded projects skip context injection, observation recording, and summary generation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant