Skip to main content

Module roles

Module roles 

Source
Expand description

Role-based access control for agent governance.

Roles define what tools an agent can use, shell policy, and resource limits. Resolution order: Env (LEAN_CTX_ROLE) -> Project .lean-ctx/roles/ -> Global ~/.lean-ctx/roles/ -> Built-in.

Structs§

IoPolicy
Role
RoleInfo
RoleLimits
RoleMeta
ToolPolicy

Enums§

RoleSource

Functions§

active_role
active_role_name
list_roles
load_role
set_active_role