独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
B

bloriner/terse

Terse — an AI-native code language: a machine-designed, token-dense format for AI coding agents. Open source, Apache-2.0.

装之前:没有可直接复制的命令 · 许可证 Apache-2.0 · 链接可访问

第一步:这条暂时没有可执行的下一步,可先看原仓库 https://github.com/bloriner/terse

无 SECURITY.md
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网

我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →

★ 数取值
1 ★ · bloriner/terse · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-23 · 最近见到 2026-11-14 · 共见到 26 次 · 被 23 个来源列出
评分构成
综合分 2,300 · 1 ★ · 23 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 bloriner/terse;我们收录于 2026-10-23;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

# Terse

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

An AI-native code language: a machine-designed prefix HIR for AI coding agents.
AI agents write human-designed languages — verbose, infix, and syntax-error-prone. Terse is a canonical prefix intermediate representation designed for machines: fixed-arity ops, one spelling per construct, structured errors built for repair loops, and a surface syntax measured to be token-cheaper than Python.
## Why
Every mainstream language was designed for human eyes: infix operators with precedence tables, multiple spellings for the same construct (if vs ternary vs statement), significant whitespace, and error messages written for people. When an AI coding agent emits code, each of those is a failure mode — a misplaced paren or a precedence guess costs a repair iteration.
Terse removes the decisions a model shouldn't have to make:
Prefix, always. (add a (mul b c)) — the op comes first, so the structure of every form is known after one token. No precedence tables, no associativity, exactly one way to parenthesize anything.
Canonical. One spelling per construct, enforced by the parser. if is always prefix; true/false/null are always lowercase; bare symbols are always variable references. Canonicality shrinks the output distribution a model must learn and makes diffs, caches, and dedup exact.
Dense. The v0.2 syntax was shaped by cl100kbase measurements: juxtaposed parens, head-position calls, n-ary if, and fusion ops for hot patterns. Reference solutions measure 0.60–1.00× Python tokens across 8 bench tasks (see bench/).
Fixed arities, checked at parse time. (add 1) fails with E103 arity-mismatch before anything runs.
Structured errors for repair loops. Every failure is a TerseError with a stable code (E100–E300), phase, op, source position, expected/got, and a concrete hint. Feed err.todict() back to the model and the fix is usually one shot.
Constrained-decoding grammar. terse/grammar.gbnf is a GBNF grammar for the full language — under constrained decoding, syntax errors become impossible, and the only remaining failures are semantic ones the error protocol already covers.
## Quickstart
python
import terse
# Parse: surface syntax -> AST tuples
ast = terse.parse("(let x 40 (add x 2))") # ("let", "x", 40, ("add", ("var", "x"), 2))
# Run: (value, printedoutput)
value, output = terse.run(ast) # (42, "")
# Transpile: AST -> readable Python, verified by exec
src = terse.topython(ast)
ns = {}
exec(compile(src, " ", "exec"), ns)
ns["terseresult"] # 42
CLI:
bash
python -m terse run examples/fib.terse # run; prints program output, "=> " to stderr
python -m terse run prog.terse --gas 1000000 # with a custom gas budget
python -m terse transpile prog.terse # print the generated Python
python -m terse check prog.terse # parse only; prints OK or error JSON (exit 0/1)
Errors are machine-readable JSON on stderr:
bash
$ python -m terse check broken.terse
{"code": "E103", "phase": "parse", "op": "add", "pos": {"line": 1, "col": 1, "index": 1}, ...}
A taste of the language:
lisp
; recursive fibonacci via def
(def fib(n)(if(lt n 2)n(add(fib(dec n))(fib(dec(dec n))))))
(print(fib 10)) ; => 55
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/bloriner-terse/)
来源
awesome · https://github.com/bloriner/terse
按领域浏览
MCP 服务
Traction
1 ★
收录来源
23 个独立来源
收录于
今天
安全策略
我们没在该仓库根目录找到 SECURITY.md(这不代表不安全)

同类推荐

全部 6,229 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引