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

salt

rtuszik

Scores messages from coding-agent transcripts with an on-device Laya model and produces reports

0·GitHub repo

opencode-system-1-router

jonasneustock

An OpenCode plugin routes tasks to cloud models with Jev or local Laya and routes subagents independently

0·GitHub repo

pi-laya

Dephilia

Routes prompts among model tiers and gates confidential prompts using a local Laya sidecar

0·GitHub repo

codex_laya_dev

sirogarasu

Provides a Codex devcontainer and GPU API sidecar for running the Laya model

0·GitHub repo

cam-laya-mcp

vdqvinh2004

Adds optional local Laya-MLX decision tools for coding agents

0·GitHub repo

laya-coding-router

0xSarnavo

Fine-tunes Laya to route coding-agent prompts to skills, tools, MCP servers, and models

0·GitHub repo

ai-second-brain-lab

dante01yoon

Combines an Obsidian knowledge workflow, coding-assistant hooks, local Laya classification, and a 3D Markdown viewer

0·GitHub repo

tool-output-pruning-lab

Dymyt-ry

Benchmarks Laya and other selectors for pruning tool output in coding-agent sessions

0·GitHub repo

Verdict

TobyNoSkillSon

Keeps local System One models, including Laya, ready for coding-agent classification and scoring

0·GitHub repo

everything-laya

its-negy-lmsy

Provides an MCP server and Python toolkit for self-hosted Laya

0·GitHub repo

laya-code-router

SupremeDreamZ

Routes Claude Code and Codex turns using a local Laya model

0·GitHub repo

pi-laya-router

codenamekt

Routes Pi coding-agent prompts to mapped models using a local Laya intent classifier

0·GitHub repo

laya-code-review-action

Mcbeer

Reviews pull-request diffs against configurable rules using Laya's typed-decision model

0·GitHub repo

gyra

Gowtham-R-2002

Fine-tunes Laya for fast coding-agent decisions and evaluates it against labeled tests

0·GitHub repo

laya-compaction

tristankenney

A Claude Code plugin that compacts context using scores from a local Laya model

0·GitHub repo

laya-compact

AxeForging

A local context-compaction tool that uses Laya to score which tool calls remain needed

0·GitHub repo

laya-gateway

aios-b-612

Routes coding-agent tool choices through Laya in a local LLM gateway

0·GitHub repo

laya-decide

Luminousyyh

A DeepSeek Harness skill gates file and command actions using a local decision model

0·GitHub repo

lica

np9royal

Adds typed decision packs powered by Laya to coding-agent hooks

0·GitHub repo

claude_guardrail_laya

pedro-ggomes

Uses Laya to score Bash commands in a Claude Code pre-tool guardrail

0·GitHub repo

jev-decision-layer

qualixar

A decision layer routes coding-agent tasks through Jev with optional local Laya

0·GitHub repo

local-software-factory

champion19007

Runs a local coding assistant that uses Laya for task triage and Qwen for code generation

0·GitHub repo

herdr-laya-router

candidosales

Routes coding tasks to AI agents using a local Laya classifier

0·GitHub repo

toolhint

pedrocr83

A local Laya classifier ranks skills, connectors, and tools for coding prompts

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