feat: add Codex guidance install tool#1
Open
owenshen0907 wants to merge 2 commits into
Open
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 87bfde1. Configure here.
| before = readFileSync(agentsPath, 'utf8'); | ||
| } catch { | ||
| existed = false; | ||
| } |
There was a problem hiding this comment.
Read errors mimic missing file
Medium Severity
installCodexGuidance treats any readFileSync failure like a missing ~/.codex/AGENTS.md, leaving before empty and existed false. A readable-on-write failure (permissions, I/O, etc.) can skip the backup and overwrite the real file with only the injected section.
Reviewed by Cursor Bugbot for commit 87bfde1. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
evolver_install_codex_guidance, an explicit MCP tool that installs or refreshes a marker-delimited Evolver section in global~/.codex/AGENTS.md.dry_run, English/Chinese guidance text, and timestamped backups before changing an existing AGENTS.md file.repositoryfield at this Codex plugin marketplace repo.@evomap/evolverCLI +setup-hooks --platform=codexflow and clarify that current Codex plugin installs use theevolver_*MCP tool names.Safety notes
evolver_install_codex_guidanceshould be called only when the user explicitly asks to install or refresh global Codex guidance.Test plan
python3 ~/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py plugins/evolvernode --check plugins/evolver/mcp/evolver-proxy.mjsprintf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node plugins/evolver/mcp/evolver-proxy.mjsprintf '%s\n' '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"evolver_install_codex_guidance","arguments":{"dry_run":true,"language":"zh"}}}' | node plugins/evolver/mcp/evolver-proxy.mjsNote
Medium Risk
The new tool writes under the user's home directory (~/.codex/AGENTS.md), but it is gated to explicit user requests, backs up existing files, and only touches a bounded marker section.
Overview
Adds
evolver_install_codex_guidanceon the Evolver Proxy MCP bridge so Codex can install or refresh a marker-delimited Evolver section in~/.codex/AGENTS.md(English or Chinese), withdry_run, timestamped backup, and safe insert/replace when markers are present or malformed.Docs and manifest now point the plugin
repositoryat this marketplace repo, describe calling the new tool vs. the optional@evomap/evolver+setup-hooks --platform=codexpath, and clarify that current setups should useevolver_*MCP tools instead of legacygep_recall/gep_record_outcomein AGENTS.md. The skill and plugin UI copy were updated to match (including a new default prompt for global guidance).Reviewed by Cursor Bugbot for commit 87bfde1. Bugbot is set up for automated code reviews on this repo. Configure here.