From b65af63e7e3cb0efcccf242ed04d3e8f49230ebc Mon Sep 17 00:00:00 2001 From: Julian lechner Date: Fri, 11 Sep 2026 14:43:07 +0200 Subject: [PATCH] feat(adapters): add Codex and Claude client settings --- adapters/claude/README.md | 3 +++ adapters/claude/config/settings.json | 34 ++++++++++++++++++++++++++++ adapters/claude/templates/agent.md | 6 +++++ adapters/codex/README.md | 3 +++ adapters/codex/config/config.toml | 20 ++++++++++++++++ adapters/codex/templates/agent.toml | 3 +++ adapters/plugins.tsv | 5 ++++ 7 files changed, 74 insertions(+) create mode 100644 adapters/claude/README.md create mode 100644 adapters/claude/config/settings.json create mode 100644 adapters/claude/templates/agent.md create mode 100644 adapters/codex/README.md create mode 100644 adapters/codex/config/config.toml create mode 100644 adapters/codex/templates/agent.toml create mode 100644 adapters/plugins.tsv diff --git a/adapters/claude/README.md b/adapters/claude/README.md new file mode 100644 index 0000000..5edac43 --- /dev/null +++ b/adapters/claude/README.md @@ -0,0 +1,3 @@ +# Claude Code adapter + +Claude Code uses global `CLAUDE.md`, `settings.json`, skills, and agents under the user profile. This adapter supplies client metadata; semantic content remains in `shared/`. diff --git a/adapters/claude/config/settings.json b/adapters/claude/config/settings.json new file mode 100644 index 0000000..4aa0a16 --- /dev/null +++ b/adapters/claude/config/settings.json @@ -0,0 +1,34 @@ +{ + "permissions": { + "defaultMode": "auto", + "allow": [ + "Agent" + ], + "deny": [ + "Bash(git reset --hard*)", + "Bash(git clean*)", + "Bash(rm -rf*)", + "Bash(Remove-Item -Recurse*)" + ] + }, + "env": { + "CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY": "5" + }, + "statusLine": { + "type": "command", + "command": "__STATUSLINE_COMMAND__ \"__AI_CONFIG_ROOT__/statusline/__STATUSLINE_SCRIPT__\"" + }, + "hooks": { + "Stop": [ + { + "hooks": [ + { + "type": "command", + "command": "__HOOK_COMMAND__ \"__AI_CONFIG_ROOT__/hooks/__HOOK_SCRIPT__\"", + "timeout": 20 + } + ] + } + ] + } +} diff --git a/adapters/claude/templates/agent.md b/adapters/claude/templates/agent.md new file mode 100644 index 0000000..63a4875 --- /dev/null +++ b/adapters/claude/templates/agent.md @@ -0,0 +1,6 @@ +--- +name: {{name}} +description: {{description}} +--- + +{{instructions}} diff --git a/adapters/codex/README.md b/adapters/codex/README.md new file mode 100644 index 0000000..a1a7684 --- /dev/null +++ b/adapters/codex/README.md @@ -0,0 +1,3 @@ +# Codex adapter + +Codex uses global `AGENTS.md`, `config.toml`, skills, and agent configuration under the user profile. This adapter supplies client metadata; semantic content remains in `shared/`. diff --git a/adapters/codex/config/config.toml b/adapters/codex/config/config.toml new file mode 100644 index 0000000..f0e51d5 --- /dev/null +++ b/adapters/codex/config/config.toml @@ -0,0 +1,20 @@ +approval_policy = "on-request" +approvals_reviewer = "auto_review" +sandbox_mode = "workspace-write" + +[tui] +status_line = ["model", "reasoning", "project-name", "git-branch", "context-window-size", "context-used", "used-tokens"] + +[agents] +enabled = true +max_threads = 5 + +[features] +hooks = true + +[[hooks.Stop]] +[[hooks.Stop.hooks]] +type = "command" +command = '__HOOK_COMMAND__ "__AI_CONFIG_ROOT__/hooks/__HOOK_SCRIPT__"' +command_windows = '__WINDOWS_HOOK_COMMAND__ "__AI_CONFIG_ROOT__/hooks/__WINDOWS_HOOK_SCRIPT__"' +timeout = 20 diff --git a/adapters/codex/templates/agent.toml b/adapters/codex/templates/agent.toml new file mode 100644 index 0000000..48a0f7b --- /dev/null +++ b/adapters/codex/templates/agent.toml @@ -0,0 +1,3 @@ +name = "{{name}}" +description = "{{description}}" +instructions = "{{instructions}}" diff --git a/adapters/plugins.tsv b/adapters/plugins.tsv new file mode 100644 index 0000000..6003c55 --- /dev/null +++ b/adapters/plugins.tsv @@ -0,0 +1,5 @@ +name claude_marketplace claude_plugin codex_marketplace codex_plugin +Ponytail DietrichGebert/ponytail ponytail@ponytail DietrichGebert/ponytail ponytail@ponytail +i-have-adhd ayghri/i-have-adhd i-have-adhd@i-have-adhd ayghri/i-have-adhd i-have-adhd@i-have-adhd +Superpowers - superpowers@claude-plugins-official openai-curated-remote superpowers@openai-curated-remote +Context7 upstash/context7 context7@context7-marketplace upstash/context7 context7@context7-marketplace