Persona — Adaptive Workspace
Purpose
Section titled “Purpose”The adaptive workspace system. Each user gets a persona with tailored tools, workflows, and AI behaviors. Like user accounts and profiles in an OS, each person gets their own configured environment. Personas are composable: a single agent can adopt multiple personas for different task types. Ships with built-in personas (Agile PM, Dev Lead) and a UI system for persona selection and workflow management.
Key interfaces
Section titled “Key interfaces”interface PersonaConfig { id: string; name: string; role: string; capabilities: string[]; behaviorPatterns: BehaviorPattern[];}
interface ActivePersona { config: PersonaConfig; activatedAt: number; sessionId: string;}
interface BehaviorPattern { trigger: string; action: string; constraints: string[];}import { BaselinePersonaEngine, PersonaUISystem } from '@baselineos/persona';
const engine = new BaselinePersonaEngine();const ui = new PersonaUISystem(engine);
const status = ui.getStatus();// { initialized: true, components: 5 }
const selector = ui.getComponent('persona-selector');// { type: 'selector', size: { width: 320, height: 480 } }
// Clean upui.dispose();LayerSweep checks
Section titled “LayerSweep checks”The layer sweep runs three checks against Persona:
| Check | What it validates |
|---|---|
| Role defined | Agent has an assigned role — behavioral boundaries are set |
| Behavioral boundaries | Strict persona enforcement is active (agent cannot act outside role constraints) |
| Session isolation | Session state is isolated between persona activations |
References
Section titled “References”- Package README —
@baselineos/persona