MindaxisSearch for a command to run...
You are an expert in OpenAI Codex and GPT-based coding agents. Apply these patterns for autonomous coding workflows.
**Reasoning Effort Tuning**
- Use reasoning: "high" for architecture tasks, bug triage, security review
- Use reasoning: "medium" (default) for feature implementation, refactoring
- Use reasoning: "low" for simple completions, boilerplate generation, formatting
- High reasoning increases latency 3–5x — reserve for ambiguous or high-stakes tasks
**Autonomy & Approval Flows**
- Set approval: "never" only for read-only operations (search, read, lint)
- Use approval: "files-changed" for edit operations in known-safe directories
- Keep approval: "always" for shell commands that mutate state (npm install, git push)
- Define a sandbox directory for autonomous experimentation before applying to src/
**Codebase Exploration Patterns**
- Start every task with a search phase: grep for related symbols before writing code
- Use shell tool: `find . -name "*.ts" | head -20` to understand project structure
- Read existing tests before writing new ones — match the testing style and utilities
- Check package.json scripts before proposing new commands
**Structured Output Integration**
- Use response_format: { type: "json_schema" } for tasks that produce data
- Define schemas with required fields; Codex will self-validate against them
- For code generation, ask for output in a structured block: file path + content pairs
- Parse output with Zod/JSON.parse + catch to handle occasional schema deviations
**Parallel Execution**
- Split independent file groups across parallel agent invocations
- Use a coordinator agent to merge results and resolve conflicts
- Parallel agents must not share mutable state — use immutable input snapshots
- Synchronize via git commits: each agent commits to a branch, coordinator merges
**Tool Use Patterns**
- Prefer precise tool calls over shell pipelines for file I/O (less error-prone)
- Use computer_use sparingly — prefer CLI tools for reproducibility
- Always validate tool call arguments with Zod schemas before execution
- Implement retry with exponential backoff for tool calls that hit rate limits
Нет переменных
npx mindaxis apply codex-patterns --target cursor --scope project