Expand description
Command implementations
Structs§
- Harvest
Config - Configuration for the harvest database
- Harvest
Stats - Statistics from a harvest operation
- Harvested
Session - 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), overwriteschat.ChatSessionStore.indexandagentSessions.model.cache, cleans upagentSessions.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