Laya in coding tools
Coding agents make many cheap judgement calls: which files matter, how hard a task is, whether a command is risky. Several projects hand those calls to a local Laya model instead of a second LLM call, which saves tokens and keeps code on the machine.
128 projects
turnhelm
milhous
A local-first CLI uses Jev or Laya to select models and reasoning effort for coding tasks
pi-laya
avatsaev
Adds a typed-question Laya tool and configuration command to the pi agent
opencode-laya-plugin
PedroZia
Adds a local Laya decision tool to OpenCode for classifications, routing, scoring, and yes/no decisions
systemone-poc
joskr2
Connects Jev and Laya decision models to coding agents for preflight task routing
layagrep
asherepenko
Searches repositories by natural-language questions using a local Laya decision model
laya-plugin
theo-odore
Routes coding-agent tasks to models based on task type and complexity
laya-auto-mode
tuncer-byte
Adds Laya-powered automatic model routing to the GitHub Copilot Chat model picker
pi-llama-decision
hanouticelina
A pi extension runs llama.cpp decision models as classifiers, including Laya GGUF
laya-agent-gateway
JohnGF
A local Laya gateway routes prompts and session modes for AI coding agents
csharp_harness
jkalend
Provides a Windows coding workspace with an agent, reviewed edits, and typed Laya validation triage
trace-sec
vk.amogh
Security checks for coding agents with SecureBERT and a fine-tuned Laya ONNX router
Laya-Android-SDK
alifthi
A C/C++ inference library for Laya decision models
pi-laya-auto-classifier
finngreig
Adds a Laya-powered local classification gate for tool calls in the Pi coding agent
building-with-decision-models
aaddrick
Teaches coding agents to use decision models and catalogs projects across providers and patterns
semantic-python
SaiRiteshThela
Adds inspectable, bool-coercible semantic decisions to Python control flow through configurable inference backends
laya-compaction
bussolabs
A Claude Code plugin that uses Laya decisions to compact context by dropping or truncating tool history
laya-router
bussolabs
A Claude Code and Codex plugin that routes each turn to a model tier using Laya decisions
laya-coding-harness
MysterTech
Local advisor that uses laya-mlx to suggest model, effort or planning for Claude Code and Codex
laya-coding-decisions
emiliano-go
Trains Laya as a coding-agent judge to score requirement coverage and patch risk
LayaSDLC
Ajinkya-Furange-Patil
Routes bounded engineering decisions through the Laya model in an OpenCode workflow
laya_dp
ranjith702
Fine-tunes Laya as a typed-decision classifier for DevPilot requests
Laya-Workflow-Retrieval
sanjanabhat846
Uses Laya to select verification checklists for engineering code reviews
laya-local
ira-at-work
Benchmarks local Laya for coding-agent command gating and context-compaction decisions
laya-agent-kit
elzii
Provides an MCP bridge and multi-harness integration for a running Laya inference server
Claude Code
laya-codex indexes a repository locally and gives Claude Code the relevant code before each task, using tree-sitter, BM25 and a Laya re-ranker. Install (macOS Apple Silicon or Linux x86_64):
curl -fsSL https://raw.githubusercontent.com/pilotspace/laya-codex/main/install.sh | sh
/plugin marketplace add pilotspace/laya-codex
/plugin install laya-codex@laya-codex
Its README reports that Claude Code read 38% fewer code tokens and took 21% fewer turns in a paired benchmark of 60 tasks on three repositories.
arbiter serves Laya behind a Jev-compatible API with an MCP server and a Claude Code plugin.
Model routing in coding agents
pi-pignon asks a local laya-serve (or Jev) how hard each prompt is and switches the pi agent's model:
pi install npm:pi-pignon
uv tool install "laya[serve]"
LAYA_HOST=127.0.0.1 laya-serve
Judges and gates
- adecider: typed judgements for any coding agent through a CLI, MCP tool or HTTP, with local Laya as the default backend.
- omp-laya-judge: a local judge for oh-my-pi. It reports a mean 160 ms per question on CPU and 8/12 correct on its benchmark.
- laya-rust: its
exfil_triageexample flags shell commands that send credentials off the machine.
Workspaces
keel is a local-first macOS coding workspace. A local Laya selector (Core ML) or an opt-in hosted Jev picks a route for each new task, and the host validates the choice before applying it.
Caveats
omp-laya-judge found Laya confidently wrong on arithmetic and parity questions (confidence 0.80 and 0.84), so it routes those to the LLM whatever the confidence. Keep Laya on semantic questions and keep a fallback. laya-codex downloads a model of about 850 MB on install.
Hosted option
Several tools on this page can talk to Jev instead of a local model. Anything built on the official TypeSafe SDKs can point at a hosted Laya instead: layahost documents the switch as changing TYPESAFE_BASE_URL and the key. That saves a model download on every developer machine, at the cost of sending prompts and code snippets to a server in the EU. layahost is run by the makers of laya.tools.
More ways to use Laya