Where Stardust Converges, Intelligence Emerges
Empowering Every Agent to Shine in Production
Native Python, TypeScript, and Bash execution • Event-driven architecture • Enterprise-grade governance
Go's performance foundation, scripting flexibility, built for production
📖 Documentation | 🚀 Quick Start | 🏗️ Architecture
Aster (星尘云枢) is a production-ready AI Agent development framework built with Go, designed to run agents safely and efficiently in enterprise environments.
Like stardust converging to form a celestial hub, Aster brings together:
go get github.com/astercloud/aster
package main
import (
"context"
"fmt"
"log"
"os"
"github.com/astercloud/aster/pkg/agent"
"github.com/astercloud/aster/pkg/provider"
"github.com/astercloud/aster/pkg/sandbox"
"github.com/astercloud/aster/pkg/store"
"github.com/astercloud/aster/pkg/tools"
"github.com/astercloud/aster/pkg/tools/builtin"
"github.com/astercloud/aster/pkg/types"
)
func main() {
// 1. Setup dependencies
toolRegistry := tools.NewRegistry()
builtin.RegisterAll(toolRegistry)
jsonStore, _ := store.NewJSONStore("./.aster")
deps := &agent.Dependencies{
Store: jsonStore,
SandboxFactory: sandbox.NewFactory(),
ToolRegistry: toolRegistry,
ProviderFactory: &provider.AnthropicFactory{},
TemplateRegistry: agent.NewTemplateRegistry(),
}
// 2. Register agent template
deps.TemplateRegistry.Register(&types.AgentTemplateDefinition{
ID: "assistant",
SystemPrompt: "You are a helpful assistant with file and bash access.",
Model: "claude-sonnet-4-5",
Tools: []interface{}{"Read", "Write", "Bash"},
})
// 3. Create agent
ag, err := agent.Create(context.Background(), &types.AgentConfig{
TemplateID: "assistant",
ModelConfig: &types.ModelConfig{
Provider: "anthropic",
Model: "claude-sonnet-4-5",
APIKey: os.Getenv("ANTHROPIC_API_KEY"),
},
Sandbox: &types.SandboxConfig{
Kind: types.SandboxKindLocal,
WorkDir: "./workspace",
},
}, deps)
if err != nil {
log.Fatal(err)
}
defer ag.Close()
// 4. Subscribe to events
eventCh := ag.Subscribe([]types.AgentChannel{types.ChannelProgress}, nil)
go func() {
for envelope := range eventCh {
if evt, ok := envelope.Event.(types.EventType); ok {
switch e := evt.(type) {
case *types.ProgressTextChunkEvent:
fmt.Print(e.Delta)
case *types.ProgressToolStartEvent:
fmt.Printf("\n[Tool] %s\n", e.Call.Name)
}
}
}
}()
// 5. Execute
result, err := ag.Chat(context.Background(), "Create a hello.txt file with 'Hello World'")
if err != nil {
log.Fatal(err)
}
fmt.Printf("\n\nFinal Result: %s\n", result.Text)
}
The middleware architecture processes each request/response through multiple layers:
# agent can execute this directly
import pandas as pd
data = pd.read_csv('data.csv')
result = data.groupby('category').sum()
print(result.to_json())
// Native TypeScript execution
interface User {
name: string;
email: string;
}
const users: User[] = await fetch("/api/users").then((r) => r.json());
console.log(users.map((u) => u.name));
# System operations
find . -name "*.log" -mtime +7 -delete
docker ps | grep running
🚀 Alpha Release - Core features complete
✅ Phase 1: Foundation (Event system, Sandbox abstraction, Storage) ✅ Phase 2: Agent Runtime (Message processing, Tool system, Streaming) ✅ Phase 3: Cloud Integration (MCP, Aliyun, Volcengine) ✅ Phase 4: Multi-Agent (Pool, Room, Scheduler, Permissions) ✅ Phase 5: MCP Support (Protocol, Servers, Tools) ✅ Phase 6: Advanced Features (Commands, Skills, Middleware, Multi-provider) ✅ Phase 7: ADK Alignment (Streaming, OpenTelemetry, Persistence, Workflows)
Current Stats:
Aster fully implements the Google Context Engineering whitepaper's 8 core capabilities:
| Capability | Status | Description |
|---|---|---|
| Sessions & Memory | ✅ | Three-layer memory system (Text/Working/Semantic) |
| Memory Provenance | ✅ | Source tracking with confidence scoring |
| Memory Consolidation | ✅ | LLM-driven intelligent memory merging |
| PII Auto-Redaction | ✅ | Automated privacy data protection |
| Event-Driven Architecture | ✅ | Progress/Control/Monitor tri-channel |
| Streaming & Backpressure | ✅ | iter.Seq2 streaming interface |
| Multi-Agent Orchestration | ✅ | Pool/Room/Workflow patterns |
| Observability | ✅ | Complete OpenTelemetry integration |
100% Implementation - First Go framework to fully implement the standard.
Aster builds upon the excellent work of the open-source community:
Special thanks to the Google Context Engineering Whitepaper for defining agent capabilities and best practices.
MIT License - see LICENSE file for details.
Let every agent shine in production ✨
$ claude mcp add aster \
-- python -m otcore.mcp_server <graph>