{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "mizorewww-laya-mlx--watch-local-snake-agent-decide",
 "repo": "mizorewww/laya-mlx",
 "repo_url": "https://github.com/mizorewww/laya-mlx",
 "repo_slug": "mizorewww-laya-mlx",
 "title": "Watch a local Snake agent make live decisions",
 "page_title": "How to watch a local Snake agent make live decisions with Laya MLX",
 "summary": "Run the terminal Snake demo where Laya picks every move on your Mac.",
 "who": "A developer or curious user who wants to see typed decisions running in real time before building with them.",
 "problem": "It is hard to judge what a typed decision runtime does until you watch it act in a loop.",
 "outcome": "A terminal Snake game in which each move comes from a local Laya decision, with speed controls.",
 "steps": [
  "Install the demo extra: `pip install 'laya-mlx[demo]'`",
  "Download the multilingual checkpoint before the offline demo: `hf download aac6fef/laya-multilingual-mlx`",
  "Open a terminal of at least 104 × 35 cells and start the game: `laya-snake`",
  "Use Space to pause, the up and down arrows to change speed, R to reset and Q to quit.",
  "Optionally run `laya-snake --optimize --max-speed` to try the compiled and prefix-reuse path."
 ],
 "agent_prompt": "In the laya-mlx repo (github.com/mizorewww/laya-mlx), install the demo extra and start the laya-snake terminal game in a terminal of at least 104 by 35 cells. Report the moves per second shown and whether any safety intervention occurred. Verify that the game runs without an external API key or network call during play.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The Snake frame time is not the one-question latency benchmark, and the README reports its own speed results from one paired M3 Max test.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "An Apple Silicon Mac running macOS 14 or later",
  "Python 3.11 or later",
  "Internet access for the first checkpoint download, after which inference is fully local"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mizorewww-laya-mlx/watch-local-snake-agent-decide/",
 "md": "https://dedupedai.com/use-cases/mizorewww-laya-mlx/watch-local-snake-agent-decide/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mizorewww-laya-mlx--watch-local-snake-agent-decide.json",
 "api_version": "v1"
}
