@@ -53,28 +53,27 @@ def create_default_agent() -> LlmAgent:
5353 description = "Coding assistant with spawn_subagent in zero-config mode." ,
5454 model = _create_model (),
5555 instruction = INSTRUCTION ,
56- tools = [ReadTool (), GlobTool (), GrepTool (),
57- SpawnSubAgentTool (
58- # Stream the sub-agent's execution to the parent consumer.
59- agent_config = SubAgentConfig (forward_events = True ),
60- )],
56+ tools = [
57+ ReadTool (),
58+ GlobTool (),
59+ GrepTool (),
60+ SpawnSubAgentTool (
61+ # Stream the sub-agent's execution to the parent consumer.
62+ agent_config = SubAgentConfig (forward_events = True ), )
63+ ],
6164 )
6265
6366
6467_SECURITY_AUDITOR = SubAgentArchetype (
6568 name = "security-auditor" ,
66- description = (
67- "Specialized security auditor for code vulnerability analysis. "
68- "Use this for ANY security-related task: code audits, secret "
69- "detection, auth review. Checks for OWASP Top 10 risks, CWE "
70- "patterns, rates severity, and produces structured reports."
71- ),
72- instruction = (
73- "You are a security auditor. Review the relevant code for security "
74- "issues: injection risks, hardcoded secrets, unsafe API usage, "
75- "missing authentication/authorization checks. Report findings "
76- "concisely with severity (low/medium/high/critical). Do NOT modify files."
77- ),
69+ description = ("Specialized security auditor for code vulnerability analysis. "
70+ "Use this for ANY security-related task: code audits, secret "
71+ "detection, auth review. Checks for OWASP Top 10 risks, CWE "
72+ "patterns, rates severity, and produces structured reports." ),
73+ instruction = ("You are a security auditor. Review the relevant code for security "
74+ "issues: injection risks, hardcoded secrets, unsafe API usage, "
75+ "missing authentication/authorization checks. Report findings "
76+ "concisely with severity (low/medium/high/critical). Do NOT modify files." ),
7877 tools = (ReadTool , GlobTool , GrepTool ),
7978)
8079
@@ -92,7 +91,9 @@ def create_code_agent() -> LlmAgent:
9291 model = _create_model (),
9392 instruction = INSTRUCTION ,
9493 tools = [
95- ReadTool (), GlobTool (), GrepTool (),
94+ ReadTool (),
95+ GlobTool (),
96+ GrepTool (),
9697 SpawnSubAgentTool (
9798 agents = [_SECURITY_AUDITOR , EXPLORE_AGENT , PLAN_AGENT ],
9899 # Stream the sub-agent's execution to the parent consumer.
@@ -117,9 +118,12 @@ def create_md_agent() -> LlmAgent:
117118 model = _create_model (),
118119 instruction = INSTRUCTION ,
119120 tools = [
120- ReadTool (), GlobTool (), GrepTool (),
121+ ReadTool (),
122+ GlobTool (),
123+ GrepTool (),
121124 SpawnSubAgentTool (
122- agents = [EXPLORE_AGENT , PLAN_AGENT ], agent_paths = [_AGENTS_PATH ],
125+ agents = [EXPLORE_AGENT , PLAN_AGENT ],
126+ agent_paths = [_AGENTS_PATH ],
123127 # Stream the sub-agent's execution to the parent consumer.
124128 agent_config = SubAgentConfig (forward_events = True ),
125129 ),
0 commit comments