Skip to content
Conduit

mcp server

SummerClaw

Your prime openclaw with tool-integrated reasoning + optimized planning scheduler + efficient localized memory management

zhangzhenyu13/SummerClawcommunitylistedunreviewed

Set up

Runs on your computer. Pick your agent and operating system.

Before you start

  • uv (`curl -LsSf https://astral.sh/uv/install.sh | sh`)
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "summerclaw": {
      "command": "uvx",
      "args": [
        "summerclaw-ai"
      ]
    }
  }
}

same format Cursor, GitHub Copilot CLI, Junie, JetBrains AI Assistant, Augment (Auggie CLI), Factory Droid, Kiro, Devin CLI +12

Values in angle brackets are placeholders. Restart Claude Desktop after editing its config.Claude Desktop docs

README

synced Oct 22, 2026

SummerClaw

Earlier versions of SummerClaw is developed based on Nanobot. Currently, SummerClaw is prime with the following key features:

  • Browser-Enhanced Planning — Plans on any task even with a relatively weak model by leveraging real-time web search.
  • DAG-Based Subagent Pools — Directed Acyclic Graph scheduling with configurable recursion depths.
  • ReAct Worker & Re-planner — Self-improves the planner DAG based on environment feedback.
  • Enhanced Memory Consolidation & Auto-Skill Learning — Pluggable memory algorithms (naive / Layerga / EMem / Nemori / Mem0V3 / Supermemory / Hindsight / MastraOM) with automatic skill distillation inspired by Hermes Agent.
  • Pluggable Agent Trainer — Zero-intrusion skill optimization framework with 6-stage pipeline (Rollout → Reflect → Aggregate → Select → Update → Evaluate); start via /train <algorithm> from any channel with Gradio dashboard monitoring.

Architecture

   ╔═════════════════════════════════════════════════════════════════╗
   ║                    SummerClaw  Runtime Stack                      ║
   ╠═════════════════════════════════════════════════════════════════╣
   │  ①  Public Support Layer                                        │
   │     Config Center · State Hub · Monitoring · Exception Guard    │
   │     Tool Pool  (incl. Web Search Tools)                        │
   ├─────────────────────────────────────────────────────────────────┤
   │  ②  Web-Enhanced Decision Layer                       ★ NEW    │
   │     Search Decision Engine · Retrieval Executor                │
   │     Information Purifier & Injector                            │
   ├─────────────────────────────────────────────────────────────────┤
   │  ③  Closed-Loop Control Layer                         ★ NEW    │
   │     Feedback Collector · Task Evaluator · Re-planning Engine   │
   ├─────────────────────────────────────────────────────────────────┤
   │  ④  Planning & Scheduling Layer                                  │
   │     Top-Level Master Planner · Recursive Depth Controller      │
   ├─────────────────────────────────────────────────────────────────┤
   │  ⑤  Execution Engine Layer                                       │
   │     Reactive Event Bus (ReAct Core) · DAG Dependency Scheduler │
   ├─────────────────────────────────────────────────────────────────┤
   │  ⑥  Execution Unit Layer                                         │
   │     SubAgent Pool · Recursive Decomposition (Configurable)     │
   ├─────────────────────────────────────────────────────────────────┤
   │  ⑦  Memory Layer                                      ★ NEW    │
   │     Consolidator (context pressure) · AutoCompact (session TTL) │
   │     MemoryStore → SOUL.md · USER.md · MEMORY.md · history.jsonl│
   │     ↑  Pluggable: naive / layerga / emem / nemori / mem0v3 /    │
   │     │             supermemory / hindsight / mastra_om  │
   ╠════════════════════ ▼ async · observes history ═══════════════════╣
   │  ⑧  Skill Distillation Layer                          ★ NEW    │
   │     Dream:  cron 2h · /dream  →  dreamed-* skills              │
   │     Hermes: ×10 calls · /skill-autogen  →  hermes-* skills    │
   │     ↑  Skills fed back into ① Tool Pool                        │
   ├─────────────────────────────────────────────────────────────────┤
   │  ⑨  Agent Trainer Layer                               ★ NEW    │
   │     Pluggable Algorithms (SkillOpt) · 6-Stage Pipeline         │
   │     /train <alg> → Dashboard · Accept/Reject Gate              │
   │     ↑  Optimized skills deployable back to ⑧                  │
   ╚═════════════════════════════════════════════════════════════════╝

