Raysense reads your repository as a graph: who imports who, where the
cycles are, which files are now load-bearing, what tends to change
together. It runs locally, refreshes on save, and serves the whole
picture to your coding agent over MCP. Before an edit, the agent can
ask what depends on this file. After a chunk of edits, it can ask
did this regress anything.
Why
A coding agent reads source one file at a time. The shape of the
project (its modules, its layers, its cycles, the files that always
change together) never reaches its working memory. Reviewers operate
on diffs, and a diff hides structure by definition. So architectural
drift is invisible until it shows up as a production bug, a
regression, or a refactor that takes a week.
Grading model
Six dimensions, each graded A through F against the dependency graph
and commit history of the repo. The overall score, 0 to 100, is their
weighted aggregate:
- Modularity - how cleanly modules separate
- Acyclicity - how much the dependency graph really is a graph
- Depth - how layered (or how flat-and-tangled) the code is
- Equality - how evenly responsibility is distributed
- Redundancy - how much logic is duplicated
- Structural uniformity - how consistent the patterns are
The score moves with structure, not with cosmetics: adding tests or
shuffling files around will not lift it.
Install
One-liner. Installs the raysense binary and registers it as a stdio MCP
server with whichever local Claude hosts are present (Claude Desktop and / or
the claude CLI):
curl -fsSL https://raw.githubusercontent.com/RayforceDB/raysense/main/install.sh | sh
Step by step instead:
cargo install raysense # binary only
raysense install # register raysense with every Claude host present
The install command auto-detects every Claude host on the machine and
registers raysense with each one in its native form:
| Host | Where it writes | What you get |
|---|
| Claude Desktop | claude_desktop_config.json | MCP server (50 tools + 6 prompts in the "+" menu) |
| Claude Code | ~/.claude/settings.json (marketplace + enabledPlugins) | Plugin: tools + prompts + slash commands (/raysense:audit) + skills |
| Cowork | local-agent-mode-sessions/<account>/<device>/cowork_plugins/known_marketplaces.json | Marketplace registered; finish with /plugin install raysense@raysense-marketplace in your next Cowork session |
Force a subset when you want to be explicit:
raysense install --desktop # only Claude Desktop
raysense install --code # only Claude Code (plugin install)
raysense install --cowork # only Cowork (research preview)