Skip to main content
Version: 0.22.0

Interface: SessionFacts

Defined in: core/sessionFacts.ts:12

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:34
context?ContextUsageHow full the context window is, when the session can tell.core/sessionFacts.ts:36
extensionsobjectThe extensions running (with their tools and what they say about themselves here), and the ones off, with why.core/sessionFacts.ts:23
extensions.activeobject[]-core/sessionFacts.ts:24
extensions.inactiveobject[]-core/sessionFacts.ts:25
identity?AgentIdentityWho the agent is (AgentSpec.identity).core/sessionFacts.ts:14
kitVersionstringThe agent-kit version it runs on.core/sessionFacts.ts:16
languageLanguageThe kit's language for this session.core/sessionFacts.ts:18
modeModeThe mode now, and the ones the person can switch to (Shift+Tab).core/sessionFacts.ts:20
runDirstringThis run's folder.core/sessionFacts.ts:38
skillsstring[]The skills offered (the running session's list once started; until then, the ones asked for).core/sessionFacts.ts:32
subagentsobject[]The subagents it can delegate to.core/sessionFacts.ts:28
switchableModesMode[]-core/sessionFacts.ts:21
toolsstring[]Every tool of the session, as the model names it (empty until the session has started).core/sessionFacts.ts:30