Quick Start

  1. Install summerclaw:

    pip install -e .
    
  2. Copy the example config: Configure your models and apis, then

    cp config.example.json ~/.summerclaw/config.json
    
  3. Start the gateway:

    summerclaw gateway
    

SummerClaw Advantages

SummerClaw extends Nanobot with four architectural innovations that related frameworks lack or only partially implement. It also adopts GenericAgent's L0-L4 layered memory as one of its pluggable backends (layerga_memory).

CapabilitySummerClawNanobotGenericAgentHermesOpenClaw
Browser-Enhanced Planning✓ Independent web-enhanced decision layer — search → purify → inject, fully automated closed loop✗ No planning layer; tool calls are single-step with no pre-planning enhancement✗ No web-enhanced planning layer; offline reasoning only✗ Manual search-tool calls only; no automatic search injection during planning✗ Pure offline planning; no internet augmentation
DAG Subagent Pools✓ Built-in DAG scheduler in the execution engine; max_subagent_depth 0~N freely configurable✗ Pure single-agent; no scheduling layer, no DAG, no subagent pool✗ Single-agent execution; no DAG scheduler or parallel subagent pool✗ Single-agent sequential execution; no task decomposition, no concurrency△ Basic task splitting, but no recursive depth config and no concurrent agent pool
ReAct Re-planner✓ Independent closed-loop control — feedback → evaluate → replan, fully automatic✗ Single-step streaming; wrong = retry from scratch with no plan correction✗ No closed-loop replanning; fixed execution path△ Dynamic in-step correction, but no DAG structure and no standardized replanning engine✗ Static one-time PTS plan; locked during execution with no feedback loop
Memory + Auto-Skill✓ Dual-mode: Dream (cron scheduled) + Hermes-Autogen (tool-count triggered); skills auto-injected into tool pool△ Dream-only weak mode — shell skills from batch summarization, no trajectory distillation△ L0-L4 layered memory consolidation (constitution → insight → facts → SOP → archives); no Hermes-style trajectory distillation✓ Trajectory-driven real-time skill generation only; no Dream-style batch consolidation✗ No memory purification, no automatic skills; all skills must be hand-written

✓ = Full native implementation   △ = Partial / limited   ✗ = Not available

Memory

SummerClaw ships with a pluggable memory algorithm system. Choose from eight backends via the memoryAlgorithm config key:

AlgorithmStrategyBest For
naive_memoryFile-based (MEMORY.md + history.jsonl)Simple setups, zero extra deps
emem_memoryEDU extraction + embedding vectorsStructured fact & entity tracking
layerga_memoryL0-L4 layered (constitution → insight → facts → SOP → archives)Self-organising hierarchical knowledge
nemori_memoryEpisode + semantic self-organisingLong-term knowledge evolution
mem0v3_memoryADD-only single-pass extraction + entity linking + multi-signal fusionToken-efficient LLM-native memory
supermemory_memoryChunk-based + relational versioning + temporal grounding + hybrid search + static/dynamic classification + auto-forgettingSOTA agent memory with version tracking
hindsight_memoryBuilt-in local TEMPR engine (RRF fusion + fact types + graph expansion)Zero-dependency multi-strategy retrieval
mastra_om_memoryObserver/Reflector pipeline + async buffering + observation groups + prompt-cache friendly contextHigh-density observational memory (94.87% LongMemEval)

