|
| 1 | +# ============================================================================= |
| 2 | +# Claude Flow V3 - Codex Configuration |
| 3 | +# ============================================================================= |
| 4 | +# Generated by: @claude-flow/codex |
| 5 | +# Documentation: https://github.com/ruvnet/claude-flow |
| 6 | +# |
| 7 | +# This file configures the Codex CLI for Claude Flow integration. |
| 8 | +# Place in .agents/config.toml (project) or .codex/config.toml (user). |
| 9 | +# ============================================================================= |
| 10 | + |
| 11 | +# ============================================================================= |
| 12 | +# Core Settings |
| 13 | +# ============================================================================= |
| 14 | + |
| 15 | +# Model selection - the AI model to use for code generation |
| 16 | +# Options: gpt-5.3-codex, gpt-4o, claude-sonnet, claude-opus |
| 17 | +model = "gpt-5.3-codex" |
| 18 | + |
| 19 | +# Approval policy determines when human approval is required |
| 20 | +# - untrusted: Always require approval |
| 21 | +# - on-failure: Require approval only after failures |
| 22 | +# - on-request: Require approval for significant changes |
| 23 | +# - never: Auto-approve all actions (use with caution) |
| 24 | +approval_policy = "on-request" |
| 25 | + |
| 26 | +# Sandbox mode controls file system access |
| 27 | +# - read-only: Can only read files, no modifications |
| 28 | +# - workspace-write: Can write within workspace directory |
| 29 | +# - danger-full-access: Full file system access (dangerous) |
| 30 | +sandbox_mode = "workspace-write" |
| 31 | + |
| 32 | +# Web search enables internet access for research |
| 33 | +# - disabled: No web access |
| 34 | +# - cached: Use cached results when available |
| 35 | +# - live: Always fetch fresh results |
| 36 | +web_search = "cached" |
| 37 | + |
| 38 | +# ============================================================================= |
| 39 | +# Project Documentation |
| 40 | +# ============================================================================= |
| 41 | + |
| 42 | +# Maximum bytes to read from AGENTS.md files |
| 43 | +project_doc_max_bytes = 65536 |
| 44 | + |
| 45 | +# Fallback filenames if AGENTS.md not found |
| 46 | +project_doc_fallback_filenames = [ |
| 47 | + "AGENTS.md", |
| 48 | + "TEAM_GUIDE.md", |
| 49 | + ".agents.md" |
| 50 | +] |
| 51 | + |
| 52 | +# ============================================================================= |
| 53 | +# Features |
| 54 | +# ============================================================================= |
| 55 | + |
| 56 | +[features] |
| 57 | +# Enable child AGENTS.md guidance |
| 58 | +child_agents_md = true |
| 59 | + |
| 60 | +# Cache shell environment for faster repeated commands |
| 61 | +shell_snapshot = true |
| 62 | + |
| 63 | +# Smart approvals based on request context |
| 64 | +request_rule = true |
| 65 | + |
| 66 | +# Enable remote compaction for large histories |
| 67 | +remote_compaction = true |
| 68 | + |
| 69 | +# ============================================================================= |
| 70 | +# MCP Servers |
| 71 | +# ============================================================================= |
| 72 | + |
| 73 | +[mcp_servers.claude-flow] |
| 74 | +command = "npx" |
| 75 | +args = ["-y", "@claude-flow/cli@latest"] |
| 76 | +enabled = true |
| 77 | +tool_timeout_sec = 120 |
| 78 | + |
| 79 | +# ============================================================================= |
| 80 | +# Skills Configuration |
| 81 | +# ============================================================================= |
| 82 | + |
| 83 | +[[skills.config]] |
| 84 | +path = ".agents/skills/swarm-orchestration" |
| 85 | +enabled = true |
| 86 | + |
| 87 | +[[skills.config]] |
| 88 | +path = ".agents/skills/memory-management" |
| 89 | +enabled = true |
| 90 | + |
| 91 | +[[skills.config]] |
| 92 | +path = ".agents/skills/sparc-methodology" |
| 93 | +enabled = true |
| 94 | + |
| 95 | +[[skills.config]] |
| 96 | +path = ".agents/skills/security-audit" |
| 97 | +enabled = true |
| 98 | + |
| 99 | +# ============================================================================= |
| 100 | +# Profiles |
| 101 | +# ============================================================================= |
| 102 | + |
| 103 | +# Development profile - more permissive for local work |
| 104 | +[profiles.dev] |
| 105 | +approval_policy = "never" |
| 106 | +sandbox_mode = "danger-full-access" |
| 107 | +web_search = "live" |
| 108 | + |
| 109 | +# Safe profile - maximum restrictions |
| 110 | +[profiles.safe] |
| 111 | +approval_policy = "untrusted" |
| 112 | +sandbox_mode = "read-only" |
| 113 | +web_search = "disabled" |
| 114 | + |
| 115 | +# CI profile - for automated pipelines |
| 116 | +[profiles.ci] |
| 117 | +approval_policy = "never" |
| 118 | +sandbox_mode = "workspace-write" |
| 119 | +web_search = "cached" |
| 120 | + |
| 121 | +# ============================================================================= |
| 122 | +# History |
| 123 | +# ============================================================================= |
| 124 | + |
| 125 | +[history] |
| 126 | +# Save all session transcripts |
| 127 | +persistence = "save-all" |
| 128 | + |
| 129 | +# ============================================================================= |
| 130 | +# Shell Environment |
| 131 | +# ============================================================================= |
| 132 | + |
| 133 | +[shell_environment_policy] |
| 134 | +# Inherit environment variables |
| 135 | +inherit = "core" |
| 136 | + |
| 137 | +# Exclude sensitive variables |
| 138 | +exclude = ["*_KEY", "*_SECRET", "*_TOKEN", "*_PASSWORD"] |
| 139 | + |
| 140 | +# ============================================================================= |
| 141 | +# Sandbox Workspace Write Settings |
| 142 | +# ============================================================================= |
| 143 | + |
| 144 | +[sandbox_workspace_write] |
| 145 | +# Additional writable paths beyond workspace |
| 146 | +writable_roots = [] |
| 147 | + |
| 148 | +# Allow network access |
| 149 | +network_access = true |
| 150 | + |
| 151 | +# Exclude temp directories |
| 152 | +exclude_slash_tmp = false |
| 153 | + |
| 154 | +# ============================================================================= |
| 155 | +# Security Settings |
| 156 | +# ============================================================================= |
| 157 | + |
| 158 | +[security] |
| 159 | +# Enable input validation for all user inputs |
| 160 | +input_validation = true |
| 161 | + |
| 162 | +# Prevent directory traversal attacks |
| 163 | +path_traversal_prevention = true |
| 164 | + |
| 165 | +# Scan for hardcoded secrets |
| 166 | +secret_scanning = true |
| 167 | + |
| 168 | +# Scan dependencies for known CVEs |
| 169 | +cve_scanning = true |
| 170 | + |
| 171 | +# Maximum file size for operations (bytes) |
| 172 | +max_file_size = 10485760 |
| 173 | + |
| 174 | +# Allowed file extensions (empty = allow all) |
| 175 | +allowed_extensions = [] |
| 176 | + |
| 177 | +# Blocked file patterns (regex) |
| 178 | +blocked_patterns = ["\\.env$", "credentials\\.json$", "\\.pem$", "\\.key$"] |
| 179 | + |
| 180 | +# ============================================================================= |
| 181 | +# Performance Settings |
| 182 | +# ============================================================================= |
| 183 | + |
| 184 | +[performance] |
| 185 | +# Maximum concurrent agents |
| 186 | +max_agents = 8 |
| 187 | + |
| 188 | +# Task timeout in seconds |
| 189 | +task_timeout = 300 |
| 190 | + |
| 191 | +# Memory limit per agent |
| 192 | +memory_limit = "512MB" |
| 193 | + |
| 194 | +# Enable response caching |
| 195 | +cache_enabled = true |
| 196 | + |
| 197 | +# Cache TTL in seconds |
| 198 | +cache_ttl = 3600 |
| 199 | + |
| 200 | +# Enable parallel task execution |
| 201 | +parallel_execution = true |
| 202 | + |
| 203 | +# ============================================================================= |
| 204 | +# Logging Settings |
| 205 | +# ============================================================================= |
| 206 | + |
| 207 | +[logging] |
| 208 | +# Log level: debug, info, warn, error |
| 209 | +level = "info" |
| 210 | + |
| 211 | +# Log format: json, text, pretty |
| 212 | +format = "pretty" |
| 213 | + |
| 214 | +# Log destination: stdout, file, both |
| 215 | +destination = "stdout" |
| 216 | + |
| 217 | +# ============================================================================= |
| 218 | +# Neural Intelligence Settings |
| 219 | +# ============================================================================= |
| 220 | + |
| 221 | +[neural] |
| 222 | +# Enable SONA (Self-Optimizing Neural Architecture) |
| 223 | +sona_enabled = true |
| 224 | + |
| 225 | +# Enable HNSW vector search |
| 226 | +hnsw_enabled = true |
| 227 | + |
| 228 | +# HNSW index parameters |
| 229 | +hnsw_m = 16 |
| 230 | +hnsw_ef_construction = 200 |
| 231 | +hnsw_ef_search = 100 |
| 232 | + |
| 233 | +# Enable pattern learning |
| 234 | +pattern_learning = true |
| 235 | + |
| 236 | +# Learning rate for neural adaptation |
| 237 | +learning_rate = 0.01 |
| 238 | + |
| 239 | +# ============================================================================= |
| 240 | +# Swarm Orchestration Settings |
| 241 | +# ============================================================================= |
| 242 | + |
| 243 | +[swarm] |
| 244 | +# Default topology: hierarchical, mesh, ring, star |
| 245 | +default_topology = "hierarchical" |
| 246 | + |
| 247 | +# Default strategy: balanced, specialized, adaptive |
| 248 | +default_strategy = "specialized" |
| 249 | + |
| 250 | +# Consensus algorithm: raft, byzantine, gossip |
| 251 | +consensus = "raft" |
| 252 | + |
| 253 | +# Enable anti-drift measures |
| 254 | +anti_drift = true |
| 255 | + |
| 256 | +# Checkpoint interval (tasks) |
| 257 | +checkpoint_interval = 10 |
| 258 | + |
| 259 | +# ============================================================================= |
| 260 | +# Hooks Configuration |
| 261 | +# ============================================================================= |
| 262 | + |
| 263 | +[hooks] |
| 264 | +# Enable lifecycle hooks |
| 265 | +enabled = true |
| 266 | + |
| 267 | +# Pre-task hook |
| 268 | +pre_task = true |
| 269 | + |
| 270 | +# Post-task hook (for learning) |
| 271 | +post_task = true |
| 272 | + |
| 273 | +# Enable neural training on post-edit |
| 274 | +train_on_edit = true |
| 275 | + |
| 276 | +# ============================================================================= |
| 277 | +# Background Workers |
| 278 | +# ============================================================================= |
| 279 | + |
| 280 | +[workers] |
| 281 | +# Enable background workers |
| 282 | +enabled = true |
| 283 | + |
| 284 | +# Worker configuration |
| 285 | +[workers.audit] |
| 286 | +enabled = true |
| 287 | +priority = "critical" |
| 288 | +interval = 300 |
| 289 | + |
| 290 | +[workers.optimize] |
| 291 | +enabled = true |
| 292 | +priority = "high" |
| 293 | +interval = 600 |
| 294 | + |
| 295 | +[workers.consolidate] |
| 296 | +enabled = true |
| 297 | +priority = "low" |
| 298 | +interval = 1800 |
0 commit comments