Skip to content

an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions

fix(missions): disable auto-compact /compact injection (founder opt-out)

Vyapak Goyal80f032701a21
diff --git a/src/main/config.ts b/src/main/config.ts
index 30380012..7e8e26f3 100644
--- a/src/main/config.ts
+++ b/src/main/config.ts
@@ -47,7 +47,12 @@ export const OPS_STANDUP_MISSION: ScheduledMission = {
'contexts stay bounded without losing work. The compaction is queued and ' +
'runs when an agent is idle, so it never interrupts work mid-step.)',
enabled: true,
- autoCompact: true
+ // Auto-compact injection ships OFF: the founder does not want a scheduled
+ // `/compact …` typed into agent terminals (it reads as if they typed it).
+ // Re-enableable per-mission; the one-time autoCompactDisabledMigrated step
+ // also flips this false on existing installs. Claude Code's own near-limit
+ // auto-compaction still protects long sessions independently of this.
+ autoCompact: false
};
/** The built-in heartbeat (Lane A #1). A context-aware beat that, each tick,
@@ -131,6 +136,7 @@ export interface HarnessConfig {
/** One-time guard for the built-in heartbeat mission (mirrors opsStandupSeeded
* so a user who deletes the heartbeat doesn't get it re-added every boot). */
heartbeatSeeded?: boolean;
+ autoCompactDisabledMigrated?: boolean; // one-time: flipped every mission's autoCompact off on existing installs (founder opt-out); guards against re-forcing if re-enabled later
/** Hard dollar ceiling across all active agents before the circuit breaker
* trips. UNSET by default (Lane A #6.6b decision): the breaker trips on
* behavioral signals; the $-cap is purely opt-in. Legacy — the UI now sets a
diff --git a/src/main/index.ts b/src/main/index.ts
index 3faa9818..3cde7506 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -340,6 +340,20 @@ function ensureDefaultMissions(): void {
heartbeatSeeded: true
});
}
+ // One-time opt-out: the founder doesn't want the scheduled /compact injected
+ // into agent terminals. An existing install already persisted the ops standup
+ // with autoCompact:true (which { ...DEFAULTS, ...parsed } keeps), so flipping
+ // the built-in default alone wouldn't reach it — clear the flag on every
+ // persisted mission once. Guarded so a user who deliberately re-enables it
+ // later isn't force-disabled on every boot.
+ const cfg3 = readConfig();
+ if (!cfg3.autoCompactDisabledMigrated) {
+ const missions = cfg3.missions ?? [];
+ writeConfig({
+ missions: missions.map((m) => (m.autoCompact ? { ...m, autoCompact: false } : m)),
+ autoCompactDisabledMigrated: true
+ });
+ }
}
// ─── Heartbeat (Lane A #1) + circuit-breaker beat (#6.6b) ────────────────────