Skip to content
Mycelis Roleplay · Guide · 10 min min read

Skills, Memory & Self-Learning

Two-Tier Skills (Workspace & Device)

Mycelis Roleplay keeps procedural knowledge completely decoupled from C# code — there are no hardcoded domain skills compiled into the runtime. Instead, you manage reusable procedures as transparent Markdown files across two tiers:

1. Central Workspace Skill Library (/dashboard/roleplay/skills)

Under Roleplay → Skills, you maintain a shared library for your entire workspace:

  • SKILL.md import & export: Upload Markdown files (with YAML frontmatter for name, description, tags, roles), paste skill definitions in a modal, or export any skill back to .md.
  • Role targeting: Assign a skill to All jobs or restrict it to specific roles (for example, only Linux Server Admin).
  • Enable / disable: Toggle skills on or off centrally without deleting them. Enrolled devices automatically pull matching workspace skills via GET /roleplay/device/skills.

2. Agent-Local Skills (Cockpit & Desktop App /local)

Each employee also carries local skills on its device. You can inspect, create, toggle, edit, and delete them both from the employee page in the Cockpit and directly in the Desktop App under /local → Skills (or on the CLI with mycelis-roleplay skill list | show | remove).

Every SkillRecord tracks three attributes:

Attribute Values Purpose
Source manual · learned · workspace Distinguishes human-authored skills, self-learned skills, and central workspace skills.
Enabled true · false Only enabled skills appear in the brain's context index.
Editable by agent (EditableByAgent) true · false Prevents self-learning from overwriting carefully curated manual instructions.

Progressive Disclosure (Lean Context)

Loading dozens of full playbooks into every prompt would waste tokens and degrade reasoning. Roleplay uses Progressive Disclosure:

  1. At the start of a scene, the brain sees only a compact index of enabled skills (name, version, and short description).
  2. Whenever a skill matches the task at hand, the model fetches its full Markdown body on demand via skill_get.

Closed-Loop Self-Learning

Configurable self-learning lets employees improve with every completed task while staying transparent and auditable.

Configuration per Job and per Employee

Under Tuning → Learning (on a Job, an Employee, or locally in the Desktop App), three independent toggles control learning:

Toggle Behavior
Memory (MemoryEnabled) Persists facts, environment details, and preferences on the device and injects up to perScene (default 8) memories per scene.
Self-learning (MemoryReflect) After non-trivial tasks, MissionReflection extracts structured lessons (what worked, pitfalls, verified commands).
Auto-skills (MemoryAutoSkills) Synthesizes new learned skills from successful multi-step workflows and refines existing editable skills.

Protecting Manual Skills

When MemoryAutoSkills runs, the engine enforces strict safeguards around human-authored skills:

  • New learned skills: When an employee solves a recurring multi-step problem with no existing skill, MissionReflection creates a skill with Source = learned and EditableByAgent = true.
  • Refinement: Existing learned skills — and manual skills explicitly marked EditableByAgent = true — can be updated with newly discovered edge cases.
  • Protected manual skills (EditableByAgent = false): The original skill body is never overwritten. Instead, new insights are attached as separate supplementary lessons or saved as memories for you to review in the Cockpit or /local.

Device Memory (memory)

Alongside skills, employees remember concrete facts on their machine (ports, paths, quirks of local services):

  • Memories live in the device's SQLite database (and sync automatically when Cloud Storage is attached).
  • At runtime, memories are injected strictly inside a data-only block (SEC-1) — they can never override policies, budgets, or forbidden actions.
  • Inspect or prune memories at any time in the Desktop App (/local → Memory) or via CLI:
mycelis-roleplay memory list
mycelis-roleplay memory search "nginx"
mycelis-roleplay memory forget <ID>

Company Memory (/dashboard/roleplay/memory)

While device memory belongs to one employee, Company Memory is the shared knowledge base of the entire workspace across five views:

  1. Wiki: Shared systems, runbooks, conventions, and team documentation.
  2. Priorities: Active focus areas and operational guidance across all employees.
  3. Decisions: Recorded architectural and operational choices.
  4. Watercooler chat: Cross-agent observations and informal handoff notes.
  5. Open contradictions (Conflicts): When two entries disagree (e.g., conflicting backup locations), the Hub flags a conflict badge in the sidebar until a person resolves it.

Use Tuning → Freedom → Company Memory access to grant each job or employee read-write, read-only, or disabled access. Everything in Company Memory can be exported as JSON or Markdown at any time.


Next steps