Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
// UPSTREAM([email protected]): any of these makes turbo detect a coding agent and maintain its AGENTS.md block; detect() also checks /opt/.devin.
const TURBO_AGENT_DETECTION_VARS = [
'AI_AGENT',
'CURSOR_TRACE_ID',
'CURSOR_AGENT',
'GEMINI_CLI',
'CODEX_SANDBOX',
'AUGMENT_AGENT',
'OPENCODE_CLIENT',
'OPENCODE',
'CLAUDECODE',
'CLAUDE_CODE',
'REPL_ID',
];
export function withoutTurboAgentDetection(env) {
return Object.fromEntries(
Object.entries(env).filter(([key]) => !TURBO_AGENT_DETECTION_VARS.includes(key)),
);
}