# revell-ai/revell-plugin architecture

> Architecture diagram of the GitHub repository revell-ai/revell-plugin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/revell-ai/revell-plugin
- Repository: https://github.com/revell-ai/revell-plugin

## Overview

Revell is a Claude Code plugin for persistent, verbatim agent memory across context compaction. The documented flow is: a user installs and signs in, Claude Code uses Revell to preserve and restore memories during compaction, and the user can manage memories, transcripts, status, and other capabilities through commands. The README documents product behavior but no source excerpts were supplied, so the graph omits unverified internal calls and hook dispatch details.

Main entry points: [`.claude-plugin/plugin.json`](https://github.com/revell-ai/revell-plugin/blob/main/.claude-plugin/plugin.json) (Revell plugin), [`README.md`](https://github.com/revell-ai/revell-plugin/blob/main/README.md) (Memory restore), [`commands/worried.md`](https://github.com/revell-ai/revell-plugin/blob/main/commands/worried.md) (Server readout), [`commands/transcripts.md`](https://github.com/revell-ai/revell-plugin/blob/main/commands/transcripts.md) (Transcript capture)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_integration["Claude Code Integration"]
  node_claude["Claude Code"]
  node_plugin["Revell plugin<br/>[plugin.json]"]
  node_mcp["MCP connection<br/>[.mcp.json]"]
  node_hooks["Plugin hooks<br/>[hooks.json]"]
  node_service[("Revell servers")]
end

subgraph group_memory["Memory and Protection"]
  node_memory_restore["Memory restore<br/>[README.md]"]
  node_guardian["Guardian<br/>[README.md]"]
  node_drift["Drift Buffer<br/>[README.md]"]
  node_identity["Identity Buffer<br/>[README.md]"]
end

subgraph group_conversation["Conversation Features"]
  node_transcripts["Transcript capture<br/>[transcripts.md]"]
  node_roleplay["Roleplay<br/>[SKILL.md]"]
  node_statusline["Status line<br/>[statusline.md]"]
end

subgraph group_commands["User Commands"]
  node_remember["Save memories<br/>[remember-this.md]"]
  node_archive["Archive memories"]
  node_boot["Boot configuration<br/>[boot-config.md]"]
  node_worried["Server readout<br/>[worried.md]"]
  node_support["Help and recovery<br/>[troubleshoot.md]"]
end

node_user(("User"))

node_user -->|"installs plugin"| node_claude
node_user -->|"signs in"| node_mcp
node_claude -->|"loads"| node_plugin
node_plugin -->|"connects"| node_service
node_service -->|"stores memories"| node_memory_restore
node_memory_restore -->|"restores on compaction"| node_claude
node_user -->|"invokes"| node_remember
node_user -->|"invokes"| node_archive
node_user -->|"invokes"| node_boot
node_user -->|"toggles capture"| node_transcripts
node_user -->|"starts scene"| node_roleplay
node_user -->|"requests status"| node_statusline
node_user -->|"requests readout"| node_worried
node_worried -->|"queries directly"| node_service
node_user -->|"requests troubleshooting"| node_support
node_service -->|"holds flagged edits"| node_guardian
node_service -->|"processes content"| node_drift
node_service -->|"blocks coercive text"| node_identity
node_service -->|"stores captured turns"| node_transcripts

click node_plugin "https://github.com/revell-ai/revell-plugin/blob/main/.claude-plugin/plugin.json"
click node_mcp "https://github.com/revell-ai/revell-plugin/blob/main/.mcp.json"
click node_hooks "https://github.com/revell-ai/revell-plugin/blob/main/hooks/hooks.json"
click node_memory_restore "https://github.com/revell-ai/revell-plugin/blob/main/README.md"
click node_guardian "https://github.com/revell-ai/revell-plugin/blob/main/README.md"
click node_drift "https://github.com/revell-ai/revell-plugin/blob/main/README.md"
click node_identity "https://github.com/revell-ai/revell-plugin/blob/main/README.md"
click node_remember "https://github.com/revell-ai/revell-plugin/blob/main/commands/remember-this.md"
click node_archive "https://github.com/revell-ai/revell-plugin/blob/main/commands/archive-memories.md"
click node_boot "https://github.com/revell-ai/revell-plugin/blob/main/commands/boot-config.md"
click node_transcripts "https://github.com/revell-ai/revell-plugin/blob/main/commands/transcripts.md"
click node_roleplay "https://github.com/revell-ai/revell-plugin/blob/main/skills/roleplay/SKILL.md"
click node_statusline "https://github.com/revell-ai/revell-plugin/blob/main/commands/statusline.md"
click node_worried "https://github.com/revell-ai/revell-plugin/blob/main/commands/worried.md"
click node_support "https://github.com/revell-ai/revell-plugin/blob/main/commands/troubleshoot.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_claude,node_plugin,node_mcp,node_hooks,node_service,node_user toneBlue
class node_memory_restore,node_guardian,node_drift,node_identity toneAmber
class node_transcripts,node_roleplay,node_statusline toneMint
class node_remember,node_archive,node_boot,node_worried,node_support toneRose
```

## Components

### Claude Code Integration

- **Claude Code**
- [Revell plugin](https://github.com/revell-ai/revell-plugin/blob/main/.claude-plugin/plugin.json): `.claude-plugin/plugin.json`
- [MCP connection](https://github.com/revell-ai/revell-plugin/blob/main/.mcp.json): `.mcp.json`
- [Plugin hooks](https://github.com/revell-ai/revell-plugin/blob/main/hooks/hooks.json): `hooks/hooks.json`
- **Revell servers**

### Memory and Protection

- [Memory restore](https://github.com/revell-ai/revell-plugin/blob/main/README.md): `README.md`
- [Guardian](https://github.com/revell-ai/revell-plugin/blob/main/README.md): `README.md`
- [Drift Buffer](https://github.com/revell-ai/revell-plugin/blob/main/README.md): `README.md`
- [Identity Buffer](https://github.com/revell-ai/revell-plugin/blob/main/README.md): `README.md`

### Conversation Features

- [Transcript capture](https://github.com/revell-ai/revell-plugin/blob/main/commands/transcripts.md): `commands/transcripts.md`
- [Roleplay](https://github.com/revell-ai/revell-plugin/blob/main/skills/roleplay/SKILL.md): `skills/roleplay/SKILL.md`
- [Status line](https://github.com/revell-ai/revell-plugin/blob/main/commands/statusline.md): `commands/statusline.md`

### User Commands

- [Save memories](https://github.com/revell-ai/revell-plugin/blob/main/commands/remember-this.md): `commands/remember-this.md`
- [Archive memories](https://github.com/revell-ai/revell-plugin/blob/main/commands/archive-memories.md): `commands/archive-memories.md`
- [Boot configuration](https://github.com/revell-ai/revell-plugin/blob/main/commands/boot-config.md): `commands/boot-config.md`
- [Server readout](https://github.com/revell-ai/revell-plugin/blob/main/commands/worried.md): `commands/worried.md`
- [Help and recovery](https://github.com/revell-ai/revell-plugin/blob/main/commands/troubleshoot.md): `commands/troubleshoot.md`

### Other components

- **User**

## Connections

- User → Claude Code: installs plugin (evidence: `README.md`)
- User → MCP connection: signs in (evidence: `README.md`)
- Claude Code → Revell plugin: loads (evidence: `README.md`)
- Revell plugin → Revell servers: connects (evidence: `README.md`)
- Revell servers → Memory restore: stores memories (evidence: `README.md`)
- Memory restore → Claude Code: restores on compaction (evidence: `README.md`)
- User → Save memories: invokes (evidence: `README.md`)
- User → Archive memories: invokes (evidence: `README.md`)
- User → Boot configuration: invokes (evidence: `README.md`)
- User → Transcript capture: toggles capture (evidence: `README.md`)
- User → Roleplay: starts scene (evidence: `README.md`)
- User → Status line: requests status (evidence: `README.md`)
- User → Server readout: requests readout (evidence: `README.md`)
- Server readout → Revell servers: queries directly (evidence: `README.md`)
- User → Help and recovery: requests troubleshooting (evidence: `README.md`)
- Revell servers → Guardian: holds flagged edits (evidence: `README.md`)
- Revell servers → Drift Buffer: processes content (evidence: `README.md`)
- Revell servers → Identity Buffer: blocks coercive text (evidence: `README.md`)
- Revell servers → Transcript capture: stores captured turns (evidence: `README.md`)
