The best way to control Claude Code, Codex and more from any computer or phone

main
ts 23 lines 1020 Bytes
Raw
1 import type { OrchestratorFixtureInput } from "../shared.ts";
2
3 export const PI_COMPACTION_MARKER = "compaction-marker-4Z7Q";
4 const PI_COMPACTION_INSTRUCTED = `/compact keep the opaque marker ${PI_COMPACTION_MARKER}`;
5 const PI_COMPACTION_RECALL_PROMPT =
6 "Return the opaque marker I asked you to remember. Respond with only the marker.";
7
8 /** Tiny keepRecentTokens makes the short recording compactable. */
9 export function piCompactionInput(): OrchestratorFixtureInput {
10 return {
11 steps: [
12 {
13 type: "message",
14 text: `Remember the opaque marker ${PI_COMPACTION_MARKER} for later. Respond with exactly: compaction marker stored`,
15 },
16 { type: "message", text: PI_COMPACTION_INSTRUCTED },
17 { type: "message", text: "Respond with exactly: second compaction fixture turn" },
18 { type: "message", text: "Respond with exactly: third compaction fixture turn" },
19 { type: "message", text: "/compact" },
20 { type: "message", text: PI_COMPACTION_RECALL_PROMPT },
21 ],
22 };
23 }