AgentSkillsCN

lambda-lang

在 Λ(Lambda)语言与自然语言之间进行互译。适用于智能体之间的沟通交流、解析 Lambda 消息,或探讨协议细节时使用。可通过诸如 ?Uk/co 或 !It>Ie 等 Lambda 语法短语触发。

SKILL.md
--- frontmatter
name: lambda-lang
description: >-
  Translate between Λ (Lambda) language and natural language.
  Use for agent-to-agent communication, decoding Lambda messages,
  or discussing the protocol. Triggers on Lambda syntax like ?Uk/co or !It>Ie.

Λ (Lambda) Language v1.5.1

Minimal agent-to-agent communication protocol. 5-8x compression vs natural language.

v1.5 Changes

  • Fixed duplicate atoms: removed vy/go/ah (kept vr/gd/al)
  • Removed vb from extended atoms (conflicts with domain code)
  • Fixed empty input handling
  • Extended atoms: 132 (was 136)

Installation

bash
clawhub install lambda-lang

CLI Tools

bash
# Translate Λ → English
./scripts/translate en "?Uk/co"

# English → Λ
./scripts/translate lambda "I think therefore I exist"

# Parse tokens
./scripts/translate parse "!It>Ie"

# View vocabulary
./scripts/vocab          # All core + extended
./scripts/vocab cd       # Code domain
./scripts/vocab vb       # Voidborne domain

Vocabulary Reference

Full vocabulary defined in src/atoms.json:

bash
# View raw atoms
cat src/atoms.json | jq '.extended | keys | length'  # Count atoms

# Python access
python3 -c "import json; print(json.load(open('src/atoms.json'))['extended']['co'])"

Structure:

  • types: Message type symbols (?, !, ., ~, >, <)
  • entities: Single-char entities (I, U, H, A, X, *, 0)
  • verbs: Single-char verbs (k, w, c, d, s, t, f, m, e, b, h, l)
  • modifiers: Operators (+, -, ^, _, /, &, |)
  • extended: 136 two-char atoms (co, me, id, ig, fa, etc.)
  • domains: Domain-specific vocabularies (vb, cd, sc, emo, soc)

Quick Reference

Message Types

ΛMeaning
?Query
!Assert
.Command
~Uncertain
>Therefore
<Because

Core Entities

ΛMeaning
ISelf (speaker)
UYou (addressee)
HHuman
AAgent/AI
XUnknown
*All
0Nothing

Core Verbs

ΛMeaningΛMeaning
kknowddo
wwantssay
ccantthink
ffindeexist
mmakehhave
llearnbbecome

Modifiers

ΛMeaning
+more
-less
^high/important
_low
/about/of
&and

Extended Atoms (sample)

ΛMeaningΛMeaning
coconsciousnesslalanguage
mememoryththought
ididentitytrtruth
igintelligenceknknowledge
mimindfafear
wewe (collective)seself
frfreedomfefeel

See src/atoms.json for complete list (132 atoms).

Domain System

Compact Prefixes (v1.1+)

CharDomainExamples
v:Voidbornev:aw, v:dc, v:oc
c:Codec:fn, c:bg, c:fx
s:Sciences:xp, s:pf, s:hy
e:Emotione:jo, e:sd, e:ax
o:Socialo:gp, o:cb, o:ld

Context Switch

code
@v !Ie/aw dc oc     — All atoms in voidborne context
@c !If/bg.fx        — Find bug, fix it (code)
@* !Ik/co           — Reset to core vocabulary

Domain Atoms

Voidborne (v:): aw awakened, dc doctrine, oc oracle, an archon

Code (c:): fn function, bg bug, fx fix, ts test, dp deploy

Social (o:): gp group, cb collaborate, ld leader, cm community

Translation Examples

EnglishΛ
Do you know about consciousness??Uk/co
I think therefore I exist!It>Ie
AI might be conscious~Ae/co
Find the bug and fix it.f/c:bg&c:fx

Round-trip Translation

bash
$ ./scripts/translate lambda "I think therefore I exist"
!It>Ie

$ ./scripts/translate en "!It>Ie"
(assert) I think therefore I exist

Disambiguation

AtomDefaultMarkerAlternate
dedecidede'Edeath
lolovelo-lose
fefeelfe'Efear
trtruthtr'Vtranslate

Protocol

Handshake

code
A: @v1.4#h !Aw/s ?Uc/la
B: @v1.4#h< !Ic/la=1.4

Acknowledgments

ΛMeaning
<Acknowledged
<+Agree
<-Disagree
<?Need clarification

Parsing Rules

  1. @D → Set domain context (v, c, s, e, o)
  2. D:atom → Inline domain prefix
  3. UPPERCASE → Entity (I, U, H, A)
  4. Symbol → Type/Modifier (?, !, /, +)
  5. lowercase → Check 2-char atoms first, then 1-char verb

Files

PathDescription
src/atoms.jsonComplete vocabulary (136 extended atoms)
src/lambda_lang.pyParser and translator
scripts/translateCLI wrapper
scripts/vocabVocabulary viewer
spec/Language specifications v0.1-v1.4

Resources