MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / systemContextKaos

Method systemContextKaos

packages/agent-core/src/session/index.ts:288–290  ·  view source on GitHub ↗

* Kaos used by session-internal bootstrap (AGENTS.md context, cwd listing) * and metadata persistence. Always backed by the persistence sink (typically * the local filesystem) so a transient ACP-side failure on system files like * `AGENTS.md` never blocks `bootstrapAgentProfile` — tool call

(cwd: string)

Source from the content-addressed store, hash-verified

286 * through `agent.kaos` and continue to honor the ACP bridge.
287 */
288 systemContextKaos(cwd: string): Kaos {
289 return this.persistenceKaos.withCwd(cwd);
290 }
291
292 async createMain() {
293 const { agent } = await this.createAgent({ type: 'main' }, {

Callers 5

addAdditionalDirMethod · 0.95
bootstrapAgentProfileMethod · 0.95
instantiateAgentMethod · 0.95
configureChildMethod · 0.80

Calls 1

withCwdMethod · 0.65

Tested by

no test coverage detected