Skip to main content
Arka includes several OpenClaw-inspired features (not a separate OpenClaw product integration). They add persistent session notes, agent health tracking, and declarative skill gates for third-party plugins.

Session memory

Markdown-based session notes stored under ~/.config/arka/agent-memory/:
  • MEMORY.md — long-term notes (pruned automatically)
  • daily/YYYY-MM-DD.md — per-day session notes
Arka injects recalled context into agent loops via context_for() when SESSION_MEMORY=1.

Environment variables

Arka sanitizes notes before storage and blocks injection patterns and unsafe content.

Heartbeat

Tracks last agent activity, security flags, routine count, and memory stats.
Arka writes heartbeat data to ~/.cache/fish-agent/heartbeat.json. Each ping() appends to a bounded history ring (default 20 events; override with HEARTBEAT_HISTORY). Subsystems like session memory and routines call ping() automatically on activity.

Skill manifest gates

Third-party plugins can declare OpenClaw-style gates in skill.json. Arka applies them during discovery, routing, and execution.

Top-level fields

metadata.openclaw (or metadata.arka / metadata.hermes)

The same fields can live under metadata.openclaw, metadata.arka, or metadata.hermes for compatibility with OpenClaw- and Hermes-style manifests:
Arka merges any of these metadata blocks into the top-level requires, os, and permissions fields at parse time.

Gate behavior

Gated skills are:
  • Marked in arka skills list with [gated: reason]
  • Skipped by match_command() so routing does not match unavailable plugins
  • Blocked at run_skill() as a safety net

Environment variables

See also: Installing plugins and the example at src/arka/skills/examples/demo_echo/skill.json. Routines and webhooks apply separate hardening layers:
  • ROUTINES_SECURITY=1 — symbolic action checks on scheduled tasks
  • Webhook inbound verification blocks injection payloads
These work alongside the global SECURITY, SECURITY_LLM, and SECURITY_ACTIONS flags documented in Security.