See the Memory Documentation for storage structures, configuration, and algorithm details.

Tools

SummerClaw provides a set of atomic tool primitives that form the agent's interaction surface with the world — every capability is a self-contained Tool instance with typed parameters, validation, and safety constraints, all managed by a unified ToolRegistry.

CategoryToolsGate
Filesystemread_file · write_file · edit_file · list_dirAlways on
Searchglob · grepAlways on
Notebooknotebook_editAlways on
Shellexec — sandboxed command executiontools.exec.enable
Webweb_search · web_fetch — 6 search backendstools.web.enable
Browserbrowser_search · browser_fetch · browser_navigate · browser_snapshot · browser_execute_jstools.browser.enable
Interactionmessage · ask_user · spawn · cronAlways on
Selfmy — runtime introspection & tuningtools.my.enable
MCPDynamic tools via Model Context ProtocolmcpServers config

Each tool declares read_only (safe to parallelize) and exclusive (must run alone) flags. Parameter validation uses JSON Schema with automatic type casting. MCP tools are dynamically discovered and registered with the mcp_<server>_ prefix.

See the Tools Documentation for full tool descriptions, parameters, safety classification, and registration flow.

Skill Distillation

SummerClaw supports two orthogonal skill distillation modes that can run independently or simultaneously.

Mode 1 — Dream (Memory Consolidation)

Consolidates conversation history into long-term memory files (MEMORY.md, SOUL.md, USER.md) and extracts reusable skills prefixed with dreamed-.

TriggerConditionNotification
/dream commandAlwaysDream completed in Xs. / Dream: nothing to process.
Cron auto (every 2 h)When changes exist[Dream] Memory consolidation complete. MEMORY / SOUL / USER.md updated.
  • Default state: enabled
  • Skill output: workspace/skills/dreamed-<name>/SKILL.md

Mode 2 — Hermes-Autogen (Tool-Usage Distillation)

Watches tool-call history and distills recurring patterns into reusable skills prefixed with hermes-, inspired by Hermes Agent.

TriggerConditionNotification
/skill-autogen commandAlwaysSkill-Autogen completed in Xs: a new skill was created...
Threshold auto (every 10 tool calls)When a new skill is identified[Skill-Autogen] Background distillation complete. New skill saved to workspace/skills/
  • Default state: disabled — enable via skill_autogen.enable = true in config
  • Skill output: workspace/skills/hermes-<name>/SKILL.md

Note: All channel notifications are routed to the last active session. Silent (log-only) when no active session exists.

Agent Trainer

SummerClaw includes a zero-intrusion, pluggable skill optimization framework that iteratively improves agent skills via a 6-stage per-step pipeline while keeping the online agent running normally.

SkillOpt Algorithm

The currently implemented algorithm uses reflection-based optimization:

StageNameDescription
①RolloutExecute episodes with current skill via isolated AgentRunner
②ReflectMinibatch trajectory analysis (failure/success) → structured patches
③AggregateHierarchical LLM-driven patch merging (failure-first priority)
④SelectRank edits by importance, keep top-L (gradient clipping)
⑤UpdateApply edits to skill document (append/insert_after/replace/delete)
⑥EvaluateValidation gate — accept_new_best / accept / reject

Key design principles:

  • Data isolation — Training uses train-outputs/<alg>-<task>/ with its own memory, session, and output files
  • Runtime consistency — Same tools, memory algorithm type, and model config as the online agent
  • Zero intrusion — No modifications to existing agent core files
  • Channel-driven — Start via /train <algorithm> from any channel
CommandDescription
/train <algorithm>Start training (returns Gradio dashboard URL)
/trainList available algorithms
/train_statusShow active training sessions
/train_stop <algorithm>Cancel a running training

See the Agent Trainer Documentation for algorithm principles, pipeline details, and extension guide. See the Agent Trainer Module Info for module design, type system, and file index.

Task Persistence

