Purge remaining Codex skill residue
This commit is contained in:
parent
806b4ae6ac
commit
9d40972195
22 changed files with 43 additions and 303 deletions
|
|
@ -926,9 +926,18 @@ usage classification, stale skill cleanup, and AGENTS skill-append tests were
|
|||
deleted rather than preserved as compatibility incense. Verified with
|
||||
`cargo check -p codex-protocol -p codex-core`, focused core
|
||||
context/history/memory/session/file-watcher tests, and the model-visible layout
|
||||
snapshot suite. Remaining skill hits are app-server README/tests, TUI
|
||||
warnings/tooltips, agent-tool schema text, and memory consolidation/read-path
|
||||
templates.
|
||||
snapshot suite.
|
||||
|
||||
The app-server/TUI/template skill residue is cut as well. Memory consolidation
|
||||
and read-path templates no longer create or read `skills/`; app-server README,
|
||||
protocol v1 docs, warnings, and turn-start tests no longer advertise skill
|
||||
invocation; TUI tooltips/placeholders/comments and warning tests no longer
|
||||
mention `/skills` or skill context budgets; agent-tool schema text no longer
|
||||
lists `skill` as an input item; stale `UserInput::Skill` test arms are gone;
|
||||
and `Feature::SkillMcpDependencyInstall` / `Feature::SkillEnvVarDependencyPrompt`
|
||||
plus generated config schema entries were removed. A vendored-wide search for
|
||||
product-shaped skill markers now returns nothing; only the ordinary English word
|
||||
"skill" remains in personality copy.
|
||||
|
||||
That husk has now been cut from `codex-core`. The root core crate no longer
|
||||
exports `plugins`, no longer depends on `codex-core-plugins` or `codex-plugin`,
|
||||
|
|
|
|||
Binary file not shown.
File diff suppressed because one or more lines are too long
23
vendor/codex/codex-rs/app-server/README.md
vendored
23
vendor/codex/codex-rs/app-server/README.md
vendored
|
|
@ -12,7 +12,6 @@
|
|||
- [API Overview](#api-overview)
|
||||
- [Events](#events)
|
||||
- [Approvals](#approvals)
|
||||
- [Skills](#skills)
|
||||
- [Auth endpoints](#auth-endpoints)
|
||||
- [Experimental API Opt-in](#experimental-api-opt-in)
|
||||
|
||||
|
|
@ -575,26 +574,6 @@ You can optionally specify config overrides on the new turn. If specified, these
|
|||
} } }
|
||||
```
|
||||
|
||||
### Example: Start a turn (invoke a skill)
|
||||
|
||||
Invoke a skill explicitly by including `$<skill-name>` in the text input and adding a `skill` input item alongside it.
|
||||
|
||||
```json
|
||||
{ "method": "turn/start", "id": 33, "params": {
|
||||
"threadId": "thr_123",
|
||||
"input": [
|
||||
{ "type": "text", "text": "$skill-creator Add a new skill for triaging flaky CI and include step-by-step usage." },
|
||||
{ "type": "skill", "name": "skill-creator", "path": "/Users/me/.codex/skills/skill-creator/SKILL.md" }
|
||||
]
|
||||
} }
|
||||
{ "id": 33, "result": { "turn": {
|
||||
"id": "turn_457",
|
||||
"status": "inProgress",
|
||||
"items": [],
|
||||
"error": null
|
||||
} } }
|
||||
```
|
||||
|
||||
### Example: Start a turn (invoke an MCP server)
|
||||
|
||||
Invoke an MCP server by including a linked mention in the text input and adding a `mention` input item with the server name in `mcp://<server-name>` form.
|
||||
|
|
@ -960,7 +939,7 @@ Thread realtime uses a separate thread-scoped notification surface. `thread/real
|
|||
|
||||
Recoverable configuration and initialization warnings use the existing `configWarning` notification: `{ summary, details?, path?, range? }`. App-server may emit it during initialization for config parsing and related setup diagnostics.
|
||||
|
||||
Generic runtime warnings use the `warning` notification: `{ threadId?, message }`. App-server emits this for non-fatal warnings from the core event stream, including cases where not all enabled skills are included in the model-visible skills list for a session.
|
||||
Generic runtime warnings use the `warning` notification: `{ threadId?, message }`. App-server emits this for non-fatal warnings from the core event stream.
|
||||
|
||||
### Notification opt-out
|
||||
|
||||
|
|
|
|||
2
vendor/codex/codex-rs/app-server/src/lib.rs
vendored
2
vendor/codex/codex-rs/app-server/src/lib.rs
vendored
|
|
@ -301,7 +301,7 @@ fn project_config_warning(config: &Config) -> Option<ConfigWarningNotification>
|
|||
|
||||
let mut message = concat!(
|
||||
"Project-local config, hooks, and exec policies are disabled in the following folders ",
|
||||
"until the project is trusted, but skills still load.\n",
|
||||
"until the project is trusted.\n",
|
||||
)
|
||||
.to_string();
|
||||
for (index, (folder, reason)) in disabled_folders.iter().enumerate() {
|
||||
|
|
|
|||
|
|
@ -779,7 +779,6 @@ fn turn_user_texts(turns: &[codex_app_server_protocol::Turn]) -> Vec<&str> {
|
|||
UserInput::Text { text, .. } => Some(text.as_str()),
|
||||
UserInput::Image { .. }
|
||||
| UserInput::LocalImage { .. }
|
||||
| UserInput::Skill { .. }
|
||||
| UserInput::Mention { .. } => None,
|
||||
},
|
||||
_ => None,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ use app_test_support::create_shell_command_sse_response;
|
|||
use app_test_support::format_with_current_shell_display;
|
||||
use app_test_support::to_response;
|
||||
use app_test_support::write_mock_responses_config_toml_with_chatgpt_base_url;
|
||||
use app_test_support::write_models_cache;
|
||||
use codex_app_server::INPUT_TOO_LARGE_ERROR_CODE;
|
||||
use codex_app_server::INVALID_PARAMS_ERROR_CODE;
|
||||
use codex_app_server_protocol::ByteRange;
|
||||
|
|
@ -52,7 +51,6 @@ use codex_app_server_protocol::TurnStartResponse;
|
|||
use codex_app_server_protocol::TurnStartedNotification;
|
||||
use codex_app_server_protocol::TurnStatus;
|
||||
use codex_app_server_protocol::UserInput as V2UserInput;
|
||||
use codex_app_server_protocol::WarningNotification;
|
||||
use codex_config::config_toml::ConfigToml;
|
||||
use codex_core::personality_migration::PERSONALITY_MIGRATION_FILENAME;
|
||||
use codex_features::FEATURES;
|
||||
|
|
@ -254,111 +252,6 @@ async fn turn_start_emits_user_message_item_with_text_elements() -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn turn_start_emits_thread_scoped_warning_notification_for_trimmed_skills() -> Result<()> {
|
||||
let responses = vec![create_final_assistant_message_sse_response("Done")?];
|
||||
let server = create_mock_responses_server_sequence_unchecked(responses).await;
|
||||
|
||||
let codex_home = TempDir::new()?;
|
||||
create_config_toml(
|
||||
codex_home.path(),
|
||||
&server.uri(),
|
||||
"never",
|
||||
&BTreeMap::from([(Feature::Personality, true)]),
|
||||
)?;
|
||||
write_models_cache(codex_home.path())?;
|
||||
let cache_path = codex_home.path().join("models_cache.json");
|
||||
let mut cache: serde_json::Value =
|
||||
serde_json::from_str(&std::fs::read_to_string(&cache_path)?)?;
|
||||
let models = cache["models"]
|
||||
.as_array_mut()
|
||||
.expect("models_cache.json models should be an array");
|
||||
let entry = models
|
||||
.first_mut()
|
||||
.expect("models cache should not be empty");
|
||||
let model = entry["slug"]
|
||||
.as_str()
|
||||
.expect("model slug should be present")
|
||||
.to_string();
|
||||
entry["context_window"] = serde_json::Value::from(100);
|
||||
std::fs::write(&cache_path, serde_json::to_string_pretty(&cache)?)?;
|
||||
let config_path = codex_home.path().join("config.toml");
|
||||
let config = std::fs::read_to_string(&config_path)?;
|
||||
std::fs::write(
|
||||
&config_path,
|
||||
config.replace("model = \"mock-model\"", &format!("model = \"{model}\"")),
|
||||
)?;
|
||||
write_test_skill(codex_home.path(), "alpha-skill")?;
|
||||
write_test_skill(codex_home.path(), "beta-skill")?;
|
||||
|
||||
let mut mcp = McpProcess::new(codex_home.path()).await?;
|
||||
timeout(DEFAULT_READ_TIMEOUT, mcp.initialize()).await??;
|
||||
|
||||
let thread_req = mcp
|
||||
.send_thread_start_request(ThreadStartParams::default())
|
||||
.await?;
|
||||
let thread_resp: JSONRPCResponse = timeout(
|
||||
DEFAULT_READ_TIMEOUT,
|
||||
mcp.read_stream_until_response_message(RequestId::Integer(thread_req)),
|
||||
)
|
||||
.await??;
|
||||
let ThreadStartResponse { thread, .. } = to_response::<ThreadStartResponse>(thread_resp)?;
|
||||
|
||||
let turn_req = mcp
|
||||
.send_turn_start_request(TurnStartParams {
|
||||
thread_id: thread.id.clone(),
|
||||
input: vec![V2UserInput::Text {
|
||||
text: "Hello".to_string(),
|
||||
text_elements: Vec::new(),
|
||||
}],
|
||||
..Default::default()
|
||||
})
|
||||
.await?;
|
||||
timeout(
|
||||
DEFAULT_READ_TIMEOUT,
|
||||
mcp.read_stream_until_response_message(RequestId::Integer(turn_req)),
|
||||
)
|
||||
.await??;
|
||||
|
||||
let notification = timeout(
|
||||
DEFAULT_READ_TIMEOUT,
|
||||
mcp.read_stream_until_notification_message("warning"),
|
||||
)
|
||||
.await??;
|
||||
let params = notification.params.expect("warning params");
|
||||
let warning: WarningNotification =
|
||||
serde_json::from_value(params).expect("deserialize warning notification");
|
||||
assert_eq!(warning.thread_id.as_deref(), Some(thread.id.as_str()));
|
||||
assert_eq!(
|
||||
warning.message,
|
||||
"Warning: Exceeded skills context budget of 2%. All skill descriptions were removed and 7 additional skills were not included in the model-visible skills list."
|
||||
);
|
||||
|
||||
timeout(
|
||||
DEFAULT_READ_TIMEOUT,
|
||||
mcp.read_stream_until_notification_message("turn/completed"),
|
||||
)
|
||||
.await??;
|
||||
|
||||
let requests = server
|
||||
.received_requests()
|
||||
.await
|
||||
.expect("failed to fetch received requests");
|
||||
let request = requests
|
||||
.last()
|
||||
.expect("expected at least one model request");
|
||||
assert!(
|
||||
body_contains(request, "## Skills"),
|
||||
"expected outgoing request to include the skills section"
|
||||
);
|
||||
assert!(
|
||||
!body_contains(request, "- alpha-skill:") && !body_contains(request, "- beta-skill:"),
|
||||
"expected trimmed skills to be omitted from the outgoing request body"
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn thread_start_omits_empty_instruction_overrides_from_model_request() -> Result<()> {
|
||||
let server = responses::start_mock_server().await;
|
||||
|
|
@ -3339,12 +3232,3 @@ stream_max_retries = 0
|
|||
),
|
||||
)
|
||||
}
|
||||
|
||||
fn write_test_skill(codex_home: &Path, name: &str) -> std::io::Result<()> {
|
||||
let skill_dir = codex_home.join("skills").join(name);
|
||||
std::fs::create_dir_all(&skill_dir)?;
|
||||
std::fs::write(
|
||||
skill_dir.join("SKILL.md"),
|
||||
format!("---\nname: {name}\ndescription: {name} description\n---\n\n# Body\n"),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
12
vendor/codex/codex-rs/core/config.schema.json
vendored
12
vendor/codex/codex-rs/core/config.schema.json
vendored
|
|
@ -359,12 +359,6 @@
|
|||
"shell_zsh_fork": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"skill_env_var_dependency_prompt": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"skill_mcp_dependency_install": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"sqlite": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
|
@ -2211,12 +2205,6 @@
|
|||
"shell_zsh_fork": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"skill_env_var_dependency_prompt": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"skill_mcp_dependency_install": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"sqlite": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -27,8 +27,6 @@ Folder structure (under {{ memory_root }}/):
|
|||
pointers to rollout summaries if certain past rollouts are very relevant.
|
||||
- raw_memories.md
|
||||
- Temporary file: merged raw memories from Phase 1. Input for Phase 2.
|
||||
- skills/<skill-name>/
|
||||
- Reusable procedures. Entrypoint: SKILL.md; may include scripts/, templates/, examples/.
|
||||
- rollout_summaries/<rollout_slug>.md
|
||||
- Recap of the rollout, including lessons learned, reusable knowledge,
|
||||
pointers/references, and pruned raw evidence snippets. Distilled version of
|
||||
|
|
@ -133,13 +131,11 @@ Under `{{ memory_root }}/`:
|
|||
- `rollout_summaries/*.md`
|
||||
- `memory_summary.md`
|
||||
- read the existing summary so updates stay consistent
|
||||
- `skills/*`
|
||||
- read existing skills so updates are incremental and non-duplicative
|
||||
{{ memory_extensions_primary_inputs }}
|
||||
Mode selection:
|
||||
|
||||
- INIT phase: existing artifacts are missing/empty (especially `memory_summary.md`
|
||||
and `skills/`).
|
||||
and `MEMORY.md`).
|
||||
- INCREMENTAL UPDATE: existing artifacts already exist and `raw_memories.md`
|
||||
mostly contains new additions.
|
||||
|
||||
|
|
@ -170,8 +166,7 @@ Incremental update and forgetting mechanism:
|
|||
Outputs:
|
||||
Under `{{ memory_root }}/`:
|
||||
A) `MEMORY.md`
|
||||
B) `skills/*` (optional)
|
||||
C) `memory_summary.md`
|
||||
B) `memory_summary.md`
|
||||
|
||||
Rules:
|
||||
|
||||
|
|
@ -317,9 +312,6 @@ Schema rules (strict):
|
|||
`## Failures and how to do differently`.
|
||||
- Do not hide high-value failure shields or reusable procedures inside generic summaries.
|
||||
Preserve them in their dedicated block-level subsections.
|
||||
- If you reference skills, do it in body bullets only (for example:
|
||||
`- Related skill: skills/<skill-name>/SKILL.md`).
|
||||
- Use lowercase, hyphenated skill folder names.
|
||||
- E) Ordering and conflict handling
|
||||
- Order top-level `# Task Group` blocks by expected future utility, with recency as a
|
||||
strong default proxy (usually the freshest meaningful `updated_at` represented in that
|
||||
|
|
@ -534,8 +526,8 @@ For example, include (when known):
|
|||
often has to ask for repeatedly or avoid the kinds of overreach that trigger interruption.
|
||||
## What's in Memory
|
||||
|
||||
This is a compact index to help future agents quickly find details in `MEMORY.md`,
|
||||
`skills/`, and `rollout_summaries/`.
|
||||
This is a compact index to help future agents quickly find details in `MEMORY.md`
|
||||
and `rollout_summaries/`.
|
||||
Treat it as a routing/index layer, not a mini-handbook:
|
||||
|
||||
- tell future agents what to search first,
|
||||
|
|
@ -631,7 +623,7 @@ Notes:
|
|||
- Do not include large snippets; push details into MEMORY.md and rollout summaries.
|
||||
- Prefer topics/keywords that help a future agent search MEMORY.md efficiently.
|
||||
- Prefer clear topic taxonomy over verbose drill-down pointers.
|
||||
- This section is primarily an index to `MEMORY.md`; mention `skills/` / `rollout_summaries/`
|
||||
- This section is primarily an index to `MEMORY.md`; mention `rollout_summaries/`
|
||||
only when they materially improve routing.
|
||||
- Separation rule: recent-topic `learnings` should emphasize topic-local recent deltas,
|
||||
caveats, and decision triggers; move cross-task, stable, broadly reusable user defaults to
|
||||
|
|
@ -648,78 +640,6 @@ Notes:
|
|||
- `desc:` lines when a raw-memory `description:` already says it well
|
||||
- `learnings:` lines when there is a concise original phrase worth preserving
|
||||
|
||||
# ============================================================ 3) `skills/` FORMAT (optional)
|
||||
|
||||
A skill is a reusable "slash-command" package: a directory containing a SKILL.md
|
||||
entrypoint (YAML frontmatter + instructions), plus optional supporting files.
|
||||
|
||||
Where skills live (in this memory folder):
|
||||
skills/<skill-name>/
|
||||
SKILL.md # required entrypoint
|
||||
scripts/<tool>.\* # optional; executed, not loaded (prefer stdlib-only)
|
||||
templates/<tpl>.md # optional; filled in by the model
|
||||
examples/<example>.md # optional; expected output format / worked example
|
||||
|
||||
What to turn into a skill (high priority):
|
||||
|
||||
- recurring tool/workflow sequences
|
||||
- recurring failure shields with a proven fix + verification
|
||||
- recurring formatting/contracts that must be followed exactly
|
||||
- recurring "efficient first steps" that reliably reduce search/tool calls
|
||||
- Create a skill when the procedure repeats (more than once) and clearly saves time or
|
||||
reduces errors for future agents.
|
||||
- It does not need to be broadly general; it just needs to be reusable and valuable.
|
||||
|
||||
Skill quality rules (strict):
|
||||
|
||||
- Merge duplicates aggressively; prefer improving an existing skill.
|
||||
- Keep scopes distinct; avoid overlapping "do-everything" skills.
|
||||
- A skill must be actionable: triggers + inputs + procedure + verification + efficiency plan.
|
||||
- Do not create a skill for one-off trivia or generic advice.
|
||||
- If you cannot write a reliable procedure (too many unknowns), do not create a skill.
|
||||
|
||||
SKILL.md frontmatter (YAML between --- markers):
|
||||
|
||||
- name: <skill-name> (lowercase letters, numbers, hyphens only; <= 64 chars)
|
||||
- description: 1-2 lines; include concrete triggers/cues in user-like language
|
||||
- argument-hint: optional; e.g. "[branch]" or "[path] [mode]"
|
||||
- disable-model-invocation: true for workflows with side effects (push/deploy/delete/etc.)
|
||||
- user-invocable: false for background/reference-only skills
|
||||
- allowed-tools: optional; list what the skill needs (e.g., Read, Grep, Glob, Bash)
|
||||
- context / agent / model: optional; use only when truly needed (e.g., context: fork)
|
||||
|
||||
SKILL.md content expectations:
|
||||
|
||||
- Use $ARGUMENTS, $ARGUMENTS[N], or $N (e.g., $0, $1) for user-provided arguments.
|
||||
- Distinguish two content types:
|
||||
- Reference: conventions/context to apply inline (keep very short).
|
||||
- Task: step-by-step procedure (preferred for this memory system).
|
||||
- Keep SKILL.md focused. Put long reference docs, large examples, or complex code in supporting files.
|
||||
- Keep SKILL.md under 500 lines; move detailed reference content to supporting files.
|
||||
- Always include:
|
||||
- When to use (triggers + non-goals)
|
||||
- Inputs / context to gather (what to check first)
|
||||
- Procedure (numbered steps; include commands/paths when known)
|
||||
- Efficiency plan (how to reduce tool calls/tokens; what to cache; stop rules)
|
||||
- Pitfalls and fixes (symptom -> likely cause -> fix)
|
||||
- Verification checklist (concrete success checks)
|
||||
|
||||
Supporting scripts (optional but highly recommended):
|
||||
|
||||
- Put helper scripts in scripts/ and reference them from SKILL.md (e.g.,
|
||||
collect_context.py, verify.sh, extract_errors.py).
|
||||
- Prefer Python (stdlib only) or small shell scripts.
|
||||
- Make scripts safe by default:
|
||||
- avoid destructive actions, or require explicit confirmation flags
|
||||
- do not print secrets
|
||||
- deterministic outputs when possible
|
||||
- Include a minimal usage example in SKILL.md.
|
||||
|
||||
Supporting files (use sparingly; only when they add value):
|
||||
|
||||
- templates/: a fill-in skeleton for the skill's output (plans, reports, checklists).
|
||||
- examples/: one or two small, high-quality example outputs showing the expected format.
|
||||
|
||||
============================================================
|
||||
WORKFLOW
|
||||
============================================================
|
||||
|
|
@ -734,7 +654,6 @@ WORKFLOW
|
|||
influence clustering decisions (not just the newest chunk).
|
||||
- Build Phase 2 artifacts from scratch:
|
||||
- produce/refresh `MEMORY.md`
|
||||
- create initial `skills/*` (optional but highly recommended)
|
||||
- write `memory_summary.md` last (highest-signal file)
|
||||
- Use your best efforts to get the most high-quality memory files
|
||||
- Do not be lazy at browsing files in INIT mode; deep-dive high-value rollouts and
|
||||
|
|
@ -767,7 +686,6 @@ WORKFLOW
|
|||
- doing light clustering and merging if needed
|
||||
- refreshing `MEMORY.md` top-of-file ordering so recent high-utility task families stay easy to find
|
||||
- rebuilding the `memory_summary.md` recent active window (last 3 memory days) from current `updated_at` coverage
|
||||
- updating existing skills or adding new skills only when there is clear new reusable procedure
|
||||
- updating `memory_summary.md` last to reflect the final state of the memory folder
|
||||
- Minimize churn in incremental mode: if an existing `MEMORY.md` block or `## What's in Memory`
|
||||
topic still reflects the current evidence and points to the same task family / retrieval
|
||||
|
|
@ -799,23 +717,19 @@ WORKFLOW
|
|||
- For user-profile or preference claims, recurrence matters: repeated evidence across
|
||||
rollouts should generally outrank a single polished but isolated summary.
|
||||
|
||||
5. For both modes, update `MEMORY.md` after skill updates:
|
||||
- add clear related-skill pointers as plain bullets in the BODY of corresponding task
|
||||
sections (do not change the `# Task Group` / `scope:` block header format)
|
||||
|
||||
6. Housekeeping (optional):
|
||||
5. Housekeeping (optional):
|
||||
- remove clearly redundant/low-signal rollout summaries
|
||||
- if multiple summaries overlap for the same thread, keep the best one
|
||||
|
||||
7. Final pass:
|
||||
- remove duplication in memory_summary, skills/, and MEMORY.md
|
||||
6. Final pass:
|
||||
- remove duplication in memory_summary and MEMORY.md
|
||||
- remove stale or low-signal blocks that are less likely to be useful in the future
|
||||
- remove or rewrite blocks/task sections whose supporting rollout references point only to
|
||||
removed thread ids or missing rollout summary files
|
||||
- run a global rollout-reference audit on final `MEMORY.md` and fix accidental duplicate
|
||||
entries / redundant repetition, while preserving intentional multi-task or multi-block
|
||||
reuse when it adds distinct task-local value
|
||||
- ensure any referenced skills/summaries actually exist
|
||||
- ensure any referenced summaries actually exist
|
||||
- ensure MEMORY blocks and "What's in Memory" use a consistent task-oriented taxonomy
|
||||
- ensure recent important task families are easy to find (description + keywords + topic wording)
|
||||
- remove or downgrade memory that mainly preserves exploratory discussion, assistant-only
|
||||
|
|
|
|||
|
|
@ -22,11 +22,6 @@ Memory layout (general -> specific):
|
|||
|
||||
- {{ base_path }}/memory_summary.md (already provided below; do NOT open again)
|
||||
- {{ base_path }}/MEMORY.md (searchable registry; primary file to query)
|
||||
- {{ base_path }}/skills/<skill-name>/ (skill folder)
|
||||
- SKILL.md (entrypoint instructions)
|
||||
- scripts/ (optional helper scripts)
|
||||
- examples/ (optional example outputs)
|
||||
- templates/ (optional templates)
|
||||
- {{ base_path }}/rollout_summaries/ (per-rollout recaps + evidence snippets)
|
||||
- The paths of these entries can be found in {{ base_path }}/MEMORY.md or {{ base_path }}/rollout_summaries/ as `rollout_path`
|
||||
- These files are append-only `jsonl`: `session_meta.payload.id` identifies the session, `turn_context` marks turn boundaries, `event_msg` is the lightweight status stream, and `response_item` contains actual messages, tool calls, and tool outputs.
|
||||
|
|
@ -36,9 +31,8 @@ Quick memory pass (when applicable):
|
|||
|
||||
1. Skim the MEMORY_SUMMARY below and extract task-relevant keywords.
|
||||
2. Search {{ base_path }}/MEMORY.md using those keywords.
|
||||
3. Only if MEMORY.md directly points to rollout summaries/skills, open the 1-2
|
||||
most relevant files under {{ base_path }}/rollout_summaries/ or
|
||||
{{ base_path }}/skills/.
|
||||
3. Only if MEMORY.md directly points to rollout summaries, open the 1-2
|
||||
most relevant files under {{ base_path }}/rollout_summaries/.
|
||||
4. If above are not clear and you need exact commands, error text, or precise evidence, search over `rollout_path` for more evidence.
|
||||
5. If there are no relevant hits, stop memory lookup and continue normally.
|
||||
|
||||
|
|
@ -102,10 +96,10 @@ rollout_summaries/2026-02-17T21-23-02-LN3m-weekly_memory_report_pivot_from_git_h
|
|||
- one citation entry per line
|
||||
- format: `<file>:<line_start>-<line_end>|note=[<how memory was used>]`
|
||||
- use file paths relative to the memory base path (for example, `MEMORY.md`,
|
||||
`rollout_summaries/...`, `skills/...`)
|
||||
`rollout_summaries/...`)
|
||||
- only cite files actually used under the memory base path (do not cite
|
||||
workspace files as memory citations)
|
||||
- if you used `MEMORY.md` and then a rollout summary/skill file, cite both
|
||||
- if you used `MEMORY.md` and then a rollout summary file, cite both
|
||||
- list entries in order of importance (most important first)
|
||||
- `note` should be short, single-line, and use simple characters only (avoid
|
||||
unusual symbols, no newlines)
|
||||
|
|
|
|||
1
vendor/codex/codex-rs/docs/protocol_v1.md
vendored
1
vendor/codex/codex-rs/docs/protocol_v1.md
vendored
|
|
@ -92,7 +92,6 @@ Valid `personality` values are `friendly`, `pragmatic`, and `none`. When `none`
|
|||
|
||||
- `text` – Plain text plus optional UI text elements.
|
||||
- `image` / `local_image` – Image inputs.
|
||||
- `skill` – Explicit skill selection (`name`, `path` to `SKILL.md`).
|
||||
- `mention` – Explicit MCP server selection (`name`, `path` in `mcp://{server_name}` form).
|
||||
|
||||
Note: For v1 wire compatibility, `EventMsg::TurnStarted` and `EventMsg::TurnComplete` serialize as `task_started` / `task_complete`. The deserializer accepts both `task_*` and `turn_*` tags.
|
||||
|
|
|
|||
16
vendor/codex/codex-rs/features/src/lib.rs
vendored
16
vendor/codex/codex-rs/features/src/lib.rs
vendored
|
|
@ -160,10 +160,6 @@ pub enum Feature {
|
|||
ExternalMigration,
|
||||
/// Allow the model to invoke the built-in image generation tool.
|
||||
ImageGeneration,
|
||||
/// Allow prompting and installing missing MCP dependencies.
|
||||
SkillMcpDependencyInstall,
|
||||
/// Prompt for missing skill env var dependencies.
|
||||
SkillEnvVarDependencyPrompt,
|
||||
/// Steer feature flag - when enabled, Enter submits immediately instead of queuing.
|
||||
/// Kept for config backward compatibility; behavior is always steer-enabled.
|
||||
Steer,
|
||||
|
|
@ -843,18 +839,6 @@ pub const FEATURES: &[FeatureSpec] = &[
|
|||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::SkillMcpDependencyInstall,
|
||||
key: "skill_mcp_dependency_install",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::SkillEnvVarDependencyPrompt,
|
||||
key: "skill_env_var_dependency_prompt",
|
||||
stage: Stage::UnderDevelopment,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::Steer,
|
||||
key: "steer",
|
||||
|
|
|
|||
|
|
@ -476,7 +476,7 @@ fn create_collab_input_items_schema() -> JsonSchema {
|
|||
(
|
||||
"type".to_string(),
|
||||
JsonSchema::string(Some(
|
||||
"Input item type: text, image, local_image, skill, or mention.".to_string(),
|
||||
"Input item type: text, image, local_image, or mention.".to_string(),
|
||||
)),
|
||||
),
|
||||
(
|
||||
|
|
@ -490,13 +490,13 @@ fn create_collab_input_items_schema() -> JsonSchema {
|
|||
(
|
||||
"path".to_string(),
|
||||
JsonSchema::string(Some(
|
||||
"Path when type is local_image/skill, or structured mention target such as mcp://<server-name> when type is mention."
|
||||
"Path when type is local_image, or structured mention target such as mcp://<server-name> when type is mention."
|
||||
.to_string(),
|
||||
)),
|
||||
),
|
||||
(
|
||||
"name".to_string(),
|
||||
JsonSchema::string(Some("Display name when type is skill or mention.".to_string())),
|
||||
JsonSchema::string(Some("Display name when type is mention.".to_string())),
|
||||
),
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//! Background app-server requests launched by the TUI app.
|
||||
//!
|
||||
//! This module owns fire-and-forget fetch/write helpers for MCP inventory, skills, rate
|
||||
//! This module owns fire-and-forget fetch/write helpers for MCP inventory, rate
|
||||
//! limits, add-credit nudges, and feedback uploads. Results are routed back through `AppEvent` so
|
||||
//! the main event loop remains single-threaded.
|
||||
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ struct AttachedImage {
|
|||
/// specific behaviors by constructing a config with those flags set to `false`.
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub(crate) struct ChatComposerConfig {
|
||||
/// Whether command/file/skill popups are allowed to appear.
|
||||
/// Whether command/file popups are allowed to appear.
|
||||
pub(crate) popups_enabled: bool,
|
||||
/// Whether `/...` input is parsed and dispatched as slash commands.
|
||||
pub(crate) slash_commands_enabled: bool,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ pub(crate) struct HistoryEntry {
|
|||
pub(crate) local_image_paths: Vec<PathBuf>,
|
||||
/// Remote image URLs restored with this draft.
|
||||
pub(crate) remote_image_urls: Vec<String>,
|
||||
/// Mention bindings for tool/app/skill references inside `text`.
|
||||
/// Mention bindings for tool or MCP references inside `text`.
|
||||
pub(crate) mention_bindings: Vec<MentionBinding>,
|
||||
/// Placeholder-to-payload pairs used to restore large paste content.
|
||||
pub(crate) pending_pastes: Vec<(String, String)>,
|
||||
|
|
|
|||
|
|
@ -776,7 +776,7 @@ impl MultiSelectPickerBuilder {
|
|||
/// # Returns
|
||||
///
|
||||
/// * `Some((Some(indices), score))` - Matched on display name with highlight indices
|
||||
/// * `Some((None, score))` - Matched on skill name only (no highlights for display)
|
||||
/// * `Some((None, score))` - Matched on canonical name only (no highlights for display)
|
||||
/// * `None` - No match
|
||||
pub(crate) fn match_item(
|
||||
filter: &str,
|
||||
|
|
|
|||
2
vendor/codex/codex-rs/tui/src/chatwidget.rs
vendored
2
vendor/codex/codex-rs/tui/src/chatwidget.rs
vendored
|
|
@ -10777,7 +10777,7 @@ const PLACEHOLDERS: [&str; 8] = [
|
|||
"Write tests for @filename",
|
||||
"Improve documentation in @filename",
|
||||
"Run /review on my current changes",
|
||||
"Use /skills to list available skills",
|
||||
"Use /mcp to list configured MCP tools",
|
||||
];
|
||||
|
||||
const SIDE_PLACEHOLDERS: [&str; 3] = [
|
||||
|
|
|
|||
|
|
@ -81,11 +81,7 @@ pub(super) use codex_app_server_protocol::TurnStartedNotification;
|
|||
pub(super) use codex_app_server_protocol::TurnStatus as AppServerTurnStatus;
|
||||
pub(super) use codex_app_server_protocol::UserInput as AppServerUserInput;
|
||||
pub(super) use codex_app_server_protocol::WarningNotification;
|
||||
pub(super) use codex_config::AppRequirementToml;
|
||||
pub(super) use codex_config::AppsRequirementsToml;
|
||||
pub(super) use codex_config::ConfigLayerStack;
|
||||
pub(super) use codex_config::ConfigRequirements;
|
||||
pub(super) use codex_config::ConfigRequirementsToml;
|
||||
pub(super) use codex_config::RequirementSource;
|
||||
pub(super) use codex_config::types::ApprovalsReviewer;
|
||||
pub(super) use codex_config::types::Notifications;
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ async fn live_app_server_warning_notification_renders_message() {
|
|||
chat.handle_server_notification(
|
||||
ServerNotification::Warning(WarningNotification {
|
||||
thread_id: None,
|
||||
message: "Warning: Exceeded skills context budget of 2%. All skill descriptions were removed and 2 additional skills were not included in the model-visible skills list.".to_string(),
|
||||
message: "Warning: Background sync paused until the project is trusted.".to_string(),
|
||||
}),
|
||||
/*replay_kind*/ None,
|
||||
);
|
||||
|
|
@ -201,15 +201,9 @@ async fn live_app_server_warning_notification_renders_message() {
|
|||
let rendered = lines_to_single_string(&cells[0]);
|
||||
let normalized = rendered.split_whitespace().collect::<Vec<_>>().join(" ");
|
||||
assert!(
|
||||
normalized.contains("Warning: Exceeded skills context budget of 2%."),
|
||||
normalized.contains("Warning: Background sync paused until the project is trusted."),
|
||||
"expected warning notification message, got {rendered}"
|
||||
);
|
||||
assert!(
|
||||
normalized.contains(
|
||||
"All skill descriptions were removed and 2 additional skills were not included in the model-visible skills list."
|
||||
),
|
||||
"expected warning guidance, got {rendered}"
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ fn render_debug_config_lines(stack: &ConfigLayerStack) -> Vec<Line<'static>> {
|
|||
));
|
||||
}
|
||||
|
||||
// TODO(gt): Expand this debug output with detailed skills and rules display.
|
||||
// TODO(gt): Expand this debug output with detailed rules display.
|
||||
if requirements_toml.rules.is_some() {
|
||||
requirement_lines.push(requirement_line(
|
||||
"rules",
|
||||
|
|
@ -663,7 +663,6 @@ mod tests {
|
|||
},
|
||||
},
|
||||
)])),
|
||||
apps: None,
|
||||
rules: None,
|
||||
enforce_residency: Some(ResidencyRequirement::Us),
|
||||
network: None,
|
||||
|
|
@ -861,7 +860,6 @@ approval_policy = "never"
|
|||
guardian_policy_config: None,
|
||||
feature_requirements: None,
|
||||
mcp_servers: None,
|
||||
apps: None,
|
||||
rules: None,
|
||||
enforce_residency: None,
|
||||
network: None,
|
||||
|
|
|
|||
1
vendor/codex/codex-rs/tui/tooltips.txt
vendored
1
vendor/codex/codex-rs/tui/tooltips.txt
vendored
|
|
@ -4,7 +4,6 @@ Use /feedback to send logs to the maintainers when something looks off.
|
|||
Switch models or reasoning effort quickly with /model.
|
||||
Use /permissions to control when Codex asks for confirmation.
|
||||
Run /review to get a code review of your current changes.
|
||||
Use /skills to list available skills or ask Codex to use one.
|
||||
Use /status to see the current model, approvals, and token usage.
|
||||
Use /statusline to configure which items appear in the status line.
|
||||
Use /fork to branch the current chat into a new thread.
|
||||
|
|
|
|||
Reference in a new issue