Sandbox
@AlekseiUL/openclaw-superagent

OpenClaw agent workspace with memory and watchdog scripts

Thoth System is a local agent harness for OpenClaw. It adds a workspace of markdown files for identity, rules, memory, and handoff, then pairs that with shell scripts that watch the system, save context before restart, and verify updates. The installer personalizes the setup and creates the full agent workspace for you.

41 stars10 forksShellUpdated 3mo ago
Who it's for

Builders who want an OpenClaw agent that remembers sessions, follows safety rules, and runs with built-in recovery.

What it delivers

You can run a more consistent OpenClaw agent that preserves context, checks itself, and improves from past mistakes.

What it does

Persistent memory

Uses file-based memory and vector search so the agent can keep facts across sessions.

Self-healing watchdog

`scripts/smart-watchdog.sh` monitors the gateway and SQLite WAL and tries to fix issues automatically.

Handoff before restart

`scripts/pre-restart-handoff.sh` saves context before compaction or restart and restores it on wake.

Self-improvement log

Records lessons in `workspace/memory/decisions/lessons-learned.md` and promotes repeated fixes into `workspace/SOUL.md`.

Safety and honesty rules

`workspace/SECURITY-RULES.md` and `workspace/HONESTY-RULES.md` define data protection and no-fabrication rules.

Built-in skills

`skills/agent-doctor` handles self-diagnostics and `skills/agent-forge` creates new skills.

Interactive setup

`install.sh` asks for personal details and configures the workspace automatically.

How to get it

  1. 1Run
    git clone https://github.com/AlekseiUL/openclaw-superagent.git
    cd openclaw-superagent
    bash install.sh

README

Thoth System — Complete AI Agent System for OpenClaw

Turn a blank OpenClaw into a fully-featured AI agent with memory, self-diagnostics, self-improvement, voice support, and automation — in 2 minutes.

Public links / Полезные ссылки

Canonical source

This project is maintained by Aleksei Ulianov / Sprut_AI. Original repository: https://github.com/AlekseiUL/openclaw-superagent

If you found this project mirrored, repackaged, or redistributed elsewhere, check this repository as the source of truth.

Attribution

Where permitted by the applicable license, if you reuse, fork, modify, package, or publish this work, keep the original copyright and license notice and link back to the canonical repository.

Who is this for?

Thoth System is for OpenClaw users who want a complete agent workspace instead of wiring memory, diagnostics, crons, and safety rules by hand:

  • solo builders running a personal OpenClaw assistant;
  • operators who need memory, handoff, watchdog scripts, and self-diagnostics in one install;
  • agent tinkerers who want a working reference system to fork and adapt.

It is not a hosted SaaS. You run it on your machine and keep responsibility for secrets, configs, and external actions.

What You Get

  • Persistent Memory — file-based + vector search. Agent remembers everything across sessions
  • Self-Healing — smart watchdog monitors gateway, SQLite WAL, fixes issues automatically
  • Handoff System — context saved before compaction, restored on wake. Agent never "forgets"
  • Security Rules — data never leaks, ports locked, tokens protected
  • Honesty Rules — agent never fabricates facts, admits mistakes immediately
  • 3 Auto-Crons — daily backup, morning briefing, evening diary
  • 2 Built-in Skills — Agent Doctor (self-diagnostics) + Agent Forge (create new skills)
  • Voice Support — local Whisper transcription (no API keys needed)
  • Interactive Setup — installer asks your name, agent name, timezone. Personalizes everything

Requirements

  • OpenClaw (any 2026+ version)
  • Any LLM (Claude, OpenAI, Gemini)
  • macOS or Linux
  • Node.js 20+

Installation (2 minutes)

git clone https://github.com/AlekseiUL/openclaw-superagent.git
cd openclaw-superagent
bash install.sh

The installer will ask:

  • Agent name
  • Your name
  • Telegram ID (optional)
  • Timezone

Everything is configured automatically.

What's Inside