CommandDescription
/tasksList currently running subagents and pending interrupted tasks
/tasks resume <id>Re-spawn a subagent task; re-deliver a main-flow task to the bus
/tasks discard <id>Remove from registry; mark main-flow task as errored

Key behaviors after service restart:

  • Within 3 seconds, a notification is pushed to each affected channel listing all interrupted tasks with resume/discard options.
  • /tasks resume <id>: Subagent restarts from the beginning (original task description); main-flow task resumes from the persisted runtime_checkpoint.
  • /tasks discard <id>: Clears the persistence record; subagent is dropped entirely; main-flow task leaves an error marker in the session.

Documentation

Key Configuration

Copy config.example.json to ~/.summerclaw/config.json and edit as needed. All keys below live under agents.defaults unless noted otherwise.

Plan-and-Solve + DAG Subagents

KeyTypeDefaultDescription
plan_and_solvebooltrueEnable ReAct→Plan-and-Solve upgrade; the agent builds a DAG before execution
max_subagent_depthint2Maximum recursion depth for nested SubAgent spawning (0 = flat, no nesting)

Search-Enhanced Planning (② Web-Enhanced Decision Layer)

KeyTypeDefaultDescription
search_enhanced_planning.enablebooltrueGate for the whole web-search pre-planning pipeline
search_enhanced_planning.max_resultsint5Max search results fetched per planning query
search_enhanced_planning.timeoutint120Seconds before a single search call times out
search_enhanced_planning.search_on_replanboolfalseRe-run web search each time the planner triggers a re-plan cycle
search_enhanced_planning.max_purified_charsint2000Max characters of distilled search content injected into the planning prompt
tools.web.enableboolfalseMust be true to activate web search tools used by this layer
tools.web.search.providerstring"duckduckgo"Search backend: duckduckgo | bing | google | searxng
tools.web.search.apiKeystring""API key for providers that require one
tools.web.search.maxResultsint5Hard cap on results returned by the search tool
tools.web.search.timeoutint30Per-request timeout for the search tool (seconds)

Memory Algorithm (Pluggable Backend)

KeyTypeDefaultDescription
memoryAlgorithmstring"naive_memory"Select the memory backend: naive_memory, layerga_memory, emem_memory, nemori_memory, mem0v3_memory, supermemory_memory, hindsight_memory, or mastra_om_memory

Skill Distillation — Dream (⑦ Mode 1)

KeyTypeDefaultDescription
dream.intervalHfloat2Hours between automatic Dream cron runs (set to 0 to disable cron)
dream.modelOverridestring|nullnullUse a different model for Dream; falls back to agent default when null
dream.maxBatchSizeint20Max conversation turns processed per Dream run
dream.maxIterationsint15Max LLM iterations allowed inside a single Dream run
dream.annotateLineAgesbooltrueAnnotate each memory line with its age to guide future consolidation

Skill Distillation — Hermes-Autogen (⑦ Mode 2)

KeyTypeDefaultDescription
skill_autogen.enableboolfalseEnable Hermes-Autogen; disabled by default — must opt in explicitly
skill_autogen.nudge_intervalint10Tool-call count threshold that triggers a background distillation run
skill_autogen.max_iterationsint8Max LLM iterations allowed inside a single Hermes-Autogen run

Agent Trainer (⑨ Pluggable Skill Optimization)

KeyTypeDefaultDescription
trainer.num_epochsint3Number of training epochs
trainer.batch_sizeint5Training items per batch
trainer.edit_budgetint4Max edits per step (learning rate L)
trainer.minibatch_sizeint5Trajectories per reflect minibatch (M)
trainer.workersint4Max concurrent rollout / LLM calls
trainer.seedint42Random seed for data shuffling
trainer.dashboard_portint7860Gradio dashboard port
trainer.dashboard_sharebooltrueGenerate public Gradio share link
↑↓ navigate openesc close