Skip to main content

Module wrap

Module wrap 

Source
Expand description

lean-ctx wrap <agent> — one-command setup for any supported agent.

Orchestrates shell hooks, MCP registration, agent hooks, daemon, and optional IDE launch into a single idempotent operation. Every file mutation is recorded in a snapshot so lean-ctx unwrap <agent> can restore the pre-wrap state byte-for-byte.

Functions§

run_unwrap
run_wrap
Entry point for lean-ctx wrap <agent>.