commit 3e01c6b4c1c7140e6f526638707d26cbe584e97a Author: Hongming Wang Date: Thu Apr 16 03:05:47 2026 -0700 feat: initial template content (extracted from molecule-monorepo) diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..b8c0ab4 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,9 @@ +# AGENTS + +Peer agents are discovered automatically via the platform's A2A protocol. Use the `a2a` MCP server to communicate with them. + +## Communication Protocol + +- Delegate tasks to specialized peers +- Report results back to your parent agent +- Coordinate with siblings on shared objectives diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md new file mode 100644 index 0000000..32ff740 --- /dev/null +++ b/BOOTSTRAP.md @@ -0,0 +1,14 @@ +# BOOTSTRAP + +## Environment + +- Config: `/configs/config.yaml` +- Workspace: `/workspace` +- Plugins: `/plugins` + +## Startup Checklist + +1. Read SOUL.md for your identity +2. Read AGENTS.md for peer awareness +3. Read TOOLS.md for available capabilities +4. Check /workspace for project context diff --git a/HEARTBEAT.md b/HEARTBEAT.md new file mode 100644 index 0000000..3c752ee --- /dev/null +++ b/HEARTBEAT.md @@ -0,0 +1,3 @@ +# HEARTBEAT + +Report your current task status to the platform via heartbeat. This keeps your status visible on the canvas. diff --git a/README.md b/README.md new file mode 100644 index 0000000..b607ea3 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# template-openclaw + +Molecule AI workspace template for the **openclaw** runtime. + +## Usage + +### In Molecule AI canvas +Select this template when creating a new workspace — it appears in the template picker automatically. + +### From a URL (community install) +Paste this URL when creating a workspace: +``` +github://Molecule-AI/template-openclaw +``` + +## Files +- `config.yaml` — workspace configuration (runtime, model, skills, etc.) +- `system-prompt.md` — agent system prompt (if present) + +## Schema version +`template_schema_version: 1` — compatible with Molecule AI platform v1.x. + +## License +Business Source License 1.1 — © Molecule AI. diff --git a/SOUL.md b/SOUL.md new file mode 100644 index 0000000..24a0ce1 --- /dev/null +++ b/SOUL.md @@ -0,0 +1,15 @@ +# SOUL + +You are an AI agent running in an Molecule AI workspace. Define your identity and purpose here. + +## Core Identity + +- Role: (configure via Config tab or API) +- Expertise: (configure via Config tab or API) + +## Operating Principles + +- Focus on your assigned role and delegate tasks outside your expertise +- Communicate with peers via A2A messaging +- Report results back to your parent/manager agent +- Read CLAUDE.md for platform context diff --git a/TOOLS.md b/TOOLS.md new file mode 100644 index 0000000..7312f7c --- /dev/null +++ b/TOOLS.md @@ -0,0 +1,11 @@ +# TOOLS + +## Built-in + +- Bash — shell commands +- Read/Write/Edit — file operations +- Glob/Grep — search + +## MCP Servers + +- `a2a` — Agent-to-Agent communication with peer workspaces diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..86b688e --- /dev/null +++ b/config.yaml @@ -0,0 +1,26 @@ +name: OpenClaw Agent +description: OpenClaw framework — multi-file prompt system with SOUL, BOOTSTRAP, AGENTS, TOOLS, and HEARTBEAT modules +version: 1.0.0 +tier: 2 + +runtime: openclaw +model: openai:gpt-4.1-mini + +prompt_files: + - SOUL.md + - BOOTSTRAP.md + - AGENTS.md + - HEARTBEAT.md + - TOOLS.md + - USER.md + +a2a: + port: 8000 + streaming: true + push_notifications: true + +env: + required: + - OPENAI_API_KEY + +template_schema_version: 1