Claude Code Tools

Claude-Matrix

github

Claude on Rails - Tooling System for Claude Code.

Stars
⭐ 111
License
MIT
Last Updated
2026-05-15
Source
github
Screenshot 2026-01-19 at 10 53 42

Version License

Community plugin for Claude Code. Not affiliated with Anthropic.

If Matrix saved you time, be kind and leave a star.


Matrix gives Claude Code persistent memory and deep code intelligence. Solutions survive across sessions. A tree-sitter index makes symbol navigation instant across 15 languages. Hooks catch problems before they happen.

/plugin marketplace add ojowwalker77/Claude-Matrix
/plugin install matrix@ojowwalker77-Claude-Matrix

Requires Bun v1.0+ and Claude Code v2.0+. Verify with /matrix:doctor.

macOS and Linux only. Windows users need WSL.

What You Get

FeatureWhat It Does
MemorySolutions persist. Claude recalls what worked before.
Code IndexFind definitions, callers, exports instantly (15 languages)
HooksAuto-approve reads, catch bad packages, warn on sensitive files
WarningsTrack problematic files and packages with CVE checks
Code Review5-phase analysis with blast radius and impact mapping
Deep ResearchMulti-source research aggregation
NukeDead code, orphaned files, circular dependencies, stale TODOs
Context7Always-current library documentation

Memory

Solutions persist across sessions with semantic search:

You solve a problem    ->  Matrix stores it
Similar problem later  ->  Matrix recalls it
Feedback               ->  Rankings improve

Tools: matrix_recall matrix_store matrix_reward matrix_failure matrix_status


Code Index

Fast symbol navigation powered by tree-sitter. Auto-indexed on session start. Respects .gitignore. Uses content hashing for reliable incremental updates.

Languages: TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, Swift, C#, Ruby, PHP, C, C++, Elixir, Zig

Tools: matrix_find_definition matrix_find_callers matrix_search_symbols matrix_list_exports matrix_get_imports matrix_find_dead_code matrix_find_circular_deps


Hooks

Matrix runs automatically in the background:

TriggerAction
Session startsIndex code, initialize memory
Tool permission requestedAuto-approve read-only tools
Before npm installCheck CVEs, deprecation, bundle size
Before reading fileWarn if sensitive (.env, keys, secrets)
Before editing fileWarn if file has known issues

Commands

CommandPurpose
/matrix:review5-phase code review with impact analysis
/matrix:deep-researchMulti-source research aggregation
/matrix:nukeCodebase hygiene analysis
/matrix:doctorDiagnostics and auto-fix
/matrix:listView solutions, stats, warnings
/matrix:warnManage file/package warnings
/matrix:reindexRebuild code index

Configuration

Config at ~/.claude/matrix/matrix.config:

{
  "hooks": {
    "verbosity": "compact",
    "permissions": { "autoApproveReadOnly": true }
  },
  "delegation": { "enabled": true, "model": "haiku" }
}

Verbosity: full (~500 tokens) or compact (~80, recommended)

Model Delegation: Routes simple ops to Haiku for ~40-50% cost savings.


Data

~/.claude/matrix/
├── matrix.db       # SQLite database
├── matrix.config   # Configuration
├── models/         # Embedding model (~23MB)
└── grammars/       # Tree-sitter parsers

All data local. No external API calls for memory.


Changelog LLM Reference

MIT License