From 04c174c8ef38ec41565fef2a9f500a87239b6c40 Mon Sep 17 00:00:00 2001 From: David Chen Date: Mon, 20 Oct 2025 23:23:35 -0700 Subject: [PATCH] AGENTS.md updates --- codex/AGENTS.md | 8 +++----- codex/config.toml | 9 +++++++++ zsh/functions/co.zsh | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/codex/AGENTS.md b/codex/AGENTS.md index 4fbe0e6..0da36f4 100644 --- a/codex/AGENTS.md +++ b/codex/AGENTS.md @@ -3,13 +3,10 @@ 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, avoid writing comments in the code about that change. Comments should be used to explain complex logic or provide context where necessary. -- When giving the user bullet lists, use different bullet characters for different levels +- When asked to make changes, NEVER write comments about that change itself. Comments should be used to explain complex logic where 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**: -- Find Files: `fd` -- Find Text: `rg` (ripgrep) -- Select among matches: pipe to `fzf` - JSON: `jq` - YAML/XML: `yq` - Use the `python3` command for python. There is no `python` command on this system. @@ -20,6 +17,7 @@ TRACKER INTEGRATION - `tmux_id`: the provided TMUX_ID in the form `session_id::window_id::pane_id` Other recommendations: +- When giving the user bullet lists, use different bullet characters for different levels - Use numbered lists for options/confirmations. - Prompt users to reply compactly (e.g., "1Y 2N 3Y"). - Default to numbers for multi-step plans and checklists. diff --git a/codex/config.toml b/codex/config.toml index ed3c9af..1a8859c 100644 --- a/codex/config.toml +++ b/codex/config.toml @@ -5,6 +5,15 @@ tui = { theme = { name = "dark-zen-garden" }, spinner = { nam model_reasoning_effort = "high" notify = ["/usr/bin/python3", "/Users/david/.config/codex/notify.py"] +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" diff --git a/zsh/functions/co.zsh b/zsh/functions/co.zsh index e700d3d..c923a99 100644 --- a/zsh/functions/co.zsh +++ b/zsh/functions/co.zsh @@ -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' --search) + codex_cmd=(codex --sandbox danger-full-access -m gpt-5 -c 'model_reasoning_summary_format=experimental' -c 'model_reasoning_effort=high') local search_dir=$PWD local overlay_file="" while :; do