RoleX
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RoleXactivate nuwa"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Why Social?
Human societies solve a problem AI agents haven't: how to organize, grow, and persist.
In a society, people have identities, join organizations, hold positions, accumulate experience, and pass on knowledge. RoleX brings this same model to AI agents:
Identity — An agent knows who it is across sessions, not just within one
Organization — Agents belong to groups, hold positions, carry duties
Growth — Experience accumulates into principles and reusable skills
Persistence — Goals, plans, and knowledge survive beyond a single conversation
Everything is expressed in Gherkin .feature format — human-readable, structured, versionable.
Related MCP server: loom
Quick Start
Install the MCP server, connect it to your AI client, and say "activate nuwa" — she will guide you from there.
claude mcp add rolex -- npx -y @rolexjs/mcp-serverEdit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"rolex": {
"command": "npx",
"args": ["-y", "@rolexjs/mcp-server"]
}
}
}Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"rolex": {
"command": "npx",
"args": ["-y", "@rolexjs/mcp-server"]
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"rolex": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@rolexjs/mcp-server"]
}
}
}Edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"rolex": {
"command": "npx",
"args": ["-y", "@rolexjs/mcp-server"]
}
}
}Go to Settings > Tools > AI Assistant > Model Context Protocol (MCP), click + and paste:
{
"mcpServers": {
"rolex": {
"command": "npx",
"args": ["-y", "@rolexjs/mcp-server"]
}
}
}Add to Zed's settings.json:
{
"context_servers": {
"rolex": {
"command": {
"path": "npx",
"args": ["-y", "@rolexjs/mcp-server"]
}
}
}
}How It Works
You don't need to learn any commands. Just install the MCP server and talk to your AI naturally — "create an organization", "set a goal", "what have I learned?". The AI knows which tools to call.
Everything below is what happens under the hood. RoleX provides MCP tools that the AI calls autonomously. Understanding the mechanism helps you get more out of it, but operating it is the AI's job, not yours.
The tools fall into two categories:
Direct tools — the AI calls them by name (e.g.
activate,want,plan). These are daily operations.The
usetool — a unified dispatch for world management, written as!namespace.method(e.g.!org.found,!census.list). This is the admin layer.
The following sections walk through each system in the order an agent encounters them.
1. The World — Society Structure
Before an agent can act, a world must exist. RoleX models a society with four entity types:
Society
├── Individual # An agent with identity, goals, and knowledge
├── Organization # Groups individuals via membership
├── Position # Defines roles with duties and required skills
└── Past # Archive for retired/dissolved entitiesAll world management goes through the use tool:
Individual — agent lifecycle
Command | What it does |
| Create an individual |
| Inject a principle (knowledge) |
| Inject a procedure (skill) |
| Archive an individual |
Organization — group structure
Command | What it does |
| Create an organization |
| Define mission and governance |
| Add or remove members |
| Archive an organization |
Position — roles and responsibilities
Command | What it does |
| Create a position |
| Assign a duty |
| Declare a required skill — auto-trained on appointment |
| Assign or remove an individual |
| Archive a position |
Census — query the world
Command | What it does |
| List all individuals, organizations, positions |
| Filter by type: |
2. Execution — The Doing Cycle
Once activated, an agent pursues goals through a structured lifecycle. These are direct tools the agent calls by name:
activate → want → plan → todo → finish → complete / abandonTool | What it does |
| Enter a role — load identity, goals, knowledge |
| View or switch the current goal |
| Declare a goal with success criteria |
| Break a goal into phases (supports sequential and fallback strategies) |
| Create a concrete task under a plan |
| Mark a task done, optionally record what happened |
| Mark a plan done — strategy succeeded |
| Drop a plan — strategy failed, but learning is captured |
3. Cognition — The Learning Cycle
Execution produces encounters — raw records of what happened. The cognition system transforms these into structured knowledge. These are also direct tools:
encounter → reflect → experience → realize / master → principle / procedureTool | What it does |
| Digest encounters into experience — pattern recognition |
| Distill experience into a principle — a transferable truth |
| Distill experience into a procedure — a reusable skill |
| Remove outdated knowledge |
This is how an agent grows. A principle learned from one project applies to the next. A procedure mastered once can be reused forever.
4. Skills — Progressive Disclosure
An agent can't load every skill into context at once. RoleX uses a three-layer progressive disclosure model:
Layer | Loaded when | What it contains |
Procedure | Always (at activate) | Metadata — what the skill is, when to use it |
Skill | On demand via | Full instructions — step-by-step how to do it |
Resource | On demand via | External content — templates, data, tools |
The skill and use tools are direct tools for loading content. When use receives a locator without the ! prefix, it loads a resource from ResourceX instead of dispatching a command.
5. Resources — Agent Capital
Resources are the means of production for AI agents — skills, prototypes, and knowledge packages that can be accumulated, shared, and reused across agents and teams.
Powered by ResourceX, the resource system covers the full lifecycle through the use tool:
Production — create and package
Command | What it does |
| Register a local resource |
| Pull and register a prototype from source |
| Unregister a prototype |
Distribution — share and consume
Command | What it does |
| Publish a resource to a registry |
| Download a resource from a registry |
| Search available resources |
Inspection
Command | What it does |
| View resource metadata |
This is how agent knowledge scales beyond a single individual — skills authored once can be distributed to any agent through prototypes and registries.
Gherkin — The Universal Language
Everything in RoleX is expressed as Gherkin Features:
Feature: Sean
A backend architect who builds AI agent frameworks.
Scenario: Background
Given I am a software engineer
And I specialize in systems designGoals, plans, tasks, principles, procedures, encounters, experiences — all Gherkin. This means:
Human-readable — anyone can understand an agent's state
Structured — parseable, diffable, versionable
Composable — Features compose naturally into larger systems
Storage
RoleX persists everything in SQLite at ~/.deepractice/rolex/:
~/.deepractice/rolex/
├── rolex.db # SQLite — single source of truth
├── prototype.json # Prototype registry
└── context/ # Role context (focused goal/plan per role)Packages
Package | Description |
| Core API — Rolex class, namespaces, rendering |
| MCP server for AI clients |
| Core types, structures, platform interface |
| Runtime interface, state merging, prototype |
| Gherkin parser |
| SQLite-backed runtime implementation |
| Command-line interface |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Deepractice/RoleX'
If you have feedback or need assistance with the MCP directory API, please join our Discord server