thoth-system/
  workspace/                    # Agent brain
    SOUL.md                     # Personality, values, communication style
    IDENTITY.md                 # Name, role
    AGENTS.md                   # Work rules, security, memory management
    TOOLS.md                    # Available tools and configurations
    MEMORY.md                   # Long-term facts
    USER.md                     # Owner information
    BOOTSTRAP.md                # Wake-up instructions
    HEARTBEAT.md                # Proactive checks schedule
    SECURITY-RULES.md           # Data protection rules
    HONESTY-RULES.md            # No-fabrication policy
    memory/
      handoff.md                # Context transfer between sessions
      decisions/lessons-learned.md  # Self-improvement log
      patterns.md               # Recurring pattern detection
      architecture.md           # System architecture reference
      DO_NOT_DELETE.md          # Protected files list
  scripts/
    smart-watchdog.sh           # Auto-healing: WAL + gateway monitoring
    post-update-check.sh        # Post-update verification
    pre-restart-handoff.sh      # Save context before restart
  skills/
    agent-doctor/               # Self-diagnostics skill
    agent-forge/                # Skill creation skill
  install.sh                    # Interactive installer

Self-Improvement System

The agent learns from mistakes:

  1. Lessons Learned — every correction is logged in memory/decisions/lessons-learned.md
  2. Graduation — if the same mistake happens 3+ times, the lesson is promoted to SOUL.md permanently
  3. Patterns — recurring issues are tracked in memory/patterns.md with automation proposals

Security

  • Gateway bound to loopback (127.0.0.1) — not accessible from outside
  • API keys only in .env, never in config or logs
  • allowFrom restricts Telegram access to owner only
  • No data sent externally without explicit permission
  • Files deleted to trash, never permanently

After Installation

The agent will:

  1. Ask you 5 questions to personalize SOUL.md
  2. Set up memory structure
  3. Configure compaction with context preservation
  4. Start 3 automatic crons (backup, morning check, evening diary)
  5. Report what's done and what needs manual setup

Thoth System — Полная система AI-агента для OpenClaw

Превращает пустой OpenClaw в полноценного AI-агента с памятью, самодиагностикой, самообучением, голосом и автоматикой — за 2 минуты.

Что получаете

  • Постоянная память — файловая + векторный поиск. Агент помнит всё между сессиями
  • Самовосстановление — watchdog следит за gateway, SQLite WAL, чинит проблемы автоматически
  • Система handoff — контекст сохраняется перед компактификацией, восстанавливается при пробуждении
  • Правила безопасности — данные не утекают, порты закрыты, токены защищены
  • Правила честности — агент не выдумывает, признаёт ошибки сразу
  • 3 автокрона — ежедневный бэкап, утренняя сводка, вечерний дневник
  • 2 встроенных скилла — Агент-доктор (самодиагностика) + Агент-кузница (создание скиллов)
  • Голос — локальный Whisper (без API ключей)
  • Интерактивная установка — установщик спрашивает имя, таймзону, персонализирует всё

Требования

  • OpenClaw (любая версия 2026+)
  • Любая модель (Claude, OpenAI, Gemini)
  • macOS или Linux
  • Node.js 20+

Установка (2 минуты)

git clone https://github.com/AlekseiUL/openclaw-superagent.git
cd openclaw-superagent
bash install.sh

Установщик спросит имя агента, ваше имя, Telegram ID и таймзону. Всё настроит автоматически.

Система самосовершенствования

  1. Уроки — каждая ошибка записывается в memory/decisions/lessons-learned.md
  2. Graduation — ошибка 3+ раза → правило навсегда в SOUL.md
  3. Паттерны — повторяющиеся проблемы отслеживаются с предложением автоматизации

Безопасность

  • Gateway на loopback — недоступен извне
  • API ключи только в .env
  • allowFrom ограничивает доступ к боту
  • Данные наружу — только с разрешения
  • Удаление — только в корзину

Resources | Ресурсы

License

MIT


Built with real-world experience. Every rule = a real lesson learned. Создано на основе реального опыта. Каждое правило = реальный урок.

Files in the repo

Repository payload9 top-level entries
  • .github
  • scripts
  • skills
  • workspace
  • install.sh
  • LICENSE
  • NOTICE.md
  • README.md
  • SECURITY.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More harnesses

affaan-m/
ECC
affaan-m/ECCHarnesses

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

258k
ruvnet/rufloHarnesses

🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

72k

Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.

11k