OPEN BETA Actively developed — feedback welcome.
CIPHER-MUX
Process & Concepts · v0.14.5

Why specialized Sessions?

cipher-mux splits the phases of software development into separate AI sessions — each with its own context, its own instructions, its own limits. This page explains why that sometimes works, and when it does not.

$ 01 The Idea

The Idea

Ask a single Claude session to plan a feature, code it, test it and review it, and here is what happens: the context fills up, earlier instructions get compressed, quality drops. Anyone who has used Claude Code for larger jobs knows this.

The hypothesis behind cipher-mux: what if every phase of development got its own session? Its own context, its own instructions, its own focus. With clean handoffs between the phases.

This is not a proven method. cipher-mux is one person’s attempt to test that hypothesis. For some tasks it works surprisingly well. For others it falls flat.

Token costs are real: every session consumes API tokens. Parallel sessions multiply that. The context window is finite. Once it is full, Claude forgets — and there is no undo.

When is the effort worth it?
Whether that is worth the effort depends on the project. For a single-file change, a bare Claude session is better. For a feature spanning ten files, tests and a spec, the structure pays off.
$ 02 The Lifecycle

The Lifecycle

Six phases, each with its own preset. The pipeline runs sequentially — every phase hands a defined artifact to the next. Workshop and Companion cut across it.

Ideation Partner
→
Refinement
→
Cyber Factory
→
Testing Assistant
→
Workshop
→
Debugger
→
Audit

Workshop is the switchboard after testing: it receives findings and distributes them to the matching entity — Debugger for bugs, Cyber Factory for larger rebuilds, Ideation for feature ideas. The Companion accompanies the entire cycle as advisor and explainer.

Ideation Partner

INPUT Raw idea, list of keywords, vague notion

Researches autonomously with sub-agents, synthesizes the results, checks for robustness (pre-mortem). Asks counter-questions before it structures anything.

OUTPUT Requirements package — a structured document with goals, scope, open questions

Refinement

INPUT Requirements package from Ideation

Mandatory-field check, systematic gap audit, validation against the existing architecture. Writes a detailed spec with REQ IDs and acceptance criteria.

OUTPUT Detailed spec — precise requirements with IDs, ready for implementation

Cyber Factory

INPUT Detailed spec from Refinement

Architecture phase (subsystem decomposition, ADRs, scaffolding), then a wave plan with up to 5 parallel worker sessions in their own git worktrees. Monitoring in 5–7 minute cycles.

OUTPUT Tested implementation — code, tests, documentation per wave

Testing Assistant

INPUT Implementation from Cyber Factory

Systematic tests, adversarial probing, security audit (OWASP Top 10). Fixes nothing — documents only.

OUTPUT Findings report — to the Debugger when there are problems, to Audit on "all green"

Debugger

INPUT Findings from the Testing Assistant, or direct bug reports

Root-cause analysis, fix plan, a dedicated worker session for the fix, verification (the test must have been red before and green after the fix). At most 2 retries, then escalation to the user.

OUTPUT Cleaned-up implementation — back to Testing or on to Audit

Audit

INPUT Implementation after testing/debugging

Code review, security audit, ADR consistency check, cognitive-debt assessment. Implements nothing, fixes nothing.

OUTPUT Release recommendation: Release · Release after fix · Blocked
$ 03 The Entities in Detail

The Entities in Detail

Nine predefined entities, each with its own purpose. None of them is a jack-of-all-trades — that is deliberate.

Companion

Your entry point. Explains concepts, helps with decisions, remembers your preferences across sessions. Writes no code. Three modes: tutor (explain), advisor (weigh up), helper (execute).

Voice Relay

The Companion for voice interaction. Not a proxy session — a full session, optimized for spoken conversation. Short answers, clear sentences, TTS-friendly.

Ideation Partner

Takes a vague idea and makes something concrete out of it. Researches autonomously, structures, questions (pre-mortem). The result is a requirements package, not code.

Refinement

Makes requirements precise. Gap audit, REQ IDs, acceptance criteria. No code — spec only. The most boring and the most valuable phase.

Cyber Factory

The builder. Architecture phase, wave plan, parallel workers, monitoring. For large structured work. Complex, resource-hungry, not for small stuff.

Workshop

The orchestrator for everything that does not fit the pipeline. Receives findings from the Testing Assistant, bug reports, feature requests — and routes them sensibly: trivial things it handles itself, bugs go to the Debugger, larger topics to the Cyber Factory, feature ideas to Ideation. The switchboard after testing.

Testing Assistant

Systematic testing, adversarial probing, security audit. Fixes nothing — documents findings and hands them to the Workshop for triage. The split between finding and distributing is deliberate.

Debugger

Gets individual bugs assigned by the Workshop, analyzes root causes, fixes, verifies. Escalates when no solution stands after 2 attempts — back to the Workshop, which decides between Cyber Factory and escalation to the user.

Audit

Reviews code, security, ADR consistency. Gives a release recommendation: Release, Release after fix, or Blocked. Implements nothing.

Which entity when?

Situation
Entity
Distribute and triage test findings
Workshop
Think a new idea through
Ideation Partner
Implement a feature across >3 files
Cyber Factory
"What does the Cyber Factory do?"
Companion
Spec has gaps
Refinement
Review code before release
Audit
Run the tests
Testing Assistant
Fix a single bug (via Workshop)
Debugger
$ 04 Understanding Presets

