YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
su-skyclaw
Multi-Agent Collaborative AI Platform.
Overview
su-skyclaw is the orchestration layer for building collaborative AI agent teams backed by the su-skyclaw cognitive memory SDK. It provides token optimization, local model runtime, multi-agent coordination, and a 10+ platform integration layer โ all in one Python package.
Core Capabilities
| Layer | Modules | Description |
|---|---|---|
| Token Engine | tracker, budget, calculator |
Real-time token counting, budget enforcement, cost estimation |
| Model Runtime | router, fallback, optimizer, circuit_breaker, ollama, llama_cpp |
Multi-backend routing, fallback chains, quantization, fault-tolerant circuit breaker |
| Agent Framework | partition, pool, planner, cleanup, roi, task_delegator |
Isolated memory partitions, shared pool, ROI tracking, intelligent task delegation |
| Orchestration | registry, state_machine, intent_router, tool_registry, context_bus |
Agent discovery & health check, task lifecycle state machine, intent routing, universal tool registry, cross-agent Pub/Sub bus |
| Team Orchestration | manager, orchestrator, runtime |
DAG-based task decomposition, agent lifecycle, parallel execution |
| Context Pipeline | compressor, summarizer, truncator, window, scorer |
Context window management, compression, relevance scoring |
| Bayesian Reasoning | cognitive_enhancer, pipeline, langgraph_adapter |
Dual-path (SDK/fallback) query, confidence calibration, feedback loops |
| Platform Integration | 10+ adapters (WeChat, DingTalk, Feishu, Telegram, Discord, Slack...) | Webhook + async reply message processing, MCP protocol bridge (6000+ apps) |
| Lifecycle Hooks | registry, notification, session, pre_tool_use, bayesian_hooks |
Non-invasive hook system for tool interception, notifications, feedback |
| Skill System | parser, loader, executor |
SKILL.md parsing, skill discovery, sandboxed execution |
| Multimodal | analyzer, compressor |
Image/audio token counting and compression |
Quick Start
Installation
pip install su-skyclaw
With optional extras:
# Ollama local model support
pip install "su-skyclaw[ollama]"
# Full installation (all extras)
pip install "su-skyclaw[all]"
Basic Usage
from su_memory_agent.agent import AgentMemoryPartition, Memory
from su_memory_agent.team import TeamManager, TeamOrchestrator
# Create an agent team
manager = TeamManager()
orchestrator = TeamOrchestrator(manager)
# Decompose and execute a complex task
results = await orchestrator.execute("ๅๆๆ่ฟไธๅจ็้ๅฎๆฐๆฎๅนถ็ๆๆฅๅ")
print(results)
Bayesian-Enhanced Query
from su_memory_agent.bayesian import BayesianPipeline
pipeline = BayesianPipeline()
result = await pipeline.enhance("agent-1", "What is the ROI of campaign X?")
print(result.bayesian)
# Check pipeline health
print(pipeline.health_report())
Task Delegation
from su_memory_agent.agent import TaskDelegator, DelegationTask
from su_memory_agent.team import TeamManager
manager = TeamManager()
delegator = TaskDelegator(manager)
task = DelegationTask(
description="ๅๆๅธๅบ่ถๅฟ",
required_role="explorer",
priority=3,
)
result = await delegator.delegate(task)
print(f"Task assigned to: {result.agent_id}")
Circuit Breaker for Model Calls
from su_memory_agent.model import ModelCircuitBreaker, CircuitBreakerConfig
cb = ModelCircuitBreaker(
adapter=my_adapter,
model_name="gpt-4o",
config=CircuitBreakerConfig(failure_threshold=3, cooldown_seconds=30),
)
try:
result = await cb.call("Explain quantum mechanics")
except CircuitBreakerOpenError:
# Circuit is open โ use cached response or fallback
pass
Platform Integration
from su_memory_agent.platforms import PlatformRouter
from su_memory_agent.platforms.telegram import TelegramAdapter
router = PlatformRouter()
router.register(TelegramAdapter(bot_token="YOUR_BOT_TOKEN"))
# Handle incoming webhook
response = await router.handle_webhook("telegram", webhook_data)
Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ su-skyclaw โ
โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โ โ Token โ โ Model โ โ Context Pipeline โ โ
โ โ Engine โ โ Runtime โ โ (compress/trunc) โ โ
โ โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ โโโโโโโโโโฌโโโโโโโโโโ โ
โ โ โ โ โ
โ โโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโผโโโโโโโโโโ โ
โ โ Agent Framework โ โ
โ โ partition ยท pool ยท planner ยท task_delegator โ โ
โ โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Orchestration Layer โ โ
โ โ AgentRegistry ยท TaskStateMachine โ โ
โ โ IntentRouter ยท ToolRegistry ยท CrossContextBus โ โ
โ โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Team Orchestration โ โ
โ โ manager ยท orchestrator ยท runtime (DAG) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Platform Integration โ โ
โ โ WeChat ยท Telegram ยท Discord ยท Slack ยท MCP โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ su-skyclaw SDK (Memory Engine) โ
โ Vector Retrieval ยท Graph Store ยท Spatiotemporal Index โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Orchestration Layer Modules
| Module | Description |
|---|---|
| AgentRegistry | Agent ๆณจๅ/ๅ็ฐ/ๅฅๅบทๆฃๆฅไธญๅฟ๏ผๆฟไปฃ็กฌ็ผ็ agent_capabilities ๅญๅ ธ |
| TaskStateMachine | ไปปๅก็ๅฝๅจๆ็ถๆๆบ๏ผ7 ็ถๆ๏ผPENDINGโRUNNINGโWAITINGโCOMPLETED/FAILED/SKIPPED๏ผ๏ผๆฏๆ่ถ ๆถๆฃๆตไธ็บง่ๅคฑ่ดฅไผ ๆญ |
| IntentRouter | ไธญ่ฑๆๅ ณ้ฎ่ฏ + ่ฏญไนๆๅพ่ทฏ็ฑ๏ผๅฐ็จๆท่พๅ ฅๅๅๅฐๅน้ ็ Agent |
| ToolRegistry | ้็จๅทฅๅ ทๆณจๅไธญๅฟ๏ผๆฏๆ register/unregister/get/list_by_category + OpenAI function calling schema ็ๆ |
| CrossContextBus | ่ทจ Agent Pub/Sub ไธไธๆๆถๆฏๆป็บฟ๏ผAgent ๅๅธไธไธๆๆดๆฐ๏ผๅ ถไป Agent ๆไธป้ข่ฎข้ |
| BuiltinTools | ๅ ็ฝฎๅทฅๅ ท้๏ผecho / read_file / write_file / list_dir๏ผ |
| CrewAIToolBridge | CrewAI ๅทฅๅ ท โ ToolRegistry ๆกฅๆฅ้้ ๅจ |
| MCPToolBridge | 6000+ MCP ๅทฅๅ ทๅปถ่ฟๆณจๅๆกฅๆฅ |
Requirements
- Python >= 3.10
- su-skyclaw SDK >= 2.5.0
- tiktoken, httpx, pyyaml, pydantic, structlog, rich
Optional:
- Ollama (
pip install su-skyclaw[ollama]) - llama.cpp (
pip install su-skyclaw[llama-cpp]) - Transformers + Torch (
pip install su-skyclaw[multimodal]) - LangGraph + CrewAI (
pip install su-skyclaw[agent])
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/ -q
# Lint
ruff check src/su_memory_agent/
# Type check
mypy src/su_memory_agent/
License
Apache-2.0 โ see LICENSE for details.
Links
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support