mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
Clarify docs folder guidance in AGENTS.md (#21772)
## Summary Codex keeps trying to add documentation to the `docs/` directory. With the exception of app server API documentation, the docs for Codex should not live in this repo. We don't want the local `docs/` folder to become a stale shadow of the official docs. This PR updates `AGENTS.md` to make that boundary explicit and scopes the existing API documentation guidance to app-server docs/examples. It also removes the extra `docs/config.md` sections that were recently added.
This commit is contained in:
@@ -5,45 +5,3 @@ For basic configuration instructions, see [this documentation](https://developer
|
||||
For advanced configuration instructions, see [this documentation](https://developers.openai.com/codex/config-advanced).
|
||||
|
||||
For a full configuration reference, see [this documentation](https://developers.openai.com/codex/config-reference).
|
||||
|
||||
## Commit attribution
|
||||
|
||||
Codex can add a [git trailer](https://git-scm.com/docs/git-interpret-trailers) to
|
||||
generated commit messages so commits make Codex's involvement explicit. This
|
||||
behavior is gated by the `codex_git_commit` feature flag; the top-level
|
||||
`commit_attribution` setting is only used when that feature is enabled.
|
||||
|
||||
Add the following to `~/.codex/config.toml`:
|
||||
|
||||
```toml
|
||||
commit_attribution = "Codex <noreply@openai.com>"
|
||||
|
||||
[features]
|
||||
codex_git_commit = true
|
||||
```
|
||||
|
||||
When enabled, Codex appends a `Co-authored-by:` trailer using the configured
|
||||
attribution value. If `commit_attribution` is omitted, Codex uses
|
||||
`Codex <noreply@openai.com>`. Set `commit_attribution = ""` to disable the
|
||||
trailer while leaving the feature flag enabled.
|
||||
|
||||
## OpenTelemetry Trace Metadata
|
||||
|
||||
Codex can add static OpenTelemetry span attributes to exported trace spans and
|
||||
static W3C tracestate fields to propagated trace context:
|
||||
|
||||
```toml
|
||||
[otel.span_attributes]
|
||||
"example.trace_attr" = "enabled"
|
||||
|
||||
[otel.tracestate.example]
|
||||
alpha = "one"
|
||||
beta = "two"
|
||||
```
|
||||
|
||||
Nested `otel.tracestate` tables are encoded as semicolon-separated `key:value`
|
||||
fields inside the named tracestate member. If propagated trace context already
|
||||
has the named member, Codex upserts configured fields and preserves other fields
|
||||
in that member. This config shape does not support setting opaque tracestate
|
||||
member values. Invalid trace metadata entries are ignored during config load and
|
||||
reported as startup warnings.
|
||||
|
||||
Reference in New Issue
Block a user