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
| Property | Type | Description | Defined in |
|---|---|---|---|
commands | object[] | The slash commands the person can type, with what each does (empty until the session has started). | core/sessionFacts.ts:36 |
context? | ContextUsage | How full the context window is, when the session can tell. | core/sessionFacts.ts:38 |
extensions | object | The extensions running (with their tools and what they say about themselves here), and the ones off, with why. | core/sessionFacts.ts:24 |
extensions.active | object[] | Each with its capabilities (#62), in English: what the model reads. | core/sessionFacts.ts:26 |
extensions.inactive | object[] | - | core/sessionFacts.ts:27 |
identity? | AgentIdentity | Who the agent is (AgentSpec.identity). | core/sessionFacts.ts:15 |
kitVersion | string | The agent-kit version it runs on. | core/sessionFacts.ts:17 |
language | Language | The kit's language for this session. | core/sessionFacts.ts:19 |
mode | Mode | The mode now, and the ones the person can switch to (Shift+Tab). | core/sessionFacts.ts:21 |
runDir | string | This run's folder. | core/sessionFacts.ts:40 |
skills | string[] | The skills offered (the running session's list once started; until then, the ones asked for). | core/sessionFacts.ts:34 |
subagents | object[] | The subagents it can delegate to. | core/sessionFacts.ts:30 |
switchableModes | Mode[] | - | core/sessionFacts.ts:22 |
tools | string[] | Every tool of the session, as the model names it (empty until the session has started). | core/sessionFacts.ts:32 |