Skip to content

Phase 2: SOUL.md identity files and formal Channel interface #3

Closed

Description

@melvincarvalho

Part A — Identity files (openclaw parity)

The agent runner should load openclaw-style identity files from the group workspace (/workspace/group, already mounted) into the system prompt, in this order:

  1. SOUL.md — personality, values, boundaries
  2. IDENTITY.md — external presentation
  3. AGENTS.md — operating instructions
  4. TOOLS.md — capability notes
  5. USER.md — user context

Files are optional; whatever exists is concatenated. JSCLAW_SYSTEM_PROMPT (env) is appended after, preserving the existing override hook.

Part B — Channel interface

A formal host-side contract so channels are pluggable rather than ad-hoc:

  • Channel typedef: name, connect(), disconnect(), sendMessage(jid, text, sender?), ownsJid(jid), isConnected(), optional setTyping()
  • ChannelManager: register channels, connectAll()/disconnectAll(), route sendMessage by ownsJid — drops straight into startIpcWatcher's sendMessage dep

Part C

Update the Telegram example to implement the Channel interface.

Ships as v0.0.3 (no npm publish — version bump only).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions