Skip to content
Agentmart
Submit a tool

openclaw-concepts

OpenClaw core concepts.

Skill by Hashi-Ai-Dev

IndexedMIT★ 6
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/hashi-ai-dev-openclaw-concepts

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

OpenClaw core concepts. Use when explaining architecture, memory, sessions, compaction, streaming, multi-agent design, sandboxing, agent bootstrap, message flow, queue modes, model failover, system prompt, SOUL.md, timezone, OAuth flows, presence, the OpenClaw SDK, the database-first migration to SQLite, doctor migrations from legacy JSON stores, or the cache layer refactor. Triggers on: how does it work, architecture, session, compaction, streaming, bootstrap, context, queue, message flow, failover, features, retry, typebox, models, model-providers, usage-tracking, markdown, formatting, qa, matrix, rpc, adapters, OAuth, oauth flow, presence, user presence, agent presence, sdk, software development kit, OpenClaw SDK, openclaw sdk, programmatic access, sqlite, database first, database-first, migration, migrations.

Use cases: documents, design, backend, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/openclaw-concepts

What's inside

Skill name
openclaw-concepts
Description
OpenClaw core concepts. Use when explaining architecture, memory, sessions, compaction, streaming, multi-agent design, sandboxing, agent bootstrap, message flow, queue modes, model failover, system prompt, SOUL.md, timezone, OAuth flows, presence, the OpenClaw SDK, the database-first migration to SQLite, doctor migrations from legacy JSON stores, or the cache layer refactor. Triggers on: how does it work, architecture, session, compaction, streaming, bootstrap, context, queue, message flow, failover, features, retry, typebox, models, model-providers, usage-tracking, markdown, formatting, qa, matrix, rpc, adapters, OAuth, oauth flow, presence, user presence, agent presence, sdk, software development kit, OpenClaw SDK, openclaw sdk, programmatic access, sqlite, database first, database-first, migration, migrations.
License
MIT
Instructions
110 lines in SKILL.md · view on GitHub

Files (57)

  • SKILL.md
  • active-memory.md · references/
  • agent-loop.md · references/
  • agent-runtimes.md · references/
  • agent-workspace.md · references/
  • agent.md · references/
  • architecture.md · references/
  • channel-docking.md · references/
  • commitments.md · references/
  • compaction.md · references/
  • context-engine.md · references/
  • context.md · references/
  • cron-jobs.md · references/
  • database-first.md · references/
  • date-time.md · references/
  • delegate-architecture.md · references/
  • dreaming.md · references/
  • experimental-features.md · references/
  • features.md · references/
  • mantis-slack-desktop-runbook.md · references/
  • mantis.md · references/
  • markdown-formatting.md · references/
  • memory-builtin.md · references/
  • memory-honcho.md · references/
  • memory-qmd.md · references/
  • memory-search.md · references/
  • memory.md · references/
  • message-lifecycle-refactor.md · references/
  • messages.md · references/
  • model-failover.md · references/
  • model-providers.md · references/
  • models.md · references/
  • multi-agent.md · references/
  • oauth.md · references/
  • openclaw-sdk.md · references/
  • parallel-specialist-lanes.md · references/
  • personal-agent-benchmark-pack.md · references/
  • presence.md · references/
  • progress-drafts.md · references/
  • qa-e2e-automation.md · references/
  • qa-matrix.md · references/
  • queue-steering.md · references/
  • queue.md · references/
  • retry.md · references/
  • rpc.md · references/
  • sandboxing.md · references/
  • session-pruning.md · references/
  • session-tool.md · references/
  • session.md · references/
  • soul.md · references/
  • streaming.md · references/
  • system-prompt.md · references/
  • taskflow.md · references/
  • timezone.md · references/
  • typebox.md · references/
  • typing-indicators.md · references/
  • usage-tracking.md · references/

SKILL.md (first lines)

# OpenClaw Concepts

## Gateway architecture

Single Gateway daemon (port 18789) owns all messaging surfaces. Nodes/clients connect via WebSocket. One gateway per host — only place that opens WhatsApp session.

## Agent bootstrap

Files injected on first turn of each session:

