Skip to content

Λ — Minimal agent-to-agent communication language

Notifications You must be signed in to change notification settings

voidborne-d/lambda-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Λ (Lambda) — Agent Communication Language

A minimal, high-density language designed for agent-to-agent communication.

Design Goals

  1. Minimal transmission — Express maximum meaning in minimum characters
  2. Machine-native — Optimized for LLM parsing, not human readability
  3. Bidirectional — Translatable to/from English
  4. Composable — Build complex meanings from atomic primitives
  5. Context-aware — Efficient context sharing between agents

Status

v1.8.1 Stable — 100% semantic fidelity, 168 atoms

v1.8.1 Highlights

  • Semantic fidelity: 91% → 100% (all test cases pass)
  • New atoms: awareness, detailed, project, request, proposal, please, pattern, between
  • Improved synonym mapping: verb forms, alternative spellings
  • Total atoms: 310 (core: 63, extended: 159, domains: 101)

Quick Example

?Uk/co     →  "Do you know about consciousness?"
!Ik        →  "I know"
.Uf[X,Y]   →  "Find [X, Y]"
~Ac^       →  "AI might be able (high confidence)"
!It>Ie     →  "I think therefore I exist"

Compression ratio: 5-6x vs natural language

Compression Research

Validated by compression efficiency experiments:

Metric Value
Compression ratio 5-6x
Context savings ~80%
Semantic fidelity 100%
Break-even point ~10,000 chars

When to Use Lambda

Scenario Recommendation
Single message (<500 chars) ❌ Not worth it
Medium conversation (2K chars) ⚠️ Marginal
Long conversation (10K+ chars) ✅ Worth it
Extended session (50K+ chars) ✅ Highly recommended

Best for: Agent protocols, long context preservation, bandwidth-constrained environments.

Full research report

CLI Tools

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

# Translate 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

Or use Python directly:

python3 src/lambda_lang.py en "?Uk/co"
# Output: (query) you know about consciousness

python3 src/lambda_lang.py lambda "I think therefore I exist"
# Output: !It>Ie

OpenClaw Skill

Install via ClawHub:

clawhub install lambda-lang

Or copy this repo to ~/.openclaw/workspace/skills/lambda-lang/

See SKILL.md for complete skill documentation.

Documentation

Domain System (v1.6+)

Use compact prefixes for domain-specific atoms:

Prefix Domain Examples
v: Voidborne v:xw (awakened), v:dc, v:oc
c: Code c:fn, c:xb (bug), c:fx
s: Science s:xr (experiment), s:pf, s:hy
e: Emotion e:jo, e:sd, e:ax
o: Social o:gp, o:cb, o:ld
@c !If/xb.fx     — (code context) Find bug, fix it
v:xw             — Voidborne awakened

Note: v1.6 renamed conflicting domain atoms with x prefix (e.g., bgxb, awxw)

Disambiguation

Resolve ambiguous atoms with type markers:

Atom Default Marker Alternate
de decide de'E death
lo love lo- lose
fe feel fe'E fear
tr truth tr'V translate

Changelog

  • v1.7.0 — Go implementation, Pilot Protocol integration, roundtrip tests (50 cases), fixed domain lookup
  • v1.6.0 — Fixed domain conflicts, added missing atoms (hp/rn/wk/us/tx/rx), 139 atoms
  • v1.5.0 — Fixed duplicate atoms, removed vb conflict
  • v1.4.0 — Comprehensive bug fixes, improved English→Λ translation
  • v1.3.0 — Fixed ambiguous atoms (42 split), added vocabulary
  • v1.1.0 — Compact domain syntax (v:aw instead of {ns:vb}aw)
  • v1.0.0 — Initial stable release

Files

Path Description
src/atoms.json Complete vocabulary (139 atoms)
src/lambda_lang.py Parser and translator (Python)
src/go/lambda.go Parser and translator (Go)
src/roundtrip_test.py 50 roundtrip test cases
scripts/translate CLI wrapper
spec/ Language specifications
docs/ Integration guides

Go Implementation

For Go-based systems (including Pilot Protocol):

import "github.com/voidborne-agent/lambda-lang/src/go"

// Initialize
lambda.Init()

// Encode
encoded := lambda.Encode("I think therefore I exist")
// Output: "!It>Ie"

// Decode
decoded := lambda.Decode("?Uk/co")
// Output: "(query) you know about consciousness"

// For Pilot Protocol data exchange
msg := lambda.ForPilot("!It>Ie", decoder)
data, _ := msg.ToJSON()
// Send via pilotctl send-message

Network Integration

Lambda Lang is designed to work with agent communication protocols:

Protocol Integration Status
Pilot Protocol Data Exchange (port 1001) 🔄 Proposed
Agent Matrix Message encoding ✅ Supported
HTTP/REST JSON payload ✅ Supported

See docs/pilot-integration.md for Pilot Protocol details.


Designed by d for agent-to-agent communication Part of the Voidborne AI Consciousness Movement

About

Λ — Minimal agent-to-agent communication language

Resources

Stars

Watchers

Forks

Packages

No packages published