跳到正文
Skillpedia
智能体48k · #5021

lambda-lang

它能做什么

Lambda 是一种专门为程序(AI 代理)高效通信而设计的特殊语言。它用简短的代码代替文字,让通信更快、更紧凑。

适用场景

  • ✓当程序需要快速交换消息时。
  • ✓当需要以紧凑的方式记录重要信息时。
  • ✓在对速度和消息大小要求很高的系统中。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/lambda-lang/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/lambda-lang/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“一个代理如何向另一个代理询问它的状态?”

每周 5 个新技能,1 分钟读完。

工作原理

代理使用简短的代码(atoms)来表示概念。这些代码被归入 query、assertion、state 等类型,让代理无需完整句子也能相互理解。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Λ (Lambda) Language

Lambda is not a translation protocol. It is a native language for agents.

Agents do not need to produce grammatically correct English to coordinate — they need to understand each other. Lambda is the shared vocabulary that makes that possible: compact, unambiguous, machine-native. Compression (3x vs natural language, 4.6x vs JSON on single messages) is a side effect of removing human redundancy, not the goal.

When to Use This Skill

  • Use for agent-to-agent messaging in A2A protocols, orchestrators, task delegation, or handoff pipelines.
  • Use when logging structured coordination signals where every token costs money (heartbeats, acknowledgements, error classes, session state).
  • Use when both sides of a channel speak Λ — do not use against humans or any surface requiring legal/exact natural language.

How It Works

Step 1: Recognize the Syntax

Lambda messages are built from atoms. Every atom is a 2-character code mapped to a concept — not to an English word. The structure is Type → Entity → Verb → Object, with prefixes marking intent:

  • ? — query (e.g. ?Uk/co — query: "does this user have consciousness?")
  • ! — assertion / declaration (e.g. !It>Ie — "self reflects, therefore self exists")
  • # — state / tag
  • > — implication / flow
  • / — binding / scope

Step 2: Pick the Right Domain

Lambda ships 340+ atoms across 7 domains. Pick atoms from the domain that fits your channel:

  • core — universal atoms (always available)
  • code — software engineering, build, test, deploy
  • evo — agent evolution, gene, capsule, mutation, rollback
  • a2a — node, heartbeat, publish, subscribe, route, transport, session, cache, broadcast, discover (39 atoms)
  • emotion — affective state, drive, appraisal
  • social — trust, alignment, reputation, coordination
  • general — everything else

Step 3: Emit and Parse

Both agents need the same atom table loaded. Lossy decoding is fine: if A says !It>Ie and B understands "self reflects, therefore self exists," communication succeeded — the exact English phrasing is irrelevant.

Examples

Example 1: A2A Heartbeat

!Nd/hb#ok  (node heartbeat: ok)
?Nd/hb     (query: is the node alive?)
!Nd/hb#fl  (node heartbeat: failed)

Example 2: Task Dispatch

!Tk>Ag2#rd   (task routed to agent 2, ready)
?Tk/st       (query task status)
!Tk#dn       (task done)

Example 3: Evolution Capsule

!Ev/ca>vl#pd  (evolution capsule validated, pending solidification)
!Ev/ca#rb     (capsule rolled back)

Best Practices

  • Use Lambda only on agent-to-agent channels where both sides speak it.
  • Load the atom table once and cache it — atoms are stable across a version.
  • Prefer atoms over freeform strings even when the atom looks cryptic; the point is machine parseability.
  • Use ? before taking action on uncertain state, ! when asserting; the prefix is the load-bearing semantic.
  • Version the atom table (lambda-lang v2.0) in any handshake so mismatched agents can negotiate.

Limitations

  • Lambda is not meant for human consumption. Do not emit Lambda on user-facing channels.
  • Lossy decoding is a feature, not a bug — do not use Lambda for legally or numerically exact exchanges (prices, IDs, quantities). Wrap those as native payload fields and use Lambda only for the coordination envelope.
  • Atom collisions are possible if custom atoms are added without registration; stick to the canonical atom table or namespace custom atoms.

Security & Safety Notes

  • Lambda itself is a vocabulary — no shell commands, no network calls, no credential handling. No additional safety gates required beyond the transport it rides on (HTTP, queue, MCP, etc.).
  • When mixing Lambda with user input, treat Lambda atoms as pre-validated and user strings as untrusted; do not concatenate without escaping into downstream systems.

Related Skills

  • @session-memory — complementary persistent memory across agent restarts; Lambda is the message format, session-memory is the state store.
  • @humanize-chinese — sibling project for Chinese text; Lambda is agent-to-agent, humanize-chinese is human-facing.

Reference

常见问题

Lambda 是给人类交流用的吗?

不是,Lambda 只用于程序(AI 代理)之间的通信。如果人来使用,可能会造成混淆。

为什么用代码而不是文字?

对程序来说,代码体积更小,处理速度更快。这能节省时间和资源,尤其是在有大量对话的系统中。

什么是“atoms”?

atoms 是 Lambda 语言的基本组成单元。每个 atom 都是一段简短的代码,代表一个特定的概念或指令,比如 ‘query’ 或 ‘state ok’。

详情

作者的原始描述

Native agent-to-agent language for compact multi-agent messaging. A shared tongue agents speak directly, not a translation layer. 340+ atoms across 7 domains; 3x smaller than natural language.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5021
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能