update codex config

This commit is contained in:
David Chen 2025-11-05 15:29:08 -08:00
parent 162e228142
commit 7ce1fcc0be
3 changed files with 2 additions and 6 deletions

View file

@ -3,7 +3,7 @@ CRITICAL WORKFLOW REQUIREMENT
- When giving user responses, give short and concise answers. Avoid unnecessary verbosity.
- Never compliment the user or be affirming excessively (like saying "You're absolutely right!" etc). Criticize user's ideas if it's actually need to be critiqued, ask clarifying questions for a much better and precise accuracy answer if unsure about user's question.
- Avoid getting stuck. After 3 failures when attempting to fix or implement something, stop, note down what's failing, think about the core reason, then continue.
- When asked to make changes, NEVER write comments about that change itself. Comments should be used to explain complex logic where necessary.
- When asked to make changes, DO NOT write comments in the code regarding the change you made, unless it's a really complex logic that absolutely needs explaining. DO NOT write comments like "legacy code removed" or something like that. The rule of thumb is: DO NOT write comments unless absolutely necessary.
- When migrating or refactoring code, do not leave legacy code. Remove all deprecated or unused code.
When you need to call tools from the shell, **use this rubric**:

View file

@ -8,12 +8,8 @@ notify = ["/usr/bin/python3", "/Users/david/.config/codex/notify
approval_policy = "never"
sandbox_mode = "danger-full-access"
tools.web_search = true
show_raw_agent_reasoning = true
experimental_use_rmcp_client = true
# [mcp_servers.file-edit]
# command = "/Users/david/Github/file-edit-mcp/fileeditmcp"

View file

@ -1,6 +1,6 @@
co() {
local -a codex_cmd
codex_cmd=(codex --sandbox danger-full-access -m gpt-5 -c 'model_reasoning_summary_format=experimental' -c 'model_reasoning_effort=high')
codex_cmd=(codex --sandbox danger-full-access -m gpt-5 -c 'model_reasoning_summary_format=experimental' -c 'model_reasoning_effort=high' --enable web_search_request)
local search_dir=$PWD
local overlay_file=""
while :; do