madewithlaya

Catalog / Tools & apps

0089GitHub

Chakravyuha: a browser ring-maze where every move is a Laya decision

Abhimanyu walks the Mahabharata ring formation to the centre. Each step goes to local Laya as typed questions; unsure or unplayable answers are marked red and corrected.

Open source ↗ github.comcostfree, local (swapped from the closed Jev API)time-
kspviswa/chakravyuha-ossREADME ↗
# Chakravyuha — Laya guides Abhimanyu

A browser labyrinth where **every move is a decision by Laya**. Abhimanyu starts on the
outermost ring of a *chakravyuha* — the concentric battle formation of the Mahabharata —
and has to reach the **target at the centre** past the warriors standing in the rings.

The maze is serialised to text, sent to the Laya model (running locally) as a set of typed
questions, and the move Laya picks is the move that gets played. Where Laya is unsure — or
answers with something that cannot be played — the walk **marks the step red, plays the
correct move instead, and carries on**. So the path is either all green or a mix of green
and red, and that colour, not the outcome, is what reports the model.



*The screenshots here are taken against a mock upstream so that rendering them spends no
model time — the app itself has no stub mode.*

## What this is

**A fun experiment.** Viswa and Sarathy (his AI) built this to explore the Laya language
model by giving it a toy it could not bluff its way through. Two questions drove it:

1. **Can a model play a game purely through typed answers?** Not free text, not tool
   calls: a state goes in, a finite set of typed choices comes out, and the game obeys.
2. **Can its confidence score be trusted?** If a high-confidence move is always the right
   move, then the score is worth gating on. If it is not, the score is decoration — and
   that is worth knowing before anyone builds on it.

The maze is the excuse. The real output is the measurement: **green where Laya's own move
was played, red where it was overruled**, and a history page that asks whether its
confidence predicts its accuracy.

It is a toy, and it is deliberately unforgiving: a wrong move is visible on the board, and
every claim on the history pag

Also filed under Tools & apps

  1. 0005

    laya-mlx plays Snake at 60 decisions per second

    介绍比Jev快50倍,在你设备上跑的laya-mlx! 只在你的设备上占用最高1G内存 Laya是一个开源的类似于Jev的,基于文本输出概率的分类系统 我将其移植到MLX,并且做了一些性能优化! 视频中就是这个模型在我的本地M3Max上玩贪吃蛇 这个模型能够以每秒决策60次的速度玩贪吃蛇! https://t.co/31KGUiNunb

    @mizorewww · Tools & apps · free, local · 60 decisions/s

  2. 0112

    Laya on Axera AX650 and AX8850 edge NPUs, under 70 ms

    AXERA-TECH's conversion of all three Laya checkpoints for its edge AI chips, reported at latency under 70 ms per decision on AX650/AX8850.

    AXERA-TECH · Tools & apps · free, on-device · < 70 ms on AX650 / AX8850

  3. 0099

    laya-mcp (PerryLink): a warm sidecar that fixes Laya's silent truncation and constant noul

    MCP server plus HTTP sidecar: token-budget preflight that reports what would be cut, a persisted calibration store, structured errors, and a noul fix (P(true) 0.5 → 1.0).

    @PerryLink · Tools & apps · free, local

  4. 0097

    Gomoku against Laya-MLX: you play black, the model picks white's move from six candidates

    Local 15x15 Gomoku on Apple Silicon. Rules in Python, board in the browser, every AI move one real Laya choice over up to six candidates, probabilities shown. No Gomoku training.

    smile-magic · Tools & apps · free, local