Agent configuration research notes
This note captures how the main agent CLIs used by oooconf structure configuration for:
- instruction files (
AGENTS.md/CLAUDE.md), - MCP server wiring,
- skills/extensions.
OpenAI Codex CLI#
Top 3 config settings to care about first:
model/ provider defaults in~/.codex/config.toml.mcp_servers.<name>blocks (stdiocommand/args/env, or remotetype/urlwithhttp_headers).- Instruction file discovery via repo/global
AGENTS.md.
Why this matters for oooconf:
oooconf agents syncappends TOMLmcp_serversentries for Codex (global configs are the default target).- Global instruction sync should continue to target
~/.codex/AGENTS.mdwhen present.
Claude Code#
Top 3 config settings to care about first:
- Settings precedence (
~/.claude/settings.json-> project -> local override). - MCP server maps (
~/.claude.json/.mcp.json) and scope precedence. - Instruction files (
~/.claude/CLAUDE.md,CLAUDE.md,.claude/CLAUDE.md).
Why this matters for oooconf:
- The repo keeps
AGENTS.mdas cross-agent policy source and mirrors policy text into global instruction files where applicable. - Claude MCP sync remains JSON-based and additive.
Antigravity (App / CLI / IDE)#
Top 3 config settings to care about first:
- Global rules are loaded cumulatively from
~/.gemini/AGENTS.md,~/.gemini/GEMINI.md, and modular~/.gemini/config/rules/*.md(which require YAML frontmatter withtrigger: always_on | model_decision | glob | manual). - Global MCP servers live in
~/.gemini/config/mcp_config.jsonundermcpServers(command/args/envfor stdio,serverUrl/headersfor Streamable HTTP — notypeorhttpUrl). - Personal skills live in
~/.gemini/config/skills/<name>/SKILL.md(andskillsCLI targets-a antigravity).
Why this matters for oooconf:
- Because Antigravity cumulatively loads
~/.gemini/AGENTS.mdalongside~/.gemini/config/rules/*.md, keeping the shared policy in~/.gemini/AGENTS.mdand syncingextras/antigravity.mdas anextra_onlymodular rule in~/.gemini/config/rules/antigravity.md(withtrigger: always_onfrontmatter) avoids duplicating the ~300-line shared block while keeping Antigravity-only rules separate. agyis detected viaagent_clis, but installs and self-updates via Google's native installer (agy update), not npm/uvagent_updates.
OpenCode#
Top 3 config settings to care about first:
- Global config file at
~/.config/opencode/opencode.json(or projectopencode.jsonoverride). - Top-level
mcpobject keyed by server name (notmcpServers), each withtype(localorremote), pluscommand/environmentfor stdio orurl/headersfor remote HTTP. - Tool gating via
tools(global/per-agent enable/disable patterns).
Why this matters for oooconf:
- OpenCode MCP sync must write to
mcp.<server>with OpenCode's schema shape. - For local MCP servers, generated entries should be
{\"type\":\"local\",\"command\":[...],\"environment\":{...}}. - For remote HTTP servers, generated entries should be
{\"type\":\"remote\",\"url\":\"https://...\",\"headers\":{...},\"enabled\":true}.
Strengthening decisions applied in this repo#
- Added
oooconf agents skills viewto expose a shared marketplace/catalog listing throughpnpm dlx skills ls -g. - Kept
oooconf agents skills syncas declarative install fromskill_specsfor reproducibility. - Fixed OpenCode global sync to use
mcpobject format instead of genericmcpServers. - Added MCP add workflow safeguards (
--multi,--preview, validation, command normalization) before writing shared data. - Extended generated completions/spec so new agent subcommands/options are discoverable in shell completion.
- Added remote MCP support (
type/url/headers) tocommon-data.jsonentries and per-agent rendering: Codexhttp_headerstables, OpenCodetype: "remote", AntigravityserverUrl, Piurlwith${VAR}interpolation, Claude/Oh My Pitype+url. - Moved the graphify skill out of the OMP-only tree into the shared
~/.agents/skillsregistry (the skills CLI / Agent Skills location read by OMP, Claude Code, Codex, and Pi) and added Worktrunk as a managed skill installed viapnpm dlx skills add -g(installer: "skills"specs). - Removed Gemini CLI support: the CLI is deprecated upstream, and the declarative
agentskill-spec installer existed only to rungemini skills install, soskill_specsnow requireinstaller: "skills"orinstaller: "local"andoooconf agents skills addwrites skills-CLI specs.
Reference docs (official)#
- OpenAI Codex docs: https://developers.openai.com/codex/
- Claude Code configuration docs: https://code.claude.com/docs/en/configuration
- Claude directory layout: https://code.claude.com/docs/en/claude-directory
- Antigravity rules docs: https://antigravity.google/docs/rules
- Antigravity MCP docs: https://antigravity.google/docs/mcp
- Antigravity customization discovery docs: https://antigravity.google/docs/customization-discovery
- OpenCode provider docs: https://opencode.ai/docs/providers
- MiniMax coding tools guide: https://platform.minimax.io/docs/guides/text-ai-coding-tools
MiniMax-M2.7 provider backend notes (May 2026)#
MiniMax documents MiniMax-M2.7 integrations for multiple coding agents. The managed oooconf agents provider sync minimax command covers the agent CLIs currently configured in this repo that support file-based or CLI-provider MiniMax setup:
- Claude Code: writes
envoverrides in~/.claude/settings.json, includingANTHROPIC_BASE_URLand the MiniMax model aliases expected by Claude Code. Claude Code expectsANTHROPIC_AUTH_TOKENitself to contain the bearer token, so the default mode does not write a literal{MINIMAX_API_KEY}placeholder; exportANTHROPIC_AUTH_TOKEN=$MINIMAX_API_KEYlocally or only use--materialize-secretson private machine config. - OpenCode: writes a
minimaxprovider and selectsminimax/MiniMax-M2.7in~/.config/opencode/opencode.json. OpenCode's own docs also support storing credentials viaopencode auth login --provider minimax, sooooconfdoes not write the key unless--materialize-secretsis requested. - OpenAI Codex CLI: appends
[model_providers.minimax]and[profiles.minimax]to~/.codex/config.toml, loading credentials fromMINIMAX_API_KEY. The MiniMax guide marks Codex as not recommended and suggestscodex --profile minimaxfor this backend.
Other tools listed by MiniMax (Cursor, TRAE, Kilo Code, Cline, Roo Code, Droid, Zed, Grok CLI, Hermes Agent, OpenClaw) are GUI-first, outside the current tracked CLI list, or do not have a stable dotfile target in this repo yet. Add them later only with documented, secret-safe config paths.