Download packages/agent-core-v2/src/session/subagent/flag.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 622 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/session/subagent/flag.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/session/subagent/flag.ts
-
curl -L -o flag.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/session/subagent/flag.ts
622 Bytes
| import { type FlagDefinitionInput, registerFlagDefinition } from '#/app/flag/flagRegistry'; | |
| export const SUBAGENT_FORK_FLAG_ID = 'subagent_fork'; | |
| export const SUBAGENT_FORK_FLAG_ENV = 'KIMI_CODE_EXPERIMENTAL_SUBAGENT_FORK'; | |
| export const subagentForkFlag: FlagDefinitionInput = { | |
| id: SUBAGENT_FORK_FLAG_ID, | |
| title: 'Fork context for subagents', | |
| description: | |
| 'Let the Agent and AgentSwarm tools start a subagent with a snapshot of the calling agent\'s conversation history via the fork parameter.', | |
| env: SUBAGENT_FORK_FLAG_ENV, | |
| default: false, | |
| surface: 'core', | |
| }; | |
| registerFlagDefinition(subagentForkFlag); | |