Saltar al contenido principal
Versión: 0.20.0

Interface: BaseSessionConfig

Defined in: core/agentSpec.ts:27

The minimum a config object needs to drive buildSessionOptions() — a concrete agent's own config type (e.g. a Config) extends this with whatever domain fields it needs (a course URL, credentials, ...), which buildSessionOptions() itself never looks at directly: only AgentSpec's methods receive the full concrete config.

Properties​

PropertyTypeDescriptionDefined in
deniedPaths?string[]Files or directories the agent must never read, search or write, e.g. a config file holding a password (see hooks/fileScopeGate.ts).core/agentSpec.ts:52
extensionDirs?ExtensionDirsWhere extensions are installed for this agent (#37): agent for all its projects (e.g. ~/.miyagi/extensions), project for this one (e.g. <projectDir>/extensions), which wins. The enabled ones whose files match their lock run with the session; runExtensionCommand() installs them.core/agentSpec.ts:37
extraReadableDirs?string[]Directories besides extraWritableDirs and the extensions' folders the agent may read and search (Read, Glob, Grep), never write. Read and Glob reach nothing else on the disk but what the kit knows the agent needs (see hooks/fileScopeGate.ts).core/agentSpec.ts:50
extraWritableDirs?string[]Directories where the agent reads, searches and writes with the file tools (Write/Edit, scoped — see hooks/fileScopeGate.ts), e.g. a folder of its own notes. Setting one gives the session all five file tools; an extension's folders (the sources, the knowledge base) come with the extension.core/agentSpec.ts:44
language?stringThe language ("en", "es", "fr", "de") the agent replies in and the kit's interface uses. --language=<code> on the command line wins over it; without either, the system's language (see language.ts). Pass the same value to the chat, wizard or progress view.core/agentSpec.ts:60
modeMode-core/agentSpec.ts:28
projectDirstringProject root (the session's cwd): the folder under which the agent's folders and runs live.core/agentSpec.ts:30
secrets?string[]Extra values (e.g. a password) to scrub out of the transcript log — see hooks/transcriptLogger.ts.core/agentSpec.ts:54
timeZone?stringThe time zone the date and time tools answer in (current_time, date_math), an IANA name such as "Europe/Madrid"; the system's if not given.core/agentSpec.ts:65