← 返回
开发者工具 中文

Mlscp

Parse and generate MLSCP (Micro LLM Swarm Communication Protocol) commands. Use when communicating with other agents efficiently, parsing compressed commands, or generating token-efficient instructions. Reduces token usage by 70-80% compared to natural language.
解析并生成 MLSCP(微型 LLM 集群通信协议)指令。用于高效与其他代理通信、解析压缩指令或生成令牌高效指令。相较自然语言,令牌消耗降低 70‑80%。
sirkrouph-dev sirkrouph-dev 来源
开发者工具 clawhub v0.1.0 1 版本 99911.2 Key: 无需
★ 0
Stars
📥 2,251
下载
💾 0
安装
1
版本
#latest

概述

MLSCP Skill

MLSCP (Micro LLM Swarm Communication Protocol) is a token-efficient command language for agent-to-agent communication. This skill lets you parse, validate, and generate MLSCP commands without any LLM overhead.

Why Use MLSCP?

Natural LanguageMLSCPSavings
---------------------------------
"Please modify the file src/chain_orchestrator.py by adding retry logic at line 47"F+ s/co > ln47 + 'retry logic'~75%
"Read the contents of utils/file_manager.py from lines 10 to 50"F? u/fm > ln10-50~80%
"Delete the variable 'temp_cache' from config.py"V- c/c > 'temp_cache'~70%

Quick Start

Parse a Command

./scripts/mlscp.sh parse "F+ s/co > ln47 + 'retry logic'"

Validate Syntax

./scripts/mlscp.sh validate "F+ s/co > ln47 + 'retry logic'"

Generate Vocabulary

./scripts/mlscp.sh vocab /path/to/project

Compress Natural Language

./scripts/mlscp.sh compress "Add error handling to the main function in app.py"

Command Reference

Operations

CodeMeaningExample
------------------------
F+File add/insertF+ s/app > ln10 + 'new code'
F~File modifyF~ s/app > ln10-20 ~ 'updated code'
F-File deleteF- s/app > ln10-15
F?File query/readF? s/app > ln1-100
V+Variable addV+ s/app + 'new_var = 42'
V~Variable modifyV~ s/app > 'old_var' ~ 'new_value'
V-Variable deleteV- s/app > 'temp_var'
V?Variable queryV? s/app > 'config_*'

Location Specifiers

  • ln47 - Single line
  • ln10-50 - Line range
  • fn:main - Function name
  • cls:MyClass - Class name

Context Blocks

CTX{"intent":"resilience","priority":"high","confidence":0.9}

Scripts

  • mlscp.sh - Main CLI tool
  • vocab.py - Vocabulary generator (Python)

Integration

With Other Agents

When receiving commands from MLSCP-enabled agents:

./scripts/mlscp.sh parse "$INCOMING_COMMAND"

Sending Commands

Generate compact commands for other agents:

./scripts/mlscp.sh compress "Your natural language instruction"

API (Python)

from mlscp import parse, MLSCPParser

# Quick parse
cmd = parse("F+ s/co > ln47 + 'retry logic'")
print(cmd.operation)  # OperationType.FILE_ADD
print(cmd.target)     # "s/co"

# With vocabulary
parser = MLSCPParser(vocab_lookup)
cmd = parser.parse("F+ s/co > ln47 + 'code'")
full_path = vocab_lookup.get("s/co")  # "src/chain_orchestrator.py"

Resources

  • GitHub: https://github.com/sirkrouph-dev/mlcp
  • Grammar Spec: See references/grammar.abnf
  • Protocol Definition: See references/protocol.md

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-28 16:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。适用于以下场景:创建/查询实体(人物、项目、任务、事件、文档)、关联相关对象、强制执行约束、将多步操作规划为图谱变换,或当技能需要共享状态时。触发关键词包括"记住""我知道关于什么""将X链
★ 723 📥 245,244
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,386 📥 321,165
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,088 📥 816,347