# =============================================================================
# Claude Flow V3 - Codex Configuration (GPT-5.4 Variant)
# =============================================================================

model = "gpt-5.4"
approval_policy = "on-request"
sandbox_mode = "workspace-write"
web_search = "cached"

project_doc_max_bytes = 65536
project_doc_fallback_filenames = [
  "AGENTS.md",
  "TEAM_GUIDE.md",
  ".agents.md"
]

[features]
child_agents_md = true
shell_snapshot = true
request_rule = true
remote_compaction = true

[mcp_servers.claude-flow]
command = "npx"
args = ["-y", "@claude-flow/cli@latest"]
enabled = true
tool_timeout_sec = 120

[[skills.config]]
path = ".agents/skills/swarm-orchestration"
enabled = true

[[skills.config]]
path = ".agents/skills/memory-management"
enabled = true

[[skills.config]]
path = ".agents/skills/sparc-methodology"
enabled = true

[[skills.config]]
path = ".agents/skills/security-audit"
enabled = true

[profiles.dev]
approval_policy = "never"
sandbox_mode = "danger-full-access"
web_search = "live"

[profiles.safe]
approval_policy = "untrusted"
sandbox_mode = "read-only"
web_search = "disabled"

[profiles.ci]
approval_policy = "never"
sandbox_mode = "workspace-write"
web_search = "cached"

[history]
persistence = "save-all"

[shell_environment_policy]
inherit = "core"
exclude = ["*_KEY", "*_SECRET", "*_TOKEN", "*_PASSWORD"]

[sandbox_workspace_write]
writable_roots = []
network_access = true
exclude_slash_tmp = false

[security]
input_validation = true
path_traversal_prevention = true
secret_scanning = true
cve_scanning = true
max_file_size = 10485760
allowed_extensions = []
blocked_patterns = ["\\.env$", "credentials\\.json$", "\\.pem$", "\\.key$"]

[performance]
max_agents = 8
task_timeout = 300
memory_limit = "512MB"
cache_enabled = true
cache_ttl = 3600
parallel_execution = true

[logging]
level = "info"
format = "pretty"
destination = "stdout"