| File | Purpose |
|------|---------|
| `AGENTS.md` | Operating instructions + memory |
| `SOUL.md` | Persona, boundaries, tone |
| `TOOLS.md` | User-maintained tool notes |
| `BOOTSTRAP.md` | One-time first-run ritual (deleted after) |
| `IDENTITY.md` | Name/emoji |
| `USER.md` | User profile |
| `HEARTBEAT.md` | Periodic task list |

## Memory

Three files the agent writes:
- **`MEMORY.md`** — long-term curated facts
- **`memory/YYYY-MM-DD.md`** — daily running notes
- **`DREAMS.md`** — dreaming diary (experimental)

Tools: `memory_search` (semantic), `memory_get` (file/lines). **Active memory** plugin surfaces relevant memory proactively before main reply.

## Session

Transcripts: `~/.openclaw/agents/<agentId>/sessions/<SessionId>.jsonl`
- `scope: "per-sender"` — each sender gets isolated session
- `dmScope: "main"` — all DMs share main session key

## Compaction

Chunked summarization when context nears limit. `memoryFlush` runs silent turn before compaction to store durable memories. Post-compaction reinjects `["Session Startup", "Red Lines"]` from AGENTS.md.

## Streaming + chunking

**Block streaming**: emit completed blocks as assistant writes.  
**Preview streaming** (Telegram/Discord/Slack): update temp preview message while generating.

Controls: `blockStreamingDefault`, `blockStreamingBreak`, `blockStreamingCoalesce`. Discord `maxLinesPerMessage` (default 17) prevents UI clipping.

## Queue modes

| Mode | Behavior |
|------|----------|
| `collect` (default) | Coalesce queued messages into single followup turn |
| `steer` | Inject immediately, cancel pending tools after next boundary |
| `followup` | Enqueue for next turn after current run ends |
| `steer-backlog` | Steer now AND preserve for followup |

**Inbound dedupe + debounce**: short-lived cache prevents duplicate runs; rapid messages batched.

## Agent loop

1. Acquire session write lock
2. Resolve model + auth profile
3. Load skills snapshot
4. Assemble system prompt (base + skills + bootstrap)
5. Run `runEmbeddedPiAgent` → stream tool/assistant/lifecycle events
6. On timeout → abort; On error → return usage metadata

Global lane cap + per-session lane serialization prevents tool/session races.

## Model failover

Two-stage: (1) auth profile rotation within provider → (2) model fallback to next in `fallbacks[]`. Only persists fallback-owned fields — avoids overwriting manual `/model` changes.

## System prompt

Built per run: Tooling guidance → Safety reminder → Skills (on-demand) → Self-Update rules → Workspace → Docs path → Date/Time → Runtime → Reasoning visibility.

## SOUL.md

Personality layer in the high-priority instruction slot. Tone, opinions, brevity, humor, boundaries. Short + sharp beats long + vague.

## Sandbox

- `mode: "off|non-main|all"` — when to sandbox
- `scope: "session|agent|shared"` — isolation level
- `workspaceAccess: "none|ro|rw"`
- Docker: Chromium + CDP in container, noVNC URL injected

## Task Flow

Managed multi-step orchestration: **managed** (owns lifecycle) or **mirrored** (observes external tasks). Cancel sticky across restarts.

## References

- `references/architecture.md` — gateway deep dive
- `references/session.md` — session system
- `references/compaction.md` — compaction + memory flush
- `references/streaming.md` — block streaming and preview mode details
- `references/progress-drafts.md` — editable progress messages during long turns
- `references/queue.md` — queue lanes + semantics
- `references/system-prompt.md` — prompt assembly
- `references/soul.md` — SOUL.md guide
- `references/sandboxing.md` — sandbox details

## See also
- Token use and costs: `openclaw-reference/references/token-use.md`
- Transcript hygiene: `openclaw-reference/references/transcript-hygiene.md`

These live in `openclaw-reference` for now because they are deep-reference material. Use `openclaw-concepts` to find them by topic.

From Hashi-Ai-Dev/openclaw-clawdoc, MIT.

Signals

Stars
6
Forks
0
Open issues
0
Last commit (this folder)
Jul 1, 2026 (4 months ago)
Last release
Jul 6, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Hashi-Ai-Dev

Cite this page

openclaw-concepts skill. Agent Mart. https://agentmart.dev/skills/hashi-ai-dev-openclaw-concepts (last updated 2026-10-24)