Skip to main content
Version: 0.25.0

Interface: SessionFacts

Defined in: core/sessionFacts.ts:13

What a session is, at the moment it's asked (ExtensionContext.session(), #43): the core's facts, read-only, never another extension's data. The mode follows Shift+Tab and plan mode; the tools, skills, commands and context come from the running session once it has started.

Properties​

PropertyTypeDescriptionDefined in
commandsobject[]The slash commands the person can type, with what each does (empty until the session has started).core/sessionFacts.ts:36
context?ContextUsageHow full the context window is, when the session can tell.core/sessionFacts.ts:38
extensionsobjectThe extensions running (with their tools and what they say about themselves here), and the ones off, with why.core/sessionFacts.ts:24
extensions.activeobject[]Each with its capabilities (#62), in English: what the model reads.core/sessionFacts.ts:26
extensions.inactiveobject[]-core/sessionFacts.ts:27
identity?AgentIdentityWho the agent is (AgentSpec.identity).core/sessionFacts.ts:15
kitVersionstringThe agent-kit version it runs on.core/sessionFacts.ts:17
languageLanguageThe kit's language for this session.core/sessionFacts.ts:19
modeModeThe mode now, and the ones the person can switch to (Shift+Tab).core/sessionFacts.ts:21
runDirstringThis run's folder.core/sessionFacts.ts:40
skillsstring[]The skills offered (the running session's list once started; until then, the ones asked for).core/sessionFacts.ts:34
subagentsobject[]The subagents it can delegate to.core/sessionFacts.ts:30
switchableModesMode[]-core/sessionFacts.ts:22
toolsstring[]Every tool of the session, as the model names it (empty until the session has started).core/sessionFacts.ts:32