mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
feat(codex): add codex config.toml
This commit is contained in:
parent
8014e2cc45
commit
96d4c82f3e
2 changed files with 68 additions and 0 deletions
34
.codex/config.toml
Normal file
34
.codex/config.toml
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
model = "gpt-5.4"
|
||||||
|
model_reasoning_effort = "xhigh"
|
||||||
|
personality = "pragmatic"
|
||||||
|
plan_mode_reasoning_effort = "xhigh"
|
||||||
|
|
||||||
|
approval_policy = "on-request"
|
||||||
|
sandbox_mode = "workspace-write"
|
||||||
|
web_search = "live"
|
||||||
|
|
||||||
|
notify = [
|
||||||
|
"terminal-notifier",
|
||||||
|
"-title", "Codex CLI",
|
||||||
|
"-message", "Task completed!",
|
||||||
|
"-sound", "default",
|
||||||
|
]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
multi_agent = true
|
||||||
|
prevent_idle_sleep = true
|
||||||
|
|
||||||
|
[agents]
|
||||||
|
max_threads = 6
|
||||||
|
max_depth = 1
|
||||||
|
|
||||||
|
[tui]
|
||||||
|
status_line = ["model-with-reasoning", "context-remaining", "current-dir", "git-branch", "five-hour-limit"]
|
||||||
|
|
||||||
|
[sandbox_workspace_write]
|
||||||
|
network_access = true
|
||||||
|
|
||||||
|
[mcp_servers.mcp-nixos]
|
||||||
|
command = "nix"
|
||||||
|
args = ["run", "github:utensils/mcp-nixos", "--"]
|
||||||
|
|
||||||
34
.codex/rules/default.rules
Normal file
34
.codex/rules/default.rules
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
prefix_rule(
|
||||||
|
pattern = ["just"],
|
||||||
|
decision = "allow",
|
||||||
|
justification = "Executing Justfile commands is allowed",
|
||||||
|
match = [
|
||||||
|
"just",
|
||||||
|
"just darwin",
|
||||||
|
"just darwin-debug",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
prefix_rule(
|
||||||
|
pattern = ["git"],
|
||||||
|
decision = "allow",
|
||||||
|
justification = "Git is allowed",
|
||||||
|
match = [
|
||||||
|
"git add .",
|
||||||
|
"git commit -m",
|
||||||
|
"git worktree",
|
||||||
|
"git status",
|
||||||
|
"git log",
|
||||||
|
"git branch",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
prefix_rule(
|
||||||
|
pattern = ["gh"],
|
||||||
|
decision = "allow",
|
||||||
|
justification = "Github CLI is allowed",
|
||||||
|
match = [
|
||||||
|
"gh pr",
|
||||||
|
"gh repo",
|
||||||
|
],
|
||||||
|
)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue