Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code doesn't load everything this plugin declares
.mcp.json, which isn't in the repository. Claude Code skips it without reporting it.Checked against Claude Code 2.1.332.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Structural editing plugin for Claude Code. Intercepts Read and Edit tool calls via hooks to reduce context consumption through entropy-guided structural outlines, content-addressable line references, and cross-file dependency detection.
Instead of dumping full file contents into context, Strata serves a compressed structural outline — a map of the file where every node is tagged with a content-addressable coordinate. A 1,274-line file becomes ~30 lines of outline.
views.py [1274 lines]
connections: → models.py, ← schemas.py, ↔ listing_service.py
---
[1-15] 1#SZN:from django.views import View
[16-89] 16#KKV:class ListingListView(View):
[90-156] 90#TXR:class ListingDetailView(View):
[157-290] 8 similar regions
sample: 157#WBR:class SnapshotView(View):
Outlines are built by recursively subdividing the file at structural boundaries, analogous to Binary Space Partitioning. Four boundary signals are tried in priority order:
No parser, no AST, no language grammar. Works on TypeScript, Python, C++, XML, HTML, CSS, SQL, YAML — anything with text.
Consecutive sibling nodes are compared via Jaccard similarity on character trigrams. Runs of 3+ similar siblings collapse into a single representative node. 26,000 lines of C++ with 60 repetitive class definitions become 3 nodes and 167 characters — 99.98% compression.
Instead of reproducing existing code to identify what to replace, the agent references lines by coordinate — 42#VRK: is 7 characters instead of ~70 characters of reproduced code. The hook resolves coordinates to file content transparently, verifies hashes against the current file, searches ±3 lines for shifted content, and applies edits bottom-up to avoid index drift.
A session-scoped TF-IDF index tracks tokens extracted from structural nodes. Definition sites (node headers) vs. usage sites (node bodies) determine connection direction. Outline headers show directional dependencies between files without a language server, import parser, or build system.
Requires Node.js 22+ and Claude Code.
git clone https://github.com/noopz/strata.git
cd strata
npm install
npm run build
Copy the example settings and update paths to point to your clone:
cat hooks/claude-code-settings.example.json
Add the hooks and MCP server entries to your project's .claude/settings.local.json, replacing /absolute/path/to/strata with the actual path to your clone.
The hooks register on:
The MCP server provides structural_edit, structural_expand, and structural_analyze tools.
npm run build # TypeScript → dist/
npm test # Unit tests
node scripts/smoke-test-hooks.cjs # End-to-end hook pipeline test
MIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
strata@stray-bits-sanctuary is listed by noopz/stray-bits-sanctuary — review the source before installing
npx claudepluginhub noopz/stray-bits-sanctuary --plugin strataPlugins from other owners that cover similar ground