Codex AgentsMesh Refactoring with Small Verified Changes
Reduce duplication or clarify dependencies while preserving behavior. Use regression tests to establish a baseline and make reviewable changes.
中文Install in Codex
Codex with an AgentsMesh or target checkout, existing behavior, tests, and a defined refactor goal.
- Open the pinned GitHub original and retain the complete `.agents/skills/am-agent-code-refactor/` directory in the checkout.
- Open Codex in that checkout and invoke `$am-agent-code-refactor` with the example task and desired output.
Example task
Give `$am-agent-code-refactor` two fictional text formatters. Extract shared whitespace handling and compare results using the existing cases.What to check
The shared logic has a clear owner, and the fixture output remains the same after the small refactor.
Original SKILL.md on GitHub · Updated
Frequently asked question
When is a benchmark useful?
Measure before and after with the same workload when performance is a goal or a hot path changes.