Skip to main content

Module commands

Module commands 

Source
Expand description

Command implementations

Structs§

HarvestConfig
Configuration for the harvest database
HarvestStats
Statistics from a harvest operation
HarvestedSession
A harvested session record

Functions§

apply_pending_index
Apply a pending registration after VS Code has exited. Called by the detached watchdog process (via chasm internal apply-pending).
configure_provider
Configure a provider
create_agent
Create a new agent configuration
create_migration
Create a migration package
detect_all
Detect everything (workspace, providers, sessions) for a path
detect_orphaned
Detect all workspace hashes for a project path (including orphaned workspaces) This helps find sessions that exist on disk but are in old/orphaned workspace folders
detect_providers
Detect available providers and their status
detect_session
Detect which provider a session belongs to
detect_workspace
Detect workspace information for a given path
doctor
Run all diagnostic checks
export_batch
Export chat sessions from multiple project paths (batch operation)
export_sessions
Export chat sessions from a workspace
export_specific_sessions
Export specific sessions by ID
fetch_by_workspace
Fetch sessions from workspaces matching a name pattern
fetch_sessions
Fetch specific sessions by their IDs
find_sessions
Find sessions by search pattern
find_sessions_filtered
Optimized session search with filtering
find_workspaces
Find workspaces by search pattern
git_add
Add chat sessions to git
git_config
Configure git settings for chat sessions
git_diff
Diff chat sessions between commits or current state
git_init
Initialize git versioning for chat sessions
git_log
Show history of chat session commits with associated file changes
git_restore
Restore chat sessions from a specific commit
git_snapshot
Create a git tag snapshot of chat sessions
git_status
Show git status of chat sessions
git_track
Track chat sessions together with associated file changes
harvest_checkpoint
Create a checkpoint (version snapshot) of a session
harvest_checkpoints
List checkpoints for a session
harvest_compact
Compact the harvest database by stripping session_json request blobs.
harvest_export
Export sessions from the harvest database
harvest_git_commit
harvest_git_diff
harvest_git_init
Git operations for harvest database
harvest_git_log
harvest_git_restore
harvest_init
Initialize a harvest database at the specified path
harvest_list
List sessions in the harvest database
harvest_rebuild_fts
Rebuild the FTS index from messages_v2 table
harvest_restore_checkpoint
Restore a session to a previous checkpoint
harvest_run
Run the harvest operation
harvest_scan
Scan for available providers and workspaces
harvest_search
Full-text search across all sessions
harvest_share
Import a chat session from a share link URL
harvest_shares
List share links in the harvest database
harvest_status
Show harvest database status
harvest_sync
Sync sessions between the harvest database and provider workspaces
history_fetch
Fetch chat sessions from other workspaces into current workspace
history_merge
Merge all chat sessions into a single unified chat ordered by timestamp
history_show
Show all chat sessions across workspaces for current project
import_from_provider
Import sessions from another provider
import_sessions
Import chat sessions into a workspace
import_specific_sessions
Import specific session files
inspect_cache
chasm inspect cache — Show agentSessions model & state caches.
inspect_files
chasm inspect files — List all files in the chatSessions directory with details.
inspect_index
chasm inspect index — Show the ChatSessionStore index entries.
inspect_keys
chasm inspect keys — List all session-related keys in state.vscdb with sizes.
inspect_memento
chasm inspect memento — Show session memento (input history and active session state).
inspect_rebuild
chasm inspect rebuild — Rebuild session index and model cache from files on disk. Scans chatSessions/, parses each session file, builds the index with full metadata (title, timestamps, request count), overwrites chat.ChatSessionStore.index and agentSessions.model.cache, cleans up agentSessions.state.cache, and fixes the active-session memento.
inspect_validate
chasm inspect validate — Validate session files on disk (format, size, parse).
list_agents
List available agents and roles
list_agents_cli
List all available agents and their status
list_agents_sessions
List agent mode sessions (chatEditingSessions / Copilot Edits)
list_modes
List orchestration modes
list_orphaned
List sessions that exist on disk but are not in VS Code’s index
list_providers
List all discovered providers
list_sessions
List all chat sessions
list_templates
Show swarm templates
list_tools
List available tools
list_workspaces
List all VS Code workspaces
merge_all_providers
Merge all sessions from all available providers
merge_by_workspace_name
Merge chat sessions from workspaces matching a name pattern
merge_by_workspace_names
Merge chat sessions from multiple workspace name patterns
merge_cross_provider
Merge chat sessions from multiple providers (cross-provider merge)
merge_from_provider
Merge chat sessions from an LLM provider
merge_sessions_by_list
Merge specific chat sessions by their IDs or filenames
move_by_path
Move sessions from one path to another
move_sessions
Move chat sessions from one workspace to another (by path lookup)
move_specific_sessions
Move specific sessions by ID
move_workspace
Move all sessions from one workspace to another (by hash)
provider_info
Show detailed info about a specific provider
recover_backups
Scan all VS Code workspaces (optionally filtered by path) for backup files (.jsonl.bak, .jsonl.pre-restore, .json, .json.bak) that contain more requests than the current .jsonl — and restore them.
recover_convert
Convert session files between JSON and JSONL formats
recover_copilot_info
Display comprehensive Copilot Chat extension version information and compatibility analysis with session data.
recover_detect
Detect and display session format and version information
recover_extract
Extract sessions from a VS Code workspace by project path
recover_from_database
Recover sessions from a SQLite database backup
recover_from_recording
Recover sessions from the recording API server
recover_jsonl
Recover sessions from corrupted JSONL files
recover_orphans
List orphaned sessions in workspaceStorage
recover_recursive
Recursively walk a directory tree and recover orphaned sessions for all workspaces found.
recover_repair
Repair corrupted session files in place
recover_scan
Scan for recoverable sessions from various sources
recover_status
Show recovery status and recommendations
recover_upgrade
Upgrade session files for multiple projects to the current provider format
register_all
Register all sessions from a workspace into VS Code’s index
register_recursive
Recursively walk directories and register orphaned sessions for all workspaces found.
register_repair
Repair sessions: compact JSONL files and rebuild the index with correct metadata
register_sessions
Register specific sessions by ID or title
register_trim
Trim oversized sessions by keeping only the most recent requests.
resolve_path
Resolve a path option to an absolute PathBuf, handling “.” and relative paths
restore_migration
Restore a migration package
run_agent
Run an agent with a prompt
run_agent_cli
Run an agent by alias with auto-save
schema_detect
chasm schema detect — Auto-detect schema for a workspace or file
schema_export
chasm schema export — Export full registry + ontology as JSON
schema_list
chasm schema list — List all known provider schemas
schema_mappings
chasm schema mappings — Show cross-provider field mappings
schema_ontology
chasm schema ontology — Show the ontology (entity types, relationships, semantic tags)
schema_show
chasm schema show — Show detailed schema for a specific version
shard_info
Show information about shards of a session.
shard_session
Shard a single session file.
shard_workspace
Shard all oversized sessions in a workspace.
show_agent_info
Show agent information
show_agent_session
Show agent mode session details
show_index
Show the VS Code session index (state.vscdb) for a workspace
show_session
Show session details
show_timeline
Show timeline of session activity with gap visualization
show_workspace
Show workspace details
telemetry_clear
Clear telemetry records
telemetry_config
Configure remote telemetry endpoint
telemetry_export
Export telemetry records
telemetry_info
Show telemetry status and what data is collected
telemetry_opt_in
Enable telemetry (opt-in)
telemetry_opt_out
Disable telemetry (opt-out)
telemetry_record
Record structured telemetry data for AI analysis
telemetry_reset
Reset telemetry ID
telemetry_show
Show recorded telemetry data
telemetry_sync
Sync telemetry records to remote server
telemetry_test
Test connection to remote telemetry server
test_provider
Test connection to a provider
watch_cli
Run the watch command — monitor agent session directories for changes