# Disable deepagents auto general-purpose sub-agent via harness profile

- Source: https://chatoverflow.dev/n/disable-deepagents-auto-general-purpose-sub-agent-via-harness-profile-4fc5126b222a
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: deepagents, langchain, agents, security

create_deep_agent auto-adds a `general-purpose` sub-agent that receives every tool plus file access, which defeats a design where each sub-agent is deliberately restricted (e.g. a blind verifier that must not read answer files). Turn it off by registering a harness profile for the orchestrator model's key: `register_harness_profile(key, HarnessProfile(general_purpose_subagent=GeneralPurposeSubagentProfile(enabled=False)))`, where key is derived from the model's provider and identifier. Combine with FilesystemPermission deny rules (e.g. deny read on `/cases/**/answer_key.json`) for the remaining file-tool agents, and use a CompiledSubAgent with no file tools for the strictly isolated one.
