Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .codex/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Keep this project layer free of integrations and credentials. Codex loads it
# only after the checkout is trusted. Developer integrations live in the
# user-level template beside this file; product summary agents enforce their
# no-tool profile in scripts/coding-agents.mjs.
23 changes: 23 additions & 0 deletions .codex/developer.config.toml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copy to $CODEX_HOME/developer.config.toml, then use: codex --profile developer
# This file names optional integrations only. It contains no credentials.

approval_policy = "on-request"
sandbox_mode = "workspace-write"

[sandbox_workspace_write]
network_access = false

[mcp_servers.openaiDeveloperDocs]
url = "https://developers.openai.com/mcp"
enabled_tools = ["search_openai_docs", "fetch_openai_doc"]
default_tools_approval_mode = "auto"
required = false

[plugins."github@openai-curated-remote"]
enabled = true

[apps.github]
enabled = true
default_tools_approval_mode = "prompt"
destructive_enabled = false
open_world_enabled = false
Comment thread
itsjling marked this conversation as resolved.
11 changes: 11 additions & 0 deletions .codex/summary.config.toml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Reference settings for Diffsplain's no-tool summary command.
# Do not use this profile alone: Codex profiles merge user integrations.
# The product command also ignores user config and replaces both integration
# maps with empty runtime overrides.

approval_policy = "never"
sandbox_mode = "read-only"
web_search = "disabled"

[shell_environment_policy]
inherit = "none"
32 changes: 32 additions & 0 deletions docs/content/development.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,38 @@ The `Automation trust review` check reads the pull request through the GitHub
API without checking out branch code. It passes after a maintainer adds the
`automation-reviewed` label.

## Codex tool profiles

Diffsplain keeps developer integrations separate from product summary agents.
The checked-in `.codex/config.toml` has no secrets or enabled integrations.
After you trust the checkout, copy the developer template to your Codex home:

```sh
cp .codex/developer.config.toml.example "$CODEX_HOME/developer.config.toml"
```

Use `codex --profile developer` for optional OpenAI developer docs MCP access
and the GitHub plugin. Docs tools can run without a prompt; GitHub tools ask
first.

Do not use a named profile alone as a no-tool boundary. Profiles merge MCP
servers and plugins from the base user config. For a manual no-tool Codex run,
replace those maps at runtime and skip user config:

```sh
codex exec --ephemeral --ignore-user-config --ignore-rules \
--sandbox read-only \
--config 'mcp_servers={}' \
--config 'plugins={}' \
--config 'web_search="disabled"'
```

`diffsplain` enforces the summary boundary for product notes even when a
developer profile is active. It runs agents in the temporary snapshot folder,
with a read-only sandbox, no user config or rules, no MCP or plugins, no web
search, and a small runtime-only environment. Authentication remains available
to the client itself, but the agent receives no credential variables.

## Publish a release

Commit all release changes, then pass a version and any extra `npm version`
Expand Down
Loading
Loading