Thanks to visit codestin.com
Credit goes to github.com

Skip to content

johan--/Claude-Matrix

 
 

Repository files navigation

Matrix

Claude Matrix

Claude on Rails — Memory, Indexing, Automation

Version License

Community plugin for Claude Code • Not affiliated with Anthropic


Matrix turns Claude Code into a complete development environment. Memory that persists across sessions. Code indexing across 15 languages. Automated hooks that catch issues before they happen. Scheduled tasks that run while you sleep.

/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 is not supported. Windows users must use WSL or fork the repo and adapt paths manually.


What You Get

Feature What It Does
Memory Solutions persist. Claude recalls what worked before.
Code Index Find definitions, callers, exports instantly (15 languages)
Hooks Auto-inject context, catch bad packages, warn on sensitive files
Warnings Track problematic files/packages with CVE checks
Dreamer Schedule tasks — daily reviews, weekly audits, automated commits
Code Review 5-phase analysis with blast radius and impact mapping
Deep Research Multi-source aggregation into polished markdown
Context7 Always-current library documentation
Skill Factory Promote solutions to reusable Claude Code Skills

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. Auto-indexed on session start.

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


Hooks

Matrix runs automatically in the background:

Trigger Action
Session starts Index code, initialize memory
You send a prompt Inject relevant memories
Before npm install Check CVEs, deprecation, bundle size
Before editing file Warn if file has known issues
Before git commit Suggest code review
Session ends Offer to save notable solutions

Dreamer

Schedule Claude tasks with native OS schedulers (launchd/crontab):

/scheduler:schedule-add
> Name: daily-review
> Schedule: every weekday at 9am
> Command: /matrix:review

Use cases: Daily code review · Weekly dependency audit · Nightly test runs · Automated changelog

Git Worktree Mode: Run in isolated branches that auto-commit and push.

Safety:

  • skipPermissions OFF by default — respects your existing permission rules
  • No custom daemon — uses native OS schedulers, no elevated privileges
  • All inputs sanitized via shellEscape()

Skills: /scheduler:schedule-add · schedule-list · schedule-run · schedule-remove · schedule-status · schedule-logs · schedule-history


Commands

Command Purpose
/matrix:review 5-phase code review with impact analysis
/matrix:deep-research Multi-source research aggregation
/matrix:doctor Diagnostics + auto-fix
/matrix:list View solutions, stats, warnings
/matrix:warn Manage file/package warnings
/matrix:reindex Rebuild code index
/matrix:repomix Pack external repos for context
/matrix:export Export database
/matrix:skill-candidates View promotable solutions
/matrix:create-skill Create skill from solution

Configuration

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

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

Verbosity: full (~500 tokens) · compact (~80, recommended) · minimal (~20)

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.


Links

Changelog · Roadmap · Contributing · LLM Reference

MIT License

About

Claude on Rails - Tooling System for Claude Code.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.9%
  • Other 1.1%