ModsCode / Claude Code Mods / Ranking / laa-mods
laa-mods
Mods for the laa toolkit: blocks file changes and commits on the default branch, tracks the running laa pipeline above the prompt and in the footer, /laa-help, panes to triage learnings and review findings, and next-step suggestions.
What it does
- Draws a band above the prompt, a pane, toasts
- Watches Edit, Write, NotebookEdit, Bash calls and can refuse them
- Hooks prompt.suggest, session.append, session.end, session.start and 2 more
- Keeps its own state between turns
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Handles errors
Code to start from
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like laa-mods by Lucas Almeida (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/lucasantunesdealmeida-laa-mods/
// Written by ModsCode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Text } = $.ui.resolve(e)
return (
<Box flexDirection="column">
<Box>
<Text dimColor>
{"laa · "}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text dimColor>
{" · "}
</Text>
<Text dimColor>
{" · "}
</Text>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "laa · open learnings" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const repo = '…'
const title = '…'
const scope = '…'
const kind = '…'
const target = '…'
const signal = '…'
const proposal = '…'
const title2 = '…'
const scope2 = '…'
const kind2 = '…'
const target2 = '…'
const signal2 = '…'
const proposal2 = '…'
const title3 = '…'
const scope3 = '…'
const kind3 = '…'
const target3 = '…'
const signal3 = '…'
const proposal3 = '…'
return (
<Box flexDirection="column">
<Text dimColor>
{repo}
</Text>
<Text>
No open learnings. Nothing to evolve.
</Text>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{title}
</Text>
<Text dimColor>
{scope}
{" · "}
{kind}
{" · "}
{target}
</Text>
<Text>
{signal}
</Text>
<Text color="suggestion">
{"→ "}
{proposal}
</Text>
<Button label="Reject" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{title2}
</Text>
<Text dimColor>
{scope2}
{" · "}
{kind2}
{" · "}
{target2}
</Text>
<Text>
{signal2}
</Text>
<Text color="suggestion">
{"→ "}
{proposal2}
</Text>
<Button label="Reject" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{title3}
</Text>
<Text dimColor>
{scope3}
{" · "}
{kind3}
{" · "}
{target3}
</Text>
<Text>
{signal3}
</Text>
<Text color="suggestion">
{"→ "}
{proposal3}
</Text>
<Button label="Reject" />
</Box>
<Box marginTop={1}>
<Button label="Evolve with /laa:evolve" variant="primary" hotkey="e" />
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const short = '…'
const branch = '…'
const plural = '…'
const after = '…'
await $.ui.toast(`laa · blocked ${short} on ${branch}. Create a task branch first.`)
await $.ui.toast(`laa · ${plural} logged · ${after} open · /laa-learnings`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
plugins/laa-mods/hooks/register.tsx lines 517–588 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const s = await read($, status)
if (e.props.hasSurvey || !s) return next(e)
const r = await read($, run)
const allowed = await read($, allowMain)
const { Box, Button, Text } = $.ui.resolve(e)
const parts = []
if (s.branch) {
if (s.isDefault && !allowed) parts.push(<Text key="branch" color={C.danger}>✗ {s.branch} · edits blocked</Text>)
else if (s.isDefault) parts.push(<Text key="branch" color={C.warning}>{s.branch} · edits allowed</Text>)
else parts.push(<Text key="branch">{s.branch}</Text>)
}
if (r?.gate) {
parts.push(<Text key="run" color={C.gate}>★ laa:{r.skill} · waiting on you: {r.gate}</Text>)
} else if (r) {
parts.push(
<Box key="run">
<Text>● laa:{r.skill}{stepText(r.step)}</Text>
{r.engine && <Text dimColor> · engine {r.engine}</Text>}
</Box>,
)
} else if (s.paused) {
parts.push(
<Box key="paused">
<Text dimColor>○ paused laa:{s.paused.skill}{stepText(s.paused.step)}</Text>
<Text color={C.action}> → /laa:resume</Text>
</Box>,
)
}
if (s.openHigh > 0) {
parts.push(
<Box key="findings">
<Text color={C.warning}>{plural(s.openHigh, 'high finding')} open</Text>
<Text color={C.action}> → /{FINDINGS_COMMAND}</Text>
</Box>,
)
}
if (s.openLearnings >= 3) {
parts.push(
<Box key="learnings">
<Text color={C.warning}>{plural(s.openLearnings, 'open learning')}</Text>
<Text color={C.action}> → /laa:evolve</Text>
</Box>,
)
} else if (s.openLearnings > 0) {
parts.push(<Text key="learnings" dimColor>{plural(s.openLearnings, 'open learning')}</Text>)
}
const mute = <Button key="muteMap" label="mute" hotkey="m" plain onPress={() => muteMap($)} />
if (s.mapAge === null && !s.isMapMuted) {
parts.push(
<Box key="map">
<Text dimColor>no project map</Text>
<Text color={C.action}> → /laa:adopt </Text>
{mute}
</Box>,
)
} else if (s.mapAge !== null && s.mapAge >= STALE_MAP && (!s.isMapMuted || s.mapAge >= UNMUTE_MAP)) {
parts.push(
<Box key="map">
<Text color={C.warning}>project map {s.mapAge} commits old</Text>
<Text color={C.action}> → /laa:adopt </Text>
{!s.isMapMuted && mute}
</Box>,
)
}
return (
<Box key="laa">
<Text dimColor>laa · </Text>
{parts.flatMap((p, i) => (i === 0 ? [p] : [<Text key={`sep${i}`} dimColor> · </Text>, p]))}
</Box>
)
})plugins/laa-mods/hooks/register.tsx lines 626–650 · Pane
on('ui.render', { component: 'Pane', requestId: LEARNINGS_PANE }, async ($, e) => {
const list = await read($, learnings)
const { Box, Button, Text } = $.ui.resolve(e)
if (!list) return <Text dimColor>Run /{LEARNINGS_COMMAND} to load this repo's learnings.</Text>
return (
<Box flexDirection="column">
<Text dimColor>{list.repo}</Text>
{list.entries.length === 0 && <Text>No open learnings. Nothing to evolve.</Text>}
{list.entries.map(entry => (
<Box key={`entry${entry.index}`} flexDirection="column" marginTop={1}>
<Text bold>{entry.title}</Text>
<Text dimColor>{entry.scope} · {entry.kind} · {entry.target}</Text>
<Text>{entry.signal}</Text>
<Text color={C.action}>→ {entry.proposal}</Text>
<Button key={`reject${entry.index}`} label="Reject" onPress={() => rejectEntry($, list.repo, entry)} />
</Box>
))}
{list.entries.length > 0 && (
<Box marginTop={1}>
<Button key="evolve" label="Evolve with /laa:evolve" variant="primary" hotkey="e" onPress={() => startEvolve($)} />
</Box>
)}
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 Lucas Almeida Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
How to build this: Pane (panel), Deny a tool call
What its code calls
runs programswrites filestool callsremembers
What its code shows
Read from the source at commit ae4ebe6331dd on 2026-10-11. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.plugins/laa-mods/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.2 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.git (reaches the network) |
| Reads and sends | Whether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads files and reaches the network |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets ModsCode show its code; otherwise the code is linked.MIT |
| Settings hooks | Hooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.no settings hooks: its function hooks alone |
| Servers it ships | MCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/ |
| Skills, commands, agents | What its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.no skills, commands, agents or workflows |
| Tools and MCP | Whether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).calls no tool, MCP server or command |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds command ? |
| Events it hooks | By what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: command.run, tool.call (Edit, Write, NotebookEdit (+3)), session.append · shapes: skill.prompt · reads: prompt.suggest · also: session.start, turn.complete, session.end, ui.render (SessionMode, AbovePrompt, CommandOutput (+1)) · timers: clock.after |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.files: a path computed at run time, …/… |
| Writes, by name | The files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.files: a path computed at run time; the prompt box |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and ModsCode does not vouch for what this code does. Read its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
From its marketplace
Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:
/plugin marketplace add LucasAntunesdeAlmeida/laa-claude/plugin install laa-mods@laa/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (ae4ebe6331dd). Compare them before you install. /reload-plugins loads it into a session that is already open.
Try the commit ModsCode read
No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:
git clone https://github.com/LucasAntunesdeAlmeida/laa-claudegit -C laa-claude checkout ae4ebe6331ddbf0d8d3cbd159c854af4df197b29claude plugin validate laa-claude/plugins/laa-modsclaude --plugin-dir laa-claude/plugins/laa-modsThe validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.
Ask Claude about it
With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:
Read the ModsCode mod "lucasantunesdealmeida-laa-mods" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- code-modernizationAnthropic★ 37,653
- crit-tuiTomasz Tomczyk★ 1,196
- ai-maestro-secrets23blocks-OS★ 817
- remctlFederico Viticci★ 595
- task-orchestrator-modJeff Picklyk★ 208
- agent-radarHamza Zafar★ 184
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/lucasantunesdealmeida-laa-mods/)