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

decision-making

tzt-company

A local demo runs Laya for multilingual text decisions and Git commit risk checks

1·GitHub repo

code-oracle

wahyuzero

Verifies code changes with AST checks and Laya-based residual-drift evaluation

1·GitHub repo

adecider

Agents365-ai

Provides typed decision tools for coding agents with pluggable local Laya, Jev, and OpenAI-compatible backends

1·GitHub repo

pi-laya-skill-router

ericmjl

Routes pi coding-agent requests to relevant skills using a local Laya model

1·GitHub repo

laya-router

vuongvm812

Sets up local Laya classification and Jev Router proxies for coding clients

1·GitHub repo

Claude-laya

HardikCoder45

A Claude Code plugin uses Laya to select models, skills, agents, and plugins for each prompt

1·GitHub repo

pi-laya-bridge

DrGekoz

Adds a local Laya-backed typed-decision tool to the Pi agent

1·GitHub repo
U

@ursuciprian/reflex

ursuciprian

Gates coding-agent commands and scans content for prompt injection using local rules, Jev, or Laya

576·npm package
J

opencode-jev-compaction

jlegends

Two OpenCode plugins prune stale tool calls and optionally refine decisions with local Laya

250·npm package
C

laya-coding-curriculum-78k

callensxavier

A coding curriculum dataset for training Laya-LoRA and other structured-decision models

0·HF dataset

Laya-GuardRails-Harness

morre95

A Python harness evaluates coding-agent actions with Laya typed decisions and policy rules

0·GitHub repo

claude-laya

jverhoeks

Scores local Claude Code session transcripts with Laya

0·GitHub repo

laya-claude-plugin

noorforeverone

Provides a Claude Code plugin with local Laya decision tools and an MCP server

0·GitHub repo

opencode-memory

pedroteste00000008-stack

Adds long-term memory to OpenCode using Laya decisions, embeddings, reranking, and a local vector store

0·GitHub repo

layaagent

rotsl

Routes tasks through Laya classification and deterministic mediation to local or API-based coding agents

0·GitHub repo

pi-laya

K0stIa

Adds typed-decision tools and session controls to Pi using a Laya-compatible service

0·GitHub repo

laya-review

x007007007

Provides local-first code review using Laya decision rules through ONNX Runtime

0·GitHub repo

laya-memory

ganeshdipdumbare

A local Laya classifier selects relevant durable memories for coding agents across sessions

0·GitHub repo

laya-codex-bench

pbrehmer-ai

Benchmarks Laya-assisted Codex workflows for call reduction, latency, and decision quality

0·GitHub repo

laya-agent-kit

Maxwell00000086

Local Laya decision tools integrate with coding agents and ChatGPT through MCP

0·GitHub repo

laya-mlx-advisor

esse

Uses a resident Laya-MLX model to adapt reasoning effort in Codex CLI and Claude Code

0·GitHub repo

laya-session-guard

Mr-Neutr0n

A fine-tuning experiment trains and evaluates Laya for coding-session security decisions

0·GitHub repo

laya-claude-code

harshadptl

Claude Code plugin that uses laya-mlx to pick the model tier and time context compaction

0·GitHub repo

laya-codex-router

mcmcmcmmmc

Routes Codex model calls and thinking effort locally using Laya

0·GitHub repo

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_triage example 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