Repository navigation
Description
Area
Catalog / models
What are you trying to accomplish?
I want routed (non-native) models to come out of ocx sync with operator-chosen values for a
handful of catalog row fields, instead of inheriting whatever the current native template happens
to carry. Today the only way to change them is to hand-edit opencodex-catalog.json, and the next
sync discards the edit.
Concretely: keep Codex's per-row include_*_usage_instructions flags, tool-surface flags, and
verbosity flags on routed rows the way I set them, without re-editing the file after every sync.
What prevents this today?
A routed row is generated, not authored. deriveEntry deep-clones the first supported native row
of the source catalog as a template (src/codex/catalog/derive-entry.ts:125,
findSupportedNativeTemplate used at src/codex/convergence.ts:271), then
normalizeRoutedCatalogEntry (src/codex/catalog/parsing.ts:844) and ensureStrictCatalogFields
(src/codex/catalog/parsing.ts:589) reshape it. A discovered routed model is in the fresh set, so a
persisted row with the same slug is dropped and rebuilt (src/codex/catalog/build-entries.ts:747-757).
The one retention carve-out is the operator's ultrafast speed tier —
src/codex/catalog/parsing.ts:869 records why: "#3429's reporter added it by hand and watched a
regeneration delete it every time." The instruction, tool, and verbosity fields have no such
carve-out, so a hand edit lasts only until the next sync.
Hand edits to native rows do survive (native rows come from the pinned snapshot and the baseline
is retained). I want that behavior unchanged. The gap is routed rows.
There is no surface for these fields at all. The Dashboard references none of
include_skills_usage_instructions, include_apps_usage_instructions,
include_plugin_usage_instructions, supports_parallel_tool_calls, node_repl_disabled,
support_verbosity, default_verbosity, tool_mode, supports_search_tool, or
truncation_policy — a full-text search over gui/src returns zero hits for every one of them.
The provider-level config that does exist (parallelToolCalls, modelCapabilities,
modelContextTiers, pinnedReasoningEffort, modelPinnedReasoningEfforts, modelDisplayNames,
modelAliases, codexToolMode) covers other fields and is applied from provider metadata, not as a
routed-row default.
Effect today, measured: with the global skills.include_instructions and
include_apps_instructions both true, a routed model still renders no ### How to use skills
section and no apps block, because its row flags are false. Forcing the row flag to true adds the
usage section (29,738 B → 32,310 B in the probes); the config keys alone cannot.
What should OpenCodex do?
Add a configuration surface — a Dashboard section plus a config block — that holds default values
for routed catalog rows, applied when a routed row is generated.
- New global block in
$OPENCODEX_HOME/config.json, e.g.routedDefaults, mapping a field name to
a value. Applied in the routed branch ofderiveEntryafter the template clone and
normalizeRoutedCatalogEntry, so it wins over the template and over
ensureStrictCatalogFields' default, and so it is durable by construction (it lives in config,
not in the generated file). - A GUI page or panel listing the fields with an explicit "inherit template" option per field, so
leaving a field unset keeps today's behavior. Theultrafastcarve-out and the native-row
retention path stay as they are. - Precedence, highest first: provider-level metadata (
modelCapabilities,codexToolMode,
parallelToolCalls, context tiers) →routedDefaults→ template value →
ensureStrictCatalogFieldsdefault. A provider that already controls a field keeps controlling it;
the new surface fills the fields nothing reaches.
Field map
The catalog row has no strict JSON schema: RawEntry is Record<string, unknown>
(src/codex/catalog/parsing.ts:180), its effective contract is ensureStrictCatalogFields plus the
pinned snapshot (src/codex/data/upstream-models.json) plus what codex-rs reads. The live catalog
exposes 52 distinct fields across its 58 rows. Grouped by how a routed row gets its value:
Good candidates — nothing sets them today, pure defaults
| Field | Routed row today | Notes |
|---|---|---|
include_skills_usage_instructions |
template-inherited, no default | gates the ### How to use skills section |
include_apps_usage_instructions |
absent-default true |
gates <apps_instructions> |
include_plugin_usage_instructions |
absent-default false |
gates <plugins_instructions> |
support_verbosity |
absent-default true |
with default_verbosity this is the text.verbosity surface |
default_verbosity |
absent-default low |
only meaningful while support_verbosity is true |
supports_reasoning_summaries |
forced false |
|
default_reasoning_summary |
forced none |
|
node_repl_disabled |
forced false |
|
node_repl_auto_review_required |
forced false |
|
supports_search_tool |
forced true |
deferred tool discovery; see #1522 |
web_search_tool_type |
forced text_and_image |
stripped for Cursor rows |
apply_patch_tool_type |
absent-default freeform |
|
truncation_policy |
absent-default {mode:"tokens",limit:10000} |
Already provider-controlled — the new surface should not duplicate these
context_window / max_context_window / auto_compact_token_limit (modelContextTiers, provider
context caps), input_modalities (modelCapabilities), supported_reasoning_levels and
default_reasoning_level (reasoningEfforts, pinnedReasoningEffort), display_name
(modelDisplayNames), tool_mode (codexToolMode), supports_parallel_tool_calls
(parallelToolCalls), service_tiers / additional_speed_tiers
(supportsServiceTier + the ultrafast opt-in).
Not good candidates — identity or runtime facts
slug, description, display_name fallback, priority/visibility (picker order and operator
disable own these), base_instructions (neutralized on purpose), comp_hash,
opencodex_catalog_kind, opencodex_multi_agent_version_origin, multi_agent_version (forced by
the mode), availability_nux/upgrade (stripped from routed rows), use_responses_lite,
supports_websockets, supports_experimental_context (deleted for routed rows by design),
effective_context_window_percent, experimental_supported_tools,
supports_reasoning_effort_updates, supported_in_api, shell_type (forced unified_exec).
If the scope should stay minimal, the first four rows of the candidates table — the three
include_*_usage_instructions flags plus support_verbosity/default_verbosity — cover the
prompt-block complaints the original issue was about, and are the ones with no reachable surface at
all.
Example usage or interface
// ~/.opencodex/config.json
{
"routedDefaults": {
"include_skills_usage_instructions": true,
"include_apps_usage_instructions": true,
"include_plugin_usage_instructions": true,
"support_verbosity": true
}
}After ocx sync, every routed row carries those values and a routed request renders the skills
usage section and the apps block. A field left out of the block keeps today's behavior. A
Dashboard toggle per field, defaulting to "inherit template", is the intended GUI.
Alternatives or workarounds
Hand-editing opencodex-catalog.json works until the next sync, then the row is regenerated. A
config-side fix is the only durable option, because the file is a build artifact. Provider-level
config covers some neighboring fields but none of the prompt-block flags.
Additional context
The ultrafast carve-out (#3429) is the existing precedent for a config-driven routed-row value; the
auto_review_model root-pin stamping (issue #1225) is the precedent for a config value being applied
to catalog rows at sync rather than stored in the generated file. #6817 is the open instance of this
same retention gap for the ultrafast tier: an operator-supplied field that ocx sync removes.
Evidence lines: derive-entry.ts:125 (template clone), convergence.ts:271 (template selection),
parsing.ts:844 (normalizeRoutedCatalogEntry), parsing.ts:589,598-599
(ensureStrictCatalogFields), parsing.ts:869 (ultrafast carve-out), build-entries.ts:747-757
(fresh rows replace persisted ones), src/types/provider.ts:287-918 (existing provider-level
fields).
Checks
- I searched existing issues and documentation.
- This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
- I removed secrets and personal data.
Activity
Ingwannu commentedon Oct 10, 2026
The durable-config direction is preferable to editing the generated catalog. Please keep the initial proposal separate from the already-carried Ultra Fast fix (#6819), and do not assume that all fields listed as candidates are interchangeable defaults.
In particular,
node_repl_auto_review_required, tool/search capabilities, reasoning-summary support and truncation policy affect execution or protocol contracts; some are deliberately normalized rather than merely missing a UI setting. An arbitrary raw-row overlay applied last could undo those invariants or provider-specific restrictions.For owner review, a small first slice covering the
include_*_usage_instructionsflags and verbosity settings is easier to evaluate. Specify unset versus explicit false, valid enum values, precedence with provider metadata, native-row non-interference, and repeated regeneration idempotence. Reuse the existing config validation and routed-row derivation path; test that operator defaults cannot override a concrete provider restriction. The Dashboard layout and which flags become public knobs still need the owner's product decision. This is triage of the proposal, not approval to implement the full field map or a request to hand-edit live catalogs.lidge-jun commentedon Oct 28, 2026
Design proposal from the maintainer triage lane. This is a proposal for owner review, not implementation approval. Baseline: fetched
origin/devatfdc6dd82d930295880dcf6d10bbb9f2c61994574.Current state. @sechmachine727 documented the regeneration problem, and @Ingwannu already established the scope and safety requirements in the earlier comment. The remaining question is which operator settings become supported product behavior. Today
src/codex/catalog/derive-entry.ts:127clones the template; lines 174–180 normalize routed rows before applying model metadata.src/codex/catalog/build-entries.ts:775excludes persisted rows with a fresh equivalent. Verbosity already has a concrete restriction:src/codex/catalog/effort.ts:188applies provider/model support, andsrc/codex/catalog/parsing.ts:564removes the default when support is false. The merged #6819 owns Ultra Fast retention separately.Options. One option exposes only the three instruction flags globally, leaving verbosity for a separate proposal. A second exposes those flags plus
support_verbosityanddefault_verbositythrough one typed global block. A third introduces provider-specific versions immediately, allowing different instruction behavior per destination but adding merge rules and more configuration surface.Recommendation. Prefer the second option, with config support reviewed before the Dashboard layout. The block name remains illustrative until the owner accepts it. Omission preserves existing derivation; explicit false remains false; verbosity accepts only
low,medium, orhigh. Apply defaults above inherited template values but below concrete provider/model declarations, retaining final normalization. Unsupported verbosity must emit no default. Reject unknown fields and malformed write candidates through the existing validation boundary. Capture the policy with catalog inputs rather than reading mutable global config during derivation.Risks and next slice. Instruction flags change prompt content and size; verbosity can misrepresent protocol support. This surface must confer no additional tool authorization or alter search, review, truncation, identity, or native capability contracts. Follow
structure/config.md:431for validation ownership andstructure/catalog.md:464for the existing tool-discovery contract. No implementation should start before @lidge-jun chooses the public field allowlist and accepts config-first delivery. After that decision, the smallest reviewable slice is validation plus ordinary routed-row projection in both writer paths, including no-template generation. Cover unset/false, provider restrictions, native non-interference, clearing defaults, repeated regeneration, and retained-row behavior before adding UI. Retained outage rows should remain unchanged until successfully regenerated. No tests or runtime probes were run for this design analysis.lidge-jun commentedon Nov 16, 2026
Owner decision (lidge-jun, 2026-11-16): expose the three instruction flags plus
verbosityas config-first routed-row defaults (provider limits always win). Dashboard UI later.fix(catalog): drop supportVerbosity from routedCatalogDefaults
feat(catalog): config-first routed catalog row defaults (lidge-jun#8797)