MCPcopy Create free account
hub / github.com/backnotprop/plannotator / shouldStripPlanModeLine

Function shouldStripPlanModeLine

apps/opencode-plugin/plan-mode.ts:26–34  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

24// ── Prompt stripping ──────────────────────────────────────────────────────
25
26function shouldStripPlanModeLine(line: string): boolean {
27 const normalized = line.trim().toLowerCase();
28 return normalized.includes("strictly forbidden: any file edits")
29 || normalized.includes("your plan at ")
30 || normalized.includes("plan file already exists at ")
31 || normalized.includes(".opencode/plans/")
32 || normalized.includes("plan_exit")
33 || (normalized.includes("agent's conversation") && normalized.includes("not on disk"));
34}
35
36function cleanupSystemEntry(entry: string): string {
37 return entry

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected