Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Mochi is a small, fast, embeddable programming language designed for agents, data, and AI. It combines functional syntax, stream-first semantics, and native support for datasets, graphs, and simulation.
| Date | Stars |
|---|---|
| 2026-07-31 | 336 |
| 2026-08-06 | 336 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# 🍡 Mochi Programming Language
[](https://deepwiki.com/mochilang/mochi)
**Mochi** is a small, statically typed programming language built for clarity, safety, and expressiveness — whether you're writing tools, processing real-time data, or powering intelligent agents.
Mochi is:
* Agent-friendly: structured, safe, and embeddable
* Declarative and functional, with clean, expressive syntax
* Fast and portable: zero-dependency single binary
* Testable by design with built-in `test` and `expect` blocks
* Optimized bytecode via constant folding and liveness-based dead code elimination
Simple enough to explore in minutes. Powerful enough to build something real.
The bytecode VM is built directly into the `mochi` CLI. Use `mochi run` to execute programs.
## Prerequisites
To run Mochi in a container, you’ll need to have Docker installed.
Make sure Docker is running before using any container-based commands.
Also, to use Mochi inside tools like Claude or VS Code Agent Mode, you may need a local LLM (like `llama.cpp`).
## Installation
You can run Mochi in three different ways:
### Prebuilt Binary (Native Recommended)
Just grab the binary and run:
1. Download the latest release from [Releases](https://github.com/mochilang/mochi/releases)
2. Make it executable:
```bash
chmod +x mochi
mochi run examples/hello.mochi
mochi cheatsheet
```
It’s a single binary — no dependencies, no setup.
### Docker
Use Docker to run Mochi without installing anything:
```bash
docker run -i --rm ghcr.io/mochilang/mochi run examples/hello.mochi
docker run -i --rm ghcr.io/mochilang/mochi serve
```
Want to use it like a native CLI? Set an alias:
```bash
alias mochi="docker run -i --rm -v $PWD:/app -w /app ghcr.io/mochilang/mochi"
```
Then use it anywhere:
```bash
mochi run examples/hello.mochi
mochi test examples/math.mochi
mochi test examples/leetcode/...
mochi build examples/hello.mochi -o hello
mochi cheatsheet
```
### Build from Source
To hack on the language or contribute:
```bash
git clone https://github.com/mochilang/mochi
cd mochi
make install # install Deno for TypeScript tests
make build
make test
# Build the optional `vmreport` tool without heavy CGO dependencies
CGO_ENABLED=0 go build -o vmreport ./tools/vmreport
```
This installs `mochi` into `~/bin` and runs the full test suite.
## Usage with Visual Studio Code
There is a VS Code extension under `tools/vscode` that bundles the Mochi language syntax. Run `npm install` and `npm run package` in that folder to build `mochi.vsix` for local installation.
## Mochi Language Server
Mochi includes a lightweight Language Server Protocol implementation used by the
editor extension. Build it with:
```bash
go build ./cmd/mochi-lsp
```
Place the resulting `mochi-lsp` binary somewhere on your `PATH`. Any LSP
compatible editor can then start the server using standard IO. The VS Code
extension automatically launches it when available.
You can also run Mochi as an [MCP server](https://github.com/modelcontext/protocol) inside **VS Code’s agent mode**.
The easiest way is to use a `.vscode/mcp.json` config file in your project:
```json
{
"servers": {
"mochi": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/mochilang/mochi"
]
}
}
}
```
Or, to configure it globally:
1. Press `Ctrl+Shift+P` → **Preferences: Open User Settings (JSON)**
2. Add:
```json
{
"mcp": {
"servers": {
"mochi": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/mochilang/mochi"
]
}
}
}
}
```
To enable LLM tools or runtime settings, add inputs or environment variables as needed.
Now when you toggle "Agent Mode" in Copilot Chat, Mochi will start automatically.
## Usage with Claude Desktop
Mochi is MCP-compatible and works out of the box with Claude Desktop.
Here’s an example config using `llExcerpt of 14,821 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:e204cd00eb0330e5, llm:Repository description: "Mochi is a small, fast, embeddable programming language designed for agents, data, and AI. It combines functional syntax, stream-first semantics, and native support for datasets, graphs, and simulation." Topics: agent, ai, graph, stream
matched fp:e204cd00eb0330e5, llm:Repository description: "Mochi is a small, fast, embeddable programming language designed for agents, data, and AI. It combines functional syntax, stream-first semantics, and native support for datasets, graphs, and simulation." Topics: agent, ai, graph, stream
matched fp:e204cd00eb0330e5, llm:Repository description: "Mochi is a small, fast, embeddable programming language designed for agents, data, and AI. It combines functional syntax, stream-first semantics, and native support for datasets, graphs, and simulation." Topics: agent, ai, graph, stream