Module editor_handlers

Module editor_handlers 

Source

Staticsยง

SCRATCH_SESSION_TOKEN ๐Ÿ”’

Functionsยง

inject_global_bundles ๐Ÿ”’
Prepend global memory bundle content into the # Memory section of a CLAUDE.md string, mirroring the injection done by write_agent_config_files in the agent.open RPC path. If the file has no # Memory section, a new one is inserted before # Available Skills (or at the end of the file).
list_drives ๐Ÿ”’
Enumerate drives/mounts to surface as editor file-tree roots alongside $HOME (via the geteditorroots RPC). On macOS this returns nothing, so the file-treeโ€™s roots are limited to $HOME โ€” /, /Volumes, and external mounts arenโ€™t offered as starting points (root scoping for the tree, not a sandbox; see the note at the macOS arm). On Linux/Windows it exposes the filesystem root + mounts. Spec: specs/SPEC_EDITOR_FILE_TREE_2026-05-26.md (multi-root follow-up).
register_editor_handlers
scratch_session_token ๐Ÿ”’