MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / removeInstructionsEntry

Function removeInstructionsEntry

src/installer/targets/codex.ts:169–173  ·  view source on GitHub ↗

* Strip the marker-delimited CodeGraph block from `~/.codex/AGENTS.md` * if a prior install wrote one. Used by both install (self-heal on * upgrade) and uninstall — see issue #529.

()

Source from the content-addressed store, hash-verified

167 * upgrade) and uninstall — see issue #529.
168 */
169function removeInstructionsEntry(): WriteResult['files'][number] {
170 const file = instructionsPath();
171 const action = removeMarkedSection(file, CODEGRAPH_SECTION_START, CODEGRAPH_SECTION_END);
172 return { path: file, action };
173}
174
175export const codexTarget: AgentTarget = new CodexTarget();

Callers 1

uninstallMethod · 0.70

Calls 2

removeMarkedSectionFunction · 0.90
instructionsPathFunction · 0.70

Tested by

no test coverage detected