Skip to content

Persona — Adaptive Workspace

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.

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 up
ui.dispose();

The layer sweep runs three checks against Persona:

CheckWhat it validates
Role definedAgent has an assigned role — behavioral boundaries are set
Behavioral boundariesStrict persona enforcement is active (agent cannot act outside role constraints)
Session isolationSession state is isolated between persona activations