JcodeClient.launch(options) | Start a private instance and connect |
JcodeClient.connect(options) | Attach to the running jcode |
listSessions({ includeArchived? }) | Discover persisted sessions |
createSession(workingDir?) | Create a session and attach |
attachSession(id) · detachSession(id) | Subscribe to or leave a session's events |
sendMessage(id, content, options?) | Send a turn, or persist context with noReply |
run(id, content, options?) | Send and collect one full turn |
runStructured(id, content, options) | Schema-validated JSON with bounded retries |
events(sessionId?) | Async iterator over stream events |
globalEvents(options?) | Every session in one bounded iterator |
cancel(id) · softInterrupt(id, content, urgent?) | Interrupt a turn |
cancelSoftInterrupts(id) | Retract queued soft interrupts |
getHistory(id) · peekSession(id, limit?) | Read a transcript; peek does not attach |
clear(id) · rewind(id, index) · rewindUndo(id) | Edit history |
compact(id) | Schedule compaction to free context |
renameSession(id, title?) | Set or clear a title |
archiveSession(id) · restoreSession(id) | Reversibly hide or restore |
setRetentionPolicy(days?) | Automatic reversible archival |
respondToPermission(id, requestId, decision) | Answer a permission prompt |
listModels(id) · setModel(id, model) | List and choose the model |
setReasoningEffort(id, effort) | Set the cost and quality dial |
getRuntimeInfo(id) | Version, capabilities, provider, model, routes |
setApiKey(provider, key) · clearApiKey(provider) | Provision or remove an owner-only key |
readFile · findFiles · searchText · fileStatus | Bounded reads under the working directory |
ping() | Liveness check |