🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
Checkpoint: File edits
rUv1639936325c0
diff --git a/v3/@claude-flow/codex/src/generators/config-toml.ts b/v3/@claude-flow/codex/src/generators/config-toml.tsindex 40e9a0f827..fc45621a02 100644--- a/v3/@claude-flow/codex/src/generators/config-toml.ts+++ b/v3/@claude-flow/codex/src/generators/config-toml.ts@@ -6,10 +6,56 @@import type { ConfigTomlOptions, McpServerConfig, SkillConfig, ConfigProfile } from '../types.js';+/**+ * Security configuration options+ */+interface SecurityConfig {+ inputValidation?: boolean;+ pathTraversal?: boolean;+ secretScanning?: boolean;+ cveScanning?: boolean;+ maxFileSize?: number;+ allowedExtensions?: string[];+ blockedPatterns?: string[];+}++/**+ * Performance configuration options+ */+interface PerformanceConfig {+ maxAgents?: number;+ taskTimeout?: number;+ memoryLimit?: string;+ cacheEnabled?: boolean;+ cacheTtl?: number;+ parallelExecution?: boolean;+}++/**+ * Logging configuration options+ */+interface LoggingConfig {+ level?: 'debug' | 'info' | 'warn' | 'error';+ format?: 'json' | 'text' | 'pretty';+ destination?: 'stdout' | 'file' | 'both';+ filePath?: string;+ maxFiles?: number;+ maxSize?: string;+}++/**+ * Extended configuration options+ */+interface ExtendedConfigTomlOptions extends ConfigTomlOptions {+ security?: SecurityConfig;+ performance?: PerformanceConfig;+ logging?: LoggingConfig;+}+/*** Generate a config.toml file based on the provided options*/-export async function generateConfigToml(options: ConfigTomlOptions = {}): Promise<string> {+export async function generateConfigToml(options: ExtendedConfigTomlOptions = {}): Promise<string> {const {model = 'gpt-5.3-codex',approvalPolicy = 'on-request',@@ -21,29 +67,49 @@ export async function generateConfigToml(options: ConfigTomlOptions = {}): Promiskills = [],profiles = {},historyPersistence = 'save-all',+ security = {},+ performance = {},+ logging = {},} = options;const lines: string[] = [];// Header+ lines.push('# =============================================================================');lines.push('# Claude Flow V3 - Codex Configuration');+ lines.push('# =============================================================================');lines.push('# Generated by: @claude-flow/codex');lines.push('# Documentation: https://github.com/ruvnet/claude-flow');+ lines.push('# ');+ lines.push('# This file configures the Codex CLI for Claude Flow integration.');+ lines.push('# Place in .agents/config.toml (project) or .codex/config.toml (user).');+ lines.push('# =============================================================================');lines.push('');lines.push('# =============================================================================');lines.push('# Core Settings');lines.push('# =============================================================================');lines.push('');- lines.push('# Model selection');+ lines.push('# Model selection - the AI model to use for code generation');+ lines.push('# Options: gpt-5.3-codex, gpt-4o, claude-sonnet, claude-opus');lines.push(`model = "${model}"`);lines.push('');- lines.push('# Approval policy: untrusted | on-failure | on-request | never');+ lines.push('# Approval policy determines when human approval is required');+ lines.push('# - untrusted: Always require approval');+ lines.push('# - on-failure: Require approval only after failures');+ lines.push('# - on-request: Require approval for significant changes');+ lines.push('# - never: Auto-approve all actions (use with caution)');lines.push(`approval_policy = "${approvalPolicy}"`);lines.push('');- lines.push('# Sandbox mode: read-only | workspace-write | danger-full-access');+ lines.push('# Sandbox mode controls file system access');+ lines.push('# - read-only: Can only read files, no modifications');+ lines.push('# - workspace-write: Can write within workspace directory');+ lines.push('# - danger-full-access: Full file system access (dangerous)');lines.push(`sandbox_mode = "${sandboxMode}"`);lines.push('');- lines.push('# Web search: disabled | cached | live');+ lines.push('# Web search enables internet access for research');+ lines.push('# - disabled: No web access');+ lines.push('# - cached: Use cached results when available');+ lines.push('# - live: Always fetch fresh results');lines.push(`web_search = "${webSearch}"`);lines.push('');