From 80aa7bc413625aa9335fd780591e4cedfe3be5bc Mon Sep 17 00:00:00 2001 From: David Chen Date: Wed, 10 Sep 2025 12:05:22 -0700 Subject: [PATCH] codex config --- .gitignore | 6 ++++++ codex/AGENTS.md | 15 +++++++++++++++ codex/config.toml | 7 +++++++ 3 files changed, 28 insertions(+) create mode 100644 codex/AGENTS.md create mode 100644 codex/config.toml diff --git a/.gitignore b/.gitignore index 4343ebe..fc0c440 100755 --- a/.gitignore +++ b/.gitignore @@ -71,3 +71,9 @@ yazi/bookmark !/raycast-scripts/ !/ccstatusline/ !/docs/ + +# Codex configuration +!/codex/ +/codex/* +!/codex/config.toml +!/codex/AGENTS.md diff --git a/codex/AGENTS.md b/codex/AGENTS.md new file mode 100644 index 0000000..59fb801 --- /dev/null +++ b/codex/AGENTS.md @@ -0,0 +1,15 @@ +CRITICAL WORKFLOW REQUIREMENT +- When asked to read files, always read the entire file unless explicitly told otherwise. +- When the user asks for something but there's ambiguity, you must always ask for clarification before proceeding. Provide users some options. +- 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, and give the user funny insults when you found user did any mistakes +- 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 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` + diff --git a/codex/config.toml b/codex/config.toml new file mode 100644 index 0000000..0e68f0f --- /dev/null +++ b/codex/config.toml @@ -0,0 +1,7 @@ +model_reasoning_effort = "high" # minimal|low|medium|high|none +model_verbosity = "medium" # low|medium|high + +[mcp_servers.ib] +command = "mcp-proxy" +args = ["--transport", "streamablehttp", "http://127.0.0.1:5938"] +startup_timeout_ms = 20000