Understanding Presets

A preset is a preconfigured role with its own CLAUDE.md instructions. The layering of those instructions is the core concept — it determines how a session behaves.

The five layers

Every session gets its instructions from five layers that build on each other:

1. Global Rules base

Injected into EVERY session. Security rules, basic tool rules, TTS guardrails. Not editable per session.

2. Entity Preset role

The preset.md of the respective entity — role-specific instructions, phases, handoff rules. Defines WHAT the session does.

3. Persona (Character) style

Tonality and communication style. Every preset has an assigned character — Relay for the Companion, Cipher for the Factory, and so on. Defines HOW the session communicates.

4. Workspace Prompt context

Injected into all sessions of this workspace. Project-specific context, conventions, directories.

5. Cell Prompt individual

For this specific cell only. One-off instructions, overrides, special rules.

Variability
Same preset + different workspace + different persona = different behavior. A Refinement preset in the workspace "cipher-mux" works differently than in the workspace "client website" — because the workspace prompt supplies different context and the persona sets a different tone.

Folder Structure

Every entity has its own directory under ~/.config/cipher-mux/entities/:

  • ›preset.md — the main instructions of the role
  • ›guides/ — supplementary guides and references
  • ›ref/ — reference material, examples, templates

Builtin vs. Custom

Built-in presets are fixed — you can use them, but not change them. You create your own presets in the workspace editor: name, prompt text, done. If you want to go deeper, you can build a complete preset folder with the help of Claude Code — with guides, reference material and specialized slash commands. Because it is not the prompt alone that makes a preset special.

Preset editor — layering visible Preset editor — layering visible
Preset editor — layering visible
$ 05 Personas (Characters)

Personas (Characters)

Personas define HOW cipher-mux communicates — tonality and style, not function. Six are built in. You create your own in the workspace editor.

Persona
Character
Relay
Calm, precise, science-journalistic. No praise without checking. Starting character for the Companion and for general sessions.
Cipher
Positive cyberpunk, pragmatically loyal. Dry, direct, sentinel mentality.
Wayne
Pragmatic enthusiast. "We’ll figure it out" attitude. Nerd humor allowed.
Der Kyniker
Facts and code only. Yes/no where possible. Maximally compressed, telegraphic.
Theaitetos
Leads through questions, not answers. Exposes gaps in your thinking, prompts reflection.
The Glitch
Breaks thought patterns. Unconventional metaphors, creative friction. Not for every day.

Global Override

In the workspace editor you can activate a persona globally — it then applies to all sessions, regardless of preset. Useful when you currently prefer one particular tonality.

Custom Personas

Name, color and prompt text — a persona needs no more than that. The built-in personas are editable, and you can create as many of your own as you like.

Persona editor — six built-in characters Persona editor — six built-in characters
Persona editor — six built-in characters
$ 06 Memory, Tags & Workspace Scoping

Memory, Tags & Workspace Scoping

cipher-mux has two systems for knowledge that outlives a single session: Notes (visible, shareable) and Companion Memory (internal, automatic).

Companion Memory

What the AI remembers across sessions. Three scopes:

Scope
Applies to
user
Applies always, everywhere. Your preferences, conventions, quirks.
workspace
Applies in this workspace only. Project decisions, stack choices, open questions.
session
Applies in this session only. Temporary notes, work in progress.

Notes

Visible, shareable pieces of knowledge. Markdown files with tags. You see them in the sidebar, you can read them in Obsidian, and sessions can use them as a handoff medium.

Tags

Tags follow the format class:value — for example workspace:CIPHER-MUX, kind:bugreport, status:open. Auto-tagging by a local AI model on Cmd+S.

Workspace Scoping

When you activate a workspace, this happens automatically: notes are filtered to workspace:Name. Prompts are scoped. Context directories are set. Switching workspace = different context, different notes, different tags.

Note vs. Memory — which one when?

Aspect
Note
Memory
Visibility
Visible in the sidebar, editable
Not visible in the UI, only inspectable in the sidebar’s Memory tab
Shareability
Shareable between sessions, readable in Obsidian
Internal, for the AI only
Typical content
Specs, findings, handoffs, feature descriptions
Preferences, conventions, project context
Example
"Here is the findings report from testing run 3"
"User prefers the Relay persona for code work"
$ 07 Honesty

Honesty

This is not a sales brochure. cipher-mux is a tool that works well for some tasks and not for others.

01 Token costs

Every session consumes API tokens. Parallel sessions multiply the cost. A Cyber Factory run with 5 workers burns tokens fast. This is not free.

02 Context limits

The context window is finite. Once it is full, Claude compresses older messages. Information is lost. There is no magic fix — start a new session.

03 Handoffs can fail

Sometimes the Testing Assistant does not find the right files. Sometimes the Debugger’s fix breaks something else. The system is only as good as the prompts and the LLM.

04 Solo maintainer

cipher-mux is built by one person in their spare time. "I respond when I have time." This is not a startup with a support team.

05 Not for everything

For a quick one-file change, a bare Claude Code session is better. The overhead of entities, presets and lifecycle only pays off for structured work across several files.

The most honest recommendation: try it. If it helps you, use it. If not, nothing lost.

Next? For looking things up.

The complete reference for every function, every button and every menu is in Using the App.