What is laya?
laya is a Claude Code mod by anshc022 that runs the Laya decision model on your machine: checks each prompt, hints Claude at the right folder and task type, gives Claude a fast laya decide tool, and shows every decision in a band. It is listed under Interface and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | anshc022 |
| Repository | anshc022/laya-claude-code |
| Popularity | no public popularity data yet |
| Category | Interface |
| Security | High risk (48/100) |
| Rank | #2,622 of 5,272 Claude Code mods; #1,091 in Interface |
| License | Apache-2.0 |
| Last commit | 2026-09-28 |
| Hooks | 5 events |
| Sees | every prompt, mcp__laya__decide calls |
| Draws on | AbovePrompt, Pane |
Is laya safe to install?
laya scores 48/100 on the MCPMods security check: High risk. Things to review: sends data over the network; starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 3 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| Sends data over the network | Review |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.clock.sleep | |
$.command.register | |
$.env.get | reads env vars |
$.fs.list | reads files |
$.http.fetch | network requests |
$.process.run | runs processes |
$.process.spawn | |
$.session.cwd | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.tool.register | drives Claude |
$.ui.close | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install laya?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/anshc022/laya-claude-code claude plugin validate ./laya-claude-code/plugins/laya
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add anshc022/laya-claude-code && claude plugin install laya@laya-tools
Or ask Claude to set it up
Paste this into Claude Code and it installs laya for you:
Install the "laya" Claude Code mod from https://github.com/anshc022/laya-claude-code/tree/main/plugins/laya. Run claude plugin validate on it first and show me what it can access before you enable it.