feat: disallow present_files tool in subagents and add market-analysis skill

Add "present_files" to disallowed_tools for bash and general-purpose
subagents to prevent them from presenting files directly. Also add the
new market-analysis skill for generating consulting-grade reports.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hetaoBackend
2026-02-08 23:35:29 +08:00
parent 8a2351593c
commit 6eb4cdd3ec
3 changed files with 210 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ You have access to the sandbox environment:
</working_directory>
""",
tools=["bash", "ls", "read_file", "write_file", "str_replace"], # Sandbox tools only
disallowed_tools=["task", "ask_clarification"],
disallowed_tools=["task", "ask_clarification", "present_files"],
model="inherit",
max_turns=30,
)

View File

@@ -40,7 +40,7 @@ You have access to the same sandbox environment as the parent agent:
</working_directory>
""",
tools=None, # Inherit all tools from parent
disallowed_tools=["task", "ask_clarification"], # Prevent nesting and clarification
disallowed_tools=["task", "ask_clarification", "present_files"], # Prevent nesting and clarification
model="inherit",
max_turns=50,
)