By MauroProto
Claude Code plugin that gates ambiguous coding tasks with lateral hypotheses, probes, and validation.
Control and inspect Lateral Mode. Use when the user asks to enable, disable, inspect, reset, or measure lateral mode.
Use for ambiguous, intermittent, cross-layer, flaky, or repeatedly failing bugs. Do not use for obvious localized fixes.
Use for architecture, API design, refactor strategy, migration planning, or feature planning with real tradeoffs.
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Uses power tools
Uses power tools
Uses Bash, Write, or Edit tools
Uses Bash, Write, or Edit tools
Lateral Mode is a local Claude Code plugin and Python CLI that helps coding agents avoid premature edits on ambiguous work.
It keeps simple tasks fast. When a prompt looks like an intermittent bug, cross-layer failure, incident, flaky test, or risky design decision, it asks the agent to anchor the problem, generate distinct hypotheses, gather cheap evidence, converge, and validate.
anchor -> hypotheses -> probes -> evidence -> convergence -> edit -> validation
One command:
curl -fsSL https://raw.githubusercontent.com/MauroProto/lateral/main/install.sh -o /tmp/lateral-install.sh && bash /tmp/lateral-install.sh
The installer:
~/.lateral-mode/source~/.lateral-mode/venvlateral CLI~/.local/bin/laterallateral-mode@lateral-local when Claude Code is availableManual install:
git clone https://github.com/MauroProto/lateral.git
cd lateral
python3 -m pip install -e .
claude plugin marketplace add .
claude plugin install lateral-mode@lateral-local
Run without installing the plugin:
claude --plugin-dir ./plugins/lateral-mode
Plugin bundle:
plugins/lateral-mode/
Available skills:
/lateral-mode:lateral-debug
/lateral-mode:lateral-design
/lateral-mode:lateral-control
Available plugin agents:
lateral-mode:reframer
lateral-mode:verifier
Available command inside Claude's Bash tool:
lateral-mode status
lateral-mode on
lateral-mode off
lateral-mode auto
lateral-mode lite
lateral-mode strict
lateral-mode reset
lateral-mode metrics
lateral-mode report
lateral status --path .
lateral mode strict --path .
lateral checkpoint --path . --json '{"anchor":{"problem":"..."},"hypotheses":[...],"winner":"H1"}'
lateral outcome --path . --resolved yes --rating 4 --validation passed
lateral report --path .
| Mode | Behavior |
|---|---|
off | No lateral behavior. |
auto | Default. Classifies each prompt and activates only when useful. |
lite | Adds lateral guidance but does not block edits. |
strict | Blocks premature edits until the agent records anchor, hypotheses, probes, and convergence. |
The Claude Code plugin installs three hooks:
| Hook | Purpose |
|---|---|
UserPromptSubmit | Classifies the prompt and injects lateral context only when needed. |
PreToolUse | Blocks risky Bash commands and premature writes in strict mode. |
Stop | Requires validation or an explicit validation exception before closing lateral work. |
Strict mode allows writes only after a checkpoint with:
Example checkpoint:
lateral-mode checkpoint --json '{
"anchor": {
"problem": "Checkout sometimes succeeds but payment is missing later",
"success_criteria": ["UI, API, and webhook state agree"]
},
"hypotheses": [
{
"id": "H1",
"mechanism_class": "webhook_delivery",
"layer": "integration",
"first_probe": "inspect webhook delivery logs for missing event ids"
},
{
"id": "H2",
"mechanism_class": "state_race",
"layer": "backend",
"first_probe": "trace payment status writes around checkout completion"
}
],
"winner": "H1"
}'
Lateral Mode records local JSONL telemetry for:
Record real outcomes:
lateral-mode outcome --resolved yes --rating 5 --validation passed
lateral-mode outcome --resolved no --rating 2 --validation failed --notes "wrong hypothesis"
Inspect results:
lateral-mode metrics
lateral-mode report
lateral-mode report --json
The current MVP is validated against synthetic fixtures and packaging smoke
tests. It does not yet prove higher real-world bug resolution. Use outcome
records across 20-50 real tasks to compare baseline agent behavior against
lateral-mode auto.
.
├── install.sh # one-command installer
├── lateral/ # Python engine and CLI
├── plugins/lateral-mode/ # Claude Code plugin bundle
├── .claude-plugin/marketplace.json # local Claude plugin marketplace
├── eval/fixtures/ # router and gate eval fixtures
├── tests/ # unit and integration tests
└── Makefile # verification entrypoint
make verify
This runs:
Context-aware Guard integration for Claude Code sessions in pnpm and GitHub repositories.
npx claudepluginhub mauroproto/lateral --plugin lateral-modeHarness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Feature development with code-architect/explorer/reviewer agents, CLAUDE.md audit and session learnings, and Agent Skills creation with eval benchmarking from Anthropic.
Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques
Reliable automation, in-depth debugging, and performance analysis in Chrome using Chrome DevTools and Puppeteer
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.