charness 3.10.0 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +171 -0
- package/DEVELOPMENT.md +3 -3
- package/README.md +3 -2
- package/SETUP.md +6 -5
- package/agent-plugin/README.md +15 -6
- package/agent-plugin/skills/charness-delegate-claude/SKILL.md +23 -13
- package/agent-plugin/skills/charness-delegate-opencode/SKILL.md +10 -6
- package/agent-plugin/skills/charness-delivery-loop/SKILL.md +92 -0
- package/agent-plugin/skills/charness-orchestration/SKILL.md +116 -0
- package/dist/adapters/openCodeAdapter.d.ts +15 -0
- package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
- package/dist/adapters/openCodeAdapter.js +48 -4
- package/dist/adapters/openCodeAdapter.js.map +1 -1
- package/dist/agentLogin/agentLogin.d.ts +11 -0
- package/dist/agentLogin/agentLogin.d.ts.map +1 -1
- package/dist/agentLogin/agentLogin.js +18 -6
- package/dist/agentLogin/agentLogin.js.map +1 -1
- package/dist/apiErrorRetry.d.ts +5 -0
- package/dist/apiErrorRetry.d.ts.map +1 -1
- package/dist/apiErrorRetry.js +3 -3
- package/dist/apiErrorRetry.js.map +1 -1
- package/dist/bot.d.ts.map +1 -1
- package/dist/bot.js +331 -152
- package/dist/bot.js.map +1 -1
- package/dist/cli/claudeProfiles.d.ts +5 -2
- package/dist/cli/claudeProfiles.d.ts.map +1 -1
- package/dist/cli/claudeProfiles.js +43 -20
- package/dist/cli/claudeProfiles.js.map +1 -1
- package/dist/cli/claudeProfilesCredit.d.ts +49 -0
- package/dist/cli/claudeProfilesCredit.d.ts.map +1 -0
- package/dist/cli/claudeProfilesCredit.js +160 -0
- package/dist/cli/claudeProfilesCredit.js.map +1 -0
- package/dist/cli/flagValue.d.ts +10 -0
- package/dist/cli/flagValue.d.ts.map +1 -0
- package/dist/cli/flagValue.js +17 -0
- package/dist/cli/flagValue.js.map +1 -0
- package/dist/connectors/telegram/commands/botCore.d.ts +1 -0
- package/dist/connectors/telegram/commands/botCore.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/botSkills.js +1 -1
- package/dist/connectors/telegram/commands/claudeAccounts.d.ts +6 -1
- package/dist/connectors/telegram/commands/claudeAccounts.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/claudeAccounts.js +12 -9
- package/dist/connectors/telegram/commands/claudeAccounts.js.map +1 -1
- package/dist/connectors/telegram/commands/compaction.d.ts +11 -0
- package/dist/connectors/telegram/commands/compaction.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/compaction.js +208 -22
- package/dist/connectors/telegram/commands/compaction.js.map +1 -1
- package/dist/connectors/telegram/commands/runners.d.ts +5 -1
- package/dist/connectors/telegram/commands/runners.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/runners.js +151 -30
- package/dist/connectors/telegram/commands/runners.js.map +1 -1
- package/dist/connectors/telegram/foldedMessage.d.ts +24 -0
- package/dist/connectors/telegram/foldedMessage.d.ts.map +1 -0
- package/dist/connectors/telegram/foldedMessage.js +39 -0
- package/dist/connectors/telegram/foldedMessage.js.map +1 -0
- package/dist/connectors/telegram/inbound.d.ts +24 -1
- package/dist/connectors/telegram/inbound.d.ts.map +1 -1
- package/dist/connectors/telegram/inbound.js +77 -1
- package/dist/connectors/telegram/inbound.js.map +1 -1
- package/dist/connectors/telegram/renderAgentHtml.d.ts +15 -0
- package/dist/connectors/telegram/renderAgentHtml.d.ts.map +1 -1
- package/dist/connectors/telegram/renderAgentHtml.js +11 -1
- package/dist/connectors/telegram/renderAgentHtml.js.map +1 -1
- package/dist/connectors/telegram/runnerPairingMessages.d.ts +2 -7
- package/dist/connectors/telegram/runnerPairingMessages.d.ts.map +1 -1
- package/dist/connectors/telegram/runnerPairingMessages.js +5 -19
- package/dist/connectors/telegram/runnerPairingMessages.js.map +1 -1
- package/dist/connectors/telegram/unpinMessages.d.ts +12 -0
- package/dist/connectors/telegram/unpinMessages.d.ts.map +1 -0
- package/dist/connectors/telegram/unpinMessages.js +44 -0
- package/dist/connectors/telegram/unpinMessages.js.map +1 -0
- package/dist/i18n/de.d.ts.map +1 -1
- package/dist/i18n/de.js +63 -11
- package/dist/i18n/de.js.map +1 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +63 -11
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/es.d.ts.map +1 -1
- package/dist/i18n/es.js +63 -11
- package/dist/i18n/es.js.map +1 -1
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +63 -11
- package/dist/i18n/fr.js.map +1 -1
- package/dist/i18n/hi.d.ts.map +1 -1
- package/dist/i18n/hi.js +63 -11
- package/dist/i18n/hi.js.map +1 -1
- package/dist/i18n/ja.d.ts.map +1 -1
- package/dist/i18n/ja.js +63 -11
- package/dist/i18n/ja.js.map +1 -1
- package/dist/i18n/ka.d.ts.map +1 -1
- package/dist/i18n/ka.js +63 -11
- package/dist/i18n/ka.js.map +1 -1
- package/dist/i18n/pt.d.ts.map +1 -1
- package/dist/i18n/pt.js +63 -11
- package/dist/i18n/pt.js.map +1 -1
- package/dist/i18n/ru.d.ts.map +1 -1
- package/dist/i18n/ru.js +63 -11
- package/dist/i18n/ru.js.map +1 -1
- package/dist/i18n/uk.d.ts.map +1 -1
- package/dist/i18n/uk.js +63 -11
- package/dist/i18n/uk.js.map +1 -1
- package/dist/i18n/uz.d.ts.map +1 -1
- package/dist/i18n/uz.js +63 -11
- package/dist/i18n/uz.js.map +1 -1
- package/dist/i18n/zh.d.ts.map +1 -1
- package/dist/i18n/zh.js +63 -11
- package/dist/i18n/zh.js.map +1 -1
- package/dist/installManager.d.ts.map +1 -1
- package/dist/installManager.js +3 -0
- package/dist/installManager.js.map +1 -1
- package/dist/instanceLock.d.ts.map +1 -1
- package/dist/instanceLock.js +2 -1
- package/dist/instanceLock.js.map +1 -1
- package/dist/outputTrace.d.ts +6 -0
- package/dist/outputTrace.d.ts.map +1 -1
- package/dist/outputTrace.js +13 -0
- package/dist/outputTrace.js.map +1 -1
- package/dist/platform/outbound.d.ts +14 -1
- package/dist/platform/outbound.d.ts.map +1 -1
- package/dist/platform/outbound.js.map +1 -1
- package/dist/remoteRun/cleanReport.d.ts +45 -0
- package/dist/remoteRun/cleanReport.d.ts.map +1 -0
- package/dist/remoteRun/cleanReport.js +84 -0
- package/dist/remoteRun/cleanReport.js.map +1 -0
- package/dist/remoteRun/cliArgs.d.ts +18 -0
- package/dist/remoteRun/cliArgs.d.ts.map +1 -1
- package/dist/remoteRun/cliArgs.js +100 -4
- package/dist/remoteRun/cliArgs.js.map +1 -1
- package/dist/remoteRun/commands.d.ts +30 -1
- package/dist/remoteRun/commands.d.ts.map +1 -1
- package/dist/remoteRun/commands.js +84 -9
- package/dist/remoteRun/commands.js.map +1 -1
- package/dist/remoteRun/exitCodes.d.ts +5 -0
- package/dist/remoteRun/exitCodes.d.ts.map +1 -1
- package/dist/remoteRun/exitCodes.js +6 -1
- package/dist/remoteRun/exitCodes.js.map +1 -1
- package/dist/remoteRun/foreground.d.ts +6 -0
- package/dist/remoteRun/foreground.d.ts.map +1 -1
- package/dist/remoteRun/foreground.js +13 -1
- package/dist/remoteRun/foreground.js.map +1 -1
- package/dist/remoteRun/interrupts.d.ts.map +1 -1
- package/dist/remoteRun/interrupts.js +2 -2
- package/dist/remoteRun/interrupts.js.map +1 -1
- package/dist/remoteRun/jobFiles.d.ts +6 -1
- package/dist/remoteRun/jobFiles.d.ts.map +1 -1
- package/dist/remoteRun/jobFiles.js +14 -0
- package/dist/remoteRun/jobFiles.js.map +1 -1
- package/dist/remoteRun/jobId.d.ts +5 -0
- package/dist/remoteRun/jobId.d.ts.map +1 -1
- package/dist/remoteRun/jobId.js +10 -0
- package/dist/remoteRun/jobId.js.map +1 -1
- package/dist/remoteRun/jobState.d.ts.map +1 -1
- package/dist/remoteRun/jobState.js +3 -2
- package/dist/remoteRun/jobState.js.map +1 -1
- package/dist/remoteRun/pairedRunners.d.ts +1 -1
- package/dist/remoteRun/pairedRunners.d.ts.map +1 -1
- package/dist/remoteRun/pairedRunners.js +4 -0
- package/dist/remoteRun/pairedRunners.js.map +1 -1
- package/dist/remoteRun/pathPatterns.d.ts +1 -1
- package/dist/remoteRun/pathPatterns.js +1 -1
- package/dist/remoteRun/probe.d.ts +58 -5
- package/dist/remoteRun/probe.d.ts.map +1 -1
- package/dist/remoteRun/probe.js +107 -11
- package/dist/remoteRun/probe.js.map +1 -1
- package/dist/remoteRun/probeTiming.d.ts +15 -0
- package/dist/remoteRun/probeTiming.d.ts.map +1 -0
- package/dist/remoteRun/probeTiming.js +23 -0
- package/dist/remoteRun/probeTiming.js.map +1 -0
- package/dist/remoteRun/project.d.ts +5 -0
- package/dist/remoteRun/project.d.ts.map +1 -1
- package/dist/remoteRun/project.js +10 -0
- package/dist/remoteRun/project.js.map +1 -1
- package/dist/remoteRun/projectConfig.d.ts +8 -1
- package/dist/remoteRun/projectConfig.d.ts.map +1 -1
- package/dist/remoteRun/projectConfig.js +18 -5
- package/dist/remoteRun/projectConfig.js.map +1 -1
- package/dist/remoteRun/pruneReport.d.ts +48 -0
- package/dist/remoteRun/pruneReport.d.ts.map +1 -0
- package/dist/remoteRun/pruneReport.js +80 -0
- package/dist/remoteRun/pruneReport.js.map +1 -0
- package/dist/remoteRun/remoteRunCli.d.ts +1 -1
- package/dist/remoteRun/remoteRunCli.d.ts.map +1 -1
- package/dist/remoteRun/remoteRunCli.js +20 -0
- package/dist/remoteRun/remoteRunCli.js.map +1 -1
- package/dist/remoteRun/runnerClient.d.ts +10 -0
- package/dist/remoteRun/runnerClient.d.ts.map +1 -1
- package/dist/remoteRun/runnerClient.js +19 -5
- package/dist/remoteRun/runnerClient.js.map +1 -1
- package/dist/remoteRun/runnerWait.d.ts.map +1 -1
- package/dist/remoteRun/runnerWait.js +2 -1
- package/dist/remoteRun/runnerWait.js.map +1 -1
- package/dist/remoteRun/runners.d.ts +48 -7
- package/dist/remoteRun/runners.d.ts.map +1 -1
- package/dist/remoteRun/runners.js +105 -40
- package/dist/remoteRun/runners.js.map +1 -1
- package/dist/remoteRun/runnersConfig.d.ts +24 -0
- package/dist/remoteRun/runnersConfig.d.ts.map +1 -1
- package/dist/remoteRun/runnersConfig.js +29 -2
- package/dist/remoteRun/runnersConfig.js.map +1 -1
- package/dist/remoteRun/ssh.d.ts +3 -3
- package/dist/remoteRun/ssh.d.ts.map +1 -1
- package/dist/remoteRun/ssh.js +19 -5
- package/dist/remoteRun/ssh.js.map +1 -1
- package/dist/remoteRun/submit.d.ts +1 -1
- package/dist/remoteRun/submit.d.ts.map +1 -1
- package/dist/remoteRun/submit.js +30 -2
- package/dist/remoteRun/submit.js.map +1 -1
- package/dist/runnerUtility/adminService.d.ts.map +1 -1
- package/dist/runnerUtility/adminService.js +5 -5
- package/dist/runnerUtility/adminService.js.map +1 -1
- package/dist/runnerUtility/appInstall.d.ts +9 -0
- package/dist/runnerUtility/appInstall.d.ts.map +1 -1
- package/dist/runnerUtility/appInstall.js +12 -2
- package/dist/runnerUtility/appInstall.js.map +1 -1
- package/dist/runnerUtility/execEnv.d.ts +1 -1
- package/dist/runnerUtility/execEnv.d.ts.map +1 -1
- package/dist/runnerUtility/execEnv.js +23 -5
- package/dist/runnerUtility/execEnv.js.map +1 -1
- package/dist/runnerUtility/guiAgentHeal.d.ts +3 -3
- package/dist/runnerUtility/guiAgentHeal.d.ts.map +1 -1
- package/dist/runnerUtility/guiAgentHeal.js +6 -4
- package/dist/runnerUtility/guiAgentHeal.js.map +1 -1
- package/dist/runnerUtility/homeFolders.d.ts +1 -0
- package/dist/runnerUtility/homeFolders.d.ts.map +1 -1
- package/dist/runnerUtility/homeFolders.js +2 -1
- package/dist/runnerUtility/homeFolders.js.map +1 -1
- package/dist/runnerUtility/iosCheck.d.ts +2 -0
- package/dist/runnerUtility/iosCheck.d.ts.map +1 -1
- package/dist/runnerUtility/iosCheck.js +12 -3
- package/dist/runnerUtility/iosCheck.js.map +1 -1
- package/dist/runnerUtility/isolatedCommand.d.ts +0 -2
- package/dist/runnerUtility/isolatedCommand.d.ts.map +1 -1
- package/dist/runnerUtility/isolatedCommand.js +4 -11
- package/dist/runnerUtility/isolatedCommand.js.map +1 -1
- package/dist/runnerUtility/keepAwake.d.ts +47 -10
- package/dist/runnerUtility/keepAwake.d.ts.map +1 -1
- package/dist/runnerUtility/keepAwake.js +108 -31
- package/dist/runnerUtility/keepAwake.js.map +1 -1
- package/dist/runnerUtility/launcher.d.ts +4 -0
- package/dist/runnerUtility/launcher.d.ts.map +1 -1
- package/dist/runnerUtility/launcher.js +31 -13
- package/dist/runnerUtility/launcher.js.map +1 -1
- package/dist/runnerUtility/linkLoop.d.ts +4 -0
- package/dist/runnerUtility/linkLoop.d.ts.map +1 -1
- package/dist/runnerUtility/linkLoop.js +15 -6
- package/dist/runnerUtility/linkLoop.js.map +1 -1
- package/dist/runnerUtility/managedNode.d.ts +84 -0
- package/dist/runnerUtility/managedNode.d.ts.map +1 -0
- package/dist/runnerUtility/managedNode.js +165 -0
- package/dist/runnerUtility/managedNode.js.map +1 -0
- package/dist/runnerUtility/nodeOnPath.d.ts +10 -0
- package/dist/runnerUtility/nodeOnPath.d.ts.map +1 -0
- package/dist/runnerUtility/nodeOnPath.js +49 -0
- package/dist/runnerUtility/nodeOnPath.js.map +1 -0
- package/dist/runnerUtility/nodeUpkeep.d.ts +140 -0
- package/dist/runnerUtility/nodeUpkeep.d.ts.map +1 -0
- package/dist/runnerUtility/nodeUpkeep.js +348 -0
- package/dist/runnerUtility/nodeUpkeep.js.map +1 -0
- package/dist/runnerUtility/nodeUpkeepTiming.d.ts +14 -0
- package/dist/runnerUtility/nodeUpkeepTiming.d.ts.map +1 -0
- package/dist/runnerUtility/nodeUpkeepTiming.js +21 -0
- package/dist/runnerUtility/nodeUpkeepTiming.js.map +1 -0
- package/dist/runnerUtility/packageManagerShims.d.ts +10 -0
- package/dist/runnerUtility/packageManagerShims.d.ts.map +1 -1
- package/dist/runnerUtility/packageManagerShims.js +67 -3
- package/dist/runnerUtility/packageManagerShims.js.map +1 -1
- package/dist/runnerUtility/pueueDaemon.d.ts +73 -8
- package/dist/runnerUtility/pueueDaemon.d.ts.map +1 -1
- package/dist/runnerUtility/pueueDaemon.js +90 -15
- package/dist/runnerUtility/pueueDaemon.js.map +1 -1
- package/dist/runnerUtility/runnerCommands.d.ts +7 -1
- package/dist/runnerUtility/runnerCommands.d.ts.map +1 -1
- package/dist/runnerUtility/runnerCommands.js +119 -16
- package/dist/runnerUtility/runnerCommands.js.map +1 -1
- package/dist/runnerUtility/runnerHome.d.ts +34 -0
- package/dist/runnerUtility/runnerHome.d.ts.map +1 -1
- package/dist/runnerUtility/runnerHome.js +17 -3
- package/dist/runnerUtility/runnerHome.js.map +1 -1
- package/dist/runnerUtility/serviceCommon.d.ts +2 -0
- package/dist/runnerUtility/serviceCommon.d.ts.map +1 -1
- package/dist/runnerUtility/serviceCommon.js +3 -1
- package/dist/runnerUtility/serviceCommon.js.map +1 -1
- package/dist/runnerUtility/serviceManager.d.ts.map +1 -1
- package/dist/runnerUtility/serviceManager.js +7 -2
- package/dist/runnerUtility/serviceManager.js.map +1 -1
- package/dist/runnerUtility/simctlGuard.d.ts +38 -0
- package/dist/runnerUtility/simctlGuard.d.ts.map +1 -0
- package/dist/runnerUtility/simctlGuard.js +166 -0
- package/dist/runnerUtility/simctlGuard.js.map +1 -0
- package/dist/runners/bootstrapLine.d.ts +3 -4
- package/dist/runners/bootstrapLine.d.ts.map +1 -1
- package/dist/runners/bootstrapLine.js +108 -83
- package/dist/runners/bootstrapLine.js.map +1 -1
- package/dist/runners/hubPackage.d.ts +1 -1
- package/dist/runners/hubPackage.d.ts.map +1 -1
- package/dist/runners/hubPackage.js +5 -6
- package/dist/runners/hubPackage.js.map +1 -1
- package/dist/runners/hubPairing.d.ts +19 -0
- package/dist/runners/hubPairing.d.ts.map +1 -1
- package/dist/runners/hubPairing.js +38 -0
- package/dist/runners/hubPairing.js.map +1 -1
- package/dist/runners/hubRegistry.d.ts +8 -0
- package/dist/runners/hubRegistry.d.ts.map +1 -1
- package/dist/runners/hubRegistry.js +6 -0
- package/dist/runners/hubRegistry.js.map +1 -1
- package/dist/runners/pairCode.d.ts +34 -3
- package/dist/runners/pairCode.d.ts.map +1 -1
- package/dist/runners/pairCode.js +65 -13
- package/dist/runners/pairCode.js.map +1 -1
- package/dist/runners/runnerGroups.d.ts +22 -0
- package/dist/runners/runnerGroups.d.ts.map +1 -0
- package/dist/runners/runnerGroups.js +41 -0
- package/dist/runners/runnerGroups.js.map +1 -0
- package/dist/runners/runnersCli.d.ts +5 -2
- package/dist/runners/runnersCli.d.ts.map +1 -1
- package/dist/runners/runnersCli.js +59 -9
- package/dist/runners/runnersCli.js.map +1 -1
- package/dist/runners/runnersList.d.ts +1 -1
- package/dist/runners/runnersList.d.ts.map +1 -1
- package/dist/runners/runnersList.js +3 -1
- package/dist/runners/runnersList.js.map +1 -1
- package/dist/runners/runnersOverview.d.ts.map +1 -1
- package/dist/runners/runnersOverview.js +8 -4
- package/dist/runners/runnersOverview.js.map +1 -1
- package/dist/scheduler/checkRun.d.ts +9 -10
- package/dist/scheduler/checkRun.d.ts.map +1 -1
- package/dist/scheduler/checkRun.js +8 -16
- package/dist/scheduler/checkRun.js.map +1 -1
- package/dist/scheduler/checkStatus.d.ts +4 -5
- package/dist/scheduler/checkStatus.d.ts.map +1 -1
- package/dist/scheduler/checkStatus.js +11 -15
- package/dist/scheduler/checkStatus.js.map +1 -1
- package/dist/scheduler/delivery.d.ts +80 -37
- package/dist/scheduler/delivery.d.ts.map +1 -1
- package/dist/scheduler/delivery.js +121 -68
- package/dist/scheduler/delivery.js.map +1 -1
- package/dist/scheduler/mcpSurface.d.ts +13 -5
- package/dist/scheduler/mcpSurface.d.ts.map +1 -1
- package/dist/scheduler/mcpSurface.js +84 -34
- package/dist/scheduler/mcpSurface.js.map +1 -1
- package/dist/scheduler/recurrence.d.ts +32 -0
- package/dist/scheduler/recurrence.d.ts.map +1 -1
- package/dist/scheduler/recurrence.js +56 -18
- package/dist/scheduler/recurrence.js.map +1 -1
- package/dist/scheduler/scheduleText.d.ts +7 -0
- package/dist/scheduler/scheduleText.d.ts.map +1 -0
- package/dist/scheduler/scheduleText.js +55 -0
- package/dist/scheduler/scheduleText.js.map +1 -0
- package/dist/scheduler/store.d.ts +8 -2
- package/dist/scheduler/store.d.ts.map +1 -1
- package/dist/scheduler/store.js +25 -4
- package/dist/scheduler/store.js.map +1 -1
- package/dist/scheduler/types.d.ts +4 -10
- package/dist/scheduler/types.d.ts.map +1 -1
- package/dist/scheduler/workerWatch.d.ts +49 -11
- package/dist/scheduler/workerWatch.d.ts.map +1 -1
- package/dist/scheduler/workerWatch.js +57 -13
- package/dist/scheduler/workerWatch.js.map +1 -1
- package/dist/state.d.ts +95 -2
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +145 -7
- package/dist/state.js.map +1 -1
- package/dist/testTimings.d.ts +6 -2
- package/dist/testTimings.d.ts.map +1 -1
- package/dist/testTimings.js +12 -1
- package/dist/testTimings.js.map +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/agentPlugin.d.ts +2 -1
- package/dist/utils/agentPlugin.d.ts.map +1 -1
- package/dist/utils/agentPlugin.js +2 -1
- package/dist/utils/agentPlugin.js.map +1 -1
- package/dist/utils/botSkills.d.ts +1 -1
- package/dist/utils/claudeApiAgentStop.d.ts +64 -0
- package/dist/utils/claudeApiAgentStop.d.ts.map +1 -0
- package/dist/utils/claudeApiAgentStop.js +85 -0
- package/dist/utils/claudeApiAgentStop.js.map +1 -0
- package/dist/utils/claudeApiCredit.d.ts +168 -0
- package/dist/utils/claudeApiCredit.d.ts.map +1 -0
- package/dist/utils/claudeApiCredit.js +260 -0
- package/dist/utils/claudeApiCredit.js.map +1 -0
- package/dist/utils/claudeApiCreditRecheck.d.ts +120 -0
- package/dist/utils/claudeApiCreditRecheck.d.ts.map +1 -0
- package/dist/utils/claudeApiCreditRecheck.js +173 -0
- package/dist/utils/claudeApiCreditRecheck.js.map +1 -0
- package/dist/utils/claudeCompactHook.d.ts +18 -10
- package/dist/utils/claudeCompactHook.d.ts.map +1 -1
- package/dist/utils/claudeCompactHook.js +35 -14
- package/dist/utils/claudeCompactHook.js.map +1 -1
- package/dist/utils/claudeProfileUsageLines.d.ts +13 -1
- package/dist/utils/claudeProfileUsageLines.d.ts.map +1 -1
- package/dist/utils/claudeProfileUsageLines.js +75 -4
- package/dist/utils/claudeProfileUsageLines.js.map +1 -1
- package/dist/utils/claudeProfileUsageViews.d.ts +46 -0
- package/dist/utils/claudeProfileUsageViews.d.ts.map +1 -0
- package/dist/utils/claudeProfileUsageViews.js +114 -0
- package/dist/utils/claudeProfileUsageViews.js.map +1 -0
- package/dist/utils/claudeProfiles.d.ts +15 -0
- package/dist/utils/claudeProfiles.d.ts.map +1 -1
- package/dist/utils/claudeProfiles.js +54 -0
- package/dist/utils/claudeProfiles.js.map +1 -1
- package/dist/utils/claudeUsage.d.ts +97 -36
- package/dist/utils/claudeUsage.d.ts.map +1 -1
- package/dist/utils/claudeUsage.js +142 -61
- package/dist/utils/claudeUsage.js.map +1 -1
- package/dist/utils/claudeUsageRefresher.d.ts +27 -3
- package/dist/utils/claudeUsageRefresher.d.ts.map +1 -1
- package/dist/utils/claudeUsageRefresher.js +113 -14
- package/dist/utils/claudeUsageRefresher.js.map +1 -1
- package/dist/utils/compactOnIdle.d.ts +140 -15
- package/dist/utils/compactOnIdle.d.ts.map +1 -1
- package/dist/utils/compactOnIdle.js +209 -23
- package/dist/utils/compactOnIdle.js.map +1 -1
- package/dist/utils/compactSelfReviewFlags.d.ts +50 -0
- package/dist/utils/compactSelfReviewFlags.d.ts.map +1 -0
- package/dist/utils/compactSelfReviewFlags.js +120 -0
- package/dist/utils/compactSelfReviewFlags.js.map +1 -0
- package/dist/utils/fallbackChain.d.ts +18 -7
- package/dist/utils/fallbackChain.d.ts.map +1 -1
- package/dist/utils/fallbackChain.js +28 -12
- package/dist/utils/fallbackChain.js.map +1 -1
- package/dist/utils/forwardedMark.d.ts +54 -0
- package/dist/utils/forwardedMark.d.ts.map +1 -0
- package/dist/utils/forwardedMark.js +80 -0
- package/dist/utils/forwardedMark.js.map +1 -0
- package/dist/utils/limitHeldPrompts.d.ts +8 -2
- package/dist/utils/limitHeldPrompts.d.ts.map +1 -1
- package/dist/utils/limitHeldPrompts.js +11 -4
- package/dist/utils/limitHeldPrompts.js.map +1 -1
- package/dist/utils/messageContext.d.ts +54 -0
- package/dist/utils/messageContext.d.ts.map +1 -0
- package/dist/utils/messageContext.js +58 -0
- package/dist/utils/messageContext.js.map +1 -0
- package/dist/utils/openCodeCompactPlugin.d.ts +28 -7
- package/dist/utils/openCodeCompactPlugin.d.ts.map +1 -1
- package/dist/utils/openCodeCompactPlugin.js +80 -15
- package/dist/utils/openCodeCompactPlugin.js.map +1 -1
- package/dist/utils/openCodeUsage.d.ts +10 -3
- package/dist/utils/openCodeUsage.d.ts.map +1 -1
- package/dist/utils/openCodeUsage.js +19 -5
- package/dist/utils/openCodeUsage.js.map +1 -1
- package/dist/utils/replyQuote.d.ts +11 -26
- package/dist/utils/replyQuote.d.ts.map +1 -1
- package/dist/utils/replyQuote.js +9 -31
- package/dist/utils/replyQuote.js.map +1 -1
- package/dist/utils/runnersScreenPlan.d.ts +51 -20
- package/dist/utils/runnersScreenPlan.d.ts.map +1 -1
- package/dist/utils/runnersScreenPlan.js +143 -28
- package/dist/utils/runnersScreenPlan.js.map +1 -1
- package/dist/utils/streamedCompactionSummary.d.ts +65 -0
- package/dist/utils/streamedCompactionSummary.d.ts.map +1 -0
- package/dist/utils/streamedCompactionSummary.js +108 -0
- package/dist/utils/streamedCompactionSummary.js.map +1 -0
- package/dist/utils/stripControlCharacters.d.ts +8 -0
- package/dist/utils/stripControlCharacters.d.ts.map +1 -0
- package/dist/utils/stripControlCharacters.js +16 -0
- package/dist/utils/stripControlCharacters.js.map +1 -0
- package/dist/utils/telegramError.d.ts +6 -0
- package/dist/utils/telegramError.d.ts.map +1 -1
- package/dist/utils/telegramError.js +30 -0
- package/dist/utils/telegramError.js.map +1 -1
- package/dist/utils/topicRequest.d.ts +13 -0
- package/dist/utils/topicRequest.d.ts.map +1 -1
- package/dist/utils/topicRequest.js +10 -0
- package/dist/utils/topicRequest.js.map +1 -1
- package/dist/utils/usageRefreshBudget.d.ts.map +1 -1
- package/dist/utils/usageRefreshBudget.js +4 -10
- package/dist/utils/usageRefreshBudget.js.map +1 -1
- package/dist/utils/waitUpTo.d.ts +8 -0
- package/dist/utils/waitUpTo.d.ts.map +1 -0
- package/dist/utils/waitUpTo.js +20 -0
- package/dist/utils/waitUpTo.js.map +1 -0
- package/package.json +2 -2
- package/remoteRun/ensureNode.sh +288 -0
- package/remoteRun/runner.sh +2252 -115
- package/agent-plugin/skills/charness-manager/SKILL.md +0 -156
- package/remoteRun/pickNode.sh +0 -65
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,177 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 3.12.0 — 2026-11-10
|
|
6
|
+
|
|
7
|
+
**Jobs on a Mac runner no longer print «Killed: 9» lines into their output — a line like `runner.sh: line N: <pid> Killed: 9 ( sleep $limit_sec; kill -9 "$command_pid" )` that read like a failure after every step with a Simulator call.**
|
|
8
|
+
Before, every time-limited call the runner script makes (the `simctl` steps of a job's own Simulator device, the Simulator cleanup) started a watchdog and stopped it with `kill -9` when the call ended in time; the Mac's bash 3.2 (and bash 5 as well) then reported that killed watchdog on its own stderr, which is the job's output, whatever the watchdog's own redirections said — seen on a Mac runner as three such lines in one job. The same report, as «Terminated», could follow an `exec` after its exit marker (bash 3.2 reports a job ended by SIGTERM as well; bash 5 only one ended by SIGKILL). Now the script `disown`s a watchdog or watcher before it ends it, so the shell has nothing to report; the time limit works as before (a call past its limit is still cut off with 137, a call that ends in time still stops its watchdog at once).
|
|
9
|
+
|
|
10
|
+
**A worker that runs 2 h 30 min without a report now wakes its orchestrating agent — a third signal of the worker watch, beside «the process is gone» and «nothing was written for 45 min».**
|
|
11
|
+
Before, a worker that kept writing to its log but ran for hours (a suite stuck in a retry loop, a build that never converges) was never reported: the watch fired only when the process ended or the run directory went quiet. Now the watch recipe (`schedule_create`'s `checkCommand`, the same one in the `charness-orchestration` skill) ends with a third test, the age of a `watch-armed` file in the run directory that the agent `touch`es right before it arms the check (a resumed worker's reused run directory too) and again when it looked and found the worker fine — the same check then passes at its next run and watches on. At 2 h 30 min the topic gets one silent sentence — «Worker "builder S2" has been running 2 h 30 min without a report. Checking on it.» (every language; no command, never pinned) — and the agent is woken to look at what the worker is doing. The clock is a file, not `ps -o etimes=`, which a macOS `ps` may lack; a run directory without the file fails at the first run with a code of its own, and the topic then says «Check fired» with «watch-armed: missing» under it — never the «2 h 30 min» sentence — so a forgotten `touch` shows at once and says what to do.
|
|
12
|
+
Also in this change:
|
|
13
|
+
- **The bot MCP's hint now says to load `charness-orchestration` TOGETHER WITH the session's own manager skill** (it used to say «instead of any other manager skill»); the release check now requires that skill's file in the package.
|
|
14
|
+
- **`schedule_create` says a `checkCommand` takes absolute paths only** — it runs in the topic's folder, so a relative path or `~` points elsewhere — and its description teaches the third signal and the marker.
|
|
15
|
+
|
|
16
|
+
**The skills Charness gives its agents no longer switch off your own manager skill: `charness-manager` is now `charness-orchestration`, an add-on loaded together with the manager skill the session already has — and a small `charness-delivery-loop` serves a session that has none.**
|
|
17
|
+
Before, the bot's manager skill told its agent to use it «instead of any other manager skill», so in a bot session your own delivery policy (the review rules, the finish step, parallel work in worktrees) was set aside and the bot's shorter copy ran the whole loop — including its rule to run parallel builders on one checkout, which let two separately released tasks mix their commits.
|
|
18
|
+
Now:
|
|
19
|
+
- **`charness-orchestration` holds only what the bot adds** — the watch check that fires when a worker exits OR stops writing, ending the turn between wakes, the bot's accounts, reaching you through the bot's tools, a tracker conversation, cleaning a runner's project copy. It says it wins only on those mechanics, and a watch over several runs of one step now fires only when ALL of them have ended; a watch of a worker that waits on a runner reads the runner's line in `charness remote-run runners` (online AND able to run the job).
|
|
20
|
+
- **`charness-delivery-loop` is the fallback**, read only when the session lists no manager skill of its own (a public user's session; an OpenCode topic, which does not read `.claude/skills`): modes, one independent review at the finish, a merge and a fetch/rebase before the full run, a worktree and a branch for every separately released task, a long run that never holds the queue, a reviewer's report written outside the worktree.
|
|
21
|
+
- **The two delegate skills keep their names and win only on the launch, the account, detaching and the watch;** their model and effort defaults apply only when no general delegate skill is listed. `charness-delegate-claude` now writes the session id to `<run-dir>/session` at launch and resumes only from that file or the first event of the first run's log — never from memory or a shortened prefix.
|
|
22
|
+
- **The `/bot_skills` screen, in every language, describes what ships now** — an add-on for orchestrating workers, a fallback delivery loop and the two delegation skills — and no longer says «the manager».
|
|
23
|
+
- A session started before the update keeps the old hint to load `charness-manager` until it reconnects; the skill it names is gone, and it falls back to the manager skill the session already has.
|
|
24
|
+
|
|
25
|
+
**A busy runner is no longer refused as «Pueue missing» when Pueue is installed but was slow to answer — `runners` and `/runners` now say that Pueue is there but gave no answer in time, and the runner stays pickable.**
|
|
26
|
+
Before, the runner's probe asked `pueue --version` with a 4 s limit and read a timeout as «no Pueue»: a Mac under a full test run (load about 25) was shown as missing Pueue with the advice to install it, a job sent to it by name was refused with «has no Pueue», and an unnamed job went to another runner — although Pueue was there. Now a Pueue whose version call was cut off by that limit is `unknown`, the word the probe already used for a slow Node or yarn. A Pueue that is not on the runner, or that fails at once, stays «missing»; the same rule now holds for a job's Node and yarn (one that fails at once reads «none», not «there, but gave no answer»).
|
|
27
|
+
|
|
28
|
+
**`charness remote-run bash -c '<script>'` (also `sh`, `zsh`, `dash`, `ksh`, `-lc`) now runs the whole script — it ran only its first word, and the rest of the line in the project root.**
|
|
29
|
+
Before, the command words were joined with spaces and read again by the runner's shell, so `bash -c 'cd projects/app && yarn e2e:dev:ios:job'` reached the Mac as `bash -c cd projects/app && yarn e2e:dev:ios:job`: a `bash -c cd` that changes nothing, then `yarn …` in the project root — «Couldn't find a script named "e2e:dev:ios:job"» (measured on the Mac, jobs of 2026-11-09; the copy, its install and its workspaces were intact). Now the script of a shell's `-c`, and the words after it, are quoted. Every other command is joined with spaces as before (`remote-run 'yarn build && yarn test'` is unchanged).
|
|
30
|
+
**A Ctrl-C, or the end of `--runner-wait`, while the new runner script is being uploaded to a busy runner now reads «interrupted» / «none did» — not an upload failure — and a probe that fails by itself with a «timed out» line no longer reads «busy».**
|
|
31
|
+
Before, a stop that cut the upload of the runner script (right after an update) made `remote-run` exit 125 with «could not put the runner script … ran past its deadline» instead of 130; and a probe whose own tools (`pueue`, `xcrun`) printed «… timed out» was shown `online, busy` instead of offline. Now only ssh's own timeout (exit 255) counts as a runner that is slow, and a cut-off upload ends the way every other cut-off step of the look does.
|
|
32
|
+
**`charness remote-run bash -o pipefail -c '<script>'` (also `bash -e -c`, `bash --login -c`) now runs the whole script too — and a command whose words the runner will read again says so on stderr.**
|
|
33
|
+
Before, only `<shell> -c <script>` and its bundles (`-lc`) were quoted for you: with an option of the shell in front of `-c`, or behind a wrapper (`nice -n 19 bash -c '…'`, `env`, `timeout`, `python3 -c`), the runner split the script and ran its first word (the same misleading «script not found in the root»). Now the shell's own options before `-c` are skipped to find it, and when a word after the first holds a space, a quote or an operator, one line on stderr says «the words are joined with spaces and read again on the runner — pass the whole command as one quoted word». `charness remote-run --help` says it as well.
|
|
34
|
+
**A remote-run job that is told to stop just as its command is being started now stops — with its iOS Simulator device shut down — instead of running on to the hard kill.**
|
|
35
|
+
Before, a stop (the job's time limit, or a `kill`) that reached the job between its last check and the start of its command (a gap measured at up to ~1.5 s in a test on a loaded Linux box; a loaded Mac is where users likely meet it) went to the job alone: the command was started after it, ran on for the whole grace (10 s) until the SIGKILL, and the job's Simulator device stayed booted. Now a job that has been told to stop starts no step: it ends with 124 (limit) or 137 (kill) and shuts its device down as usual.
|
|
36
|
+
**A runner that is busy under a job no longer reads «offline (no answer within 20 s)» — and the next submit no longer waits for it or refuses it.**
|
|
37
|
+
Before, a Mac with its iOS Simulators booting (load 129 on 10 cores) whose probe did not finish in 20 s was shown `offline`, although its link was up and a job was running on it; a new `--needs` job then waited for it as for a machine that was gone, or was refused. Measured: the probe waited, before answering, for the scheduling safety net — which waits up to 30 s for a project's scheduling mutex and asks Pueue with no limit — and a probe taken while a job was being queued behind a slow Pueue took 25.8 s against 0.4 s without it.
|
|
38
|
+
Now:
|
|
39
|
+
- **The probe's answer no longer waits for housekeeping:** the scheduling safety net runs detached, one at a time (`settle-queue`), so the probe is a handful of file reads and questions each bounded at 4 s.
|
|
40
|
+
- **A runner that is there but did not finish in time is «online, busy», never «offline»:** a paired runner whose link is up, or any runner whose ssh answered, shows `online, busy · no answer within 20 s (…); it is linked, so it is not offline` with the details of its last probe marked as old — in `charness remote-run runners` and in the bot's `/runners` (every language). It is picked from that snapshot (Pueue there, not paused, the capability) and never waited for — after the command has looked for its script on it (and uploaded the new version when an update renamed it), and a busy runner that then does not answer is waited for like an offline one; ssh's own connect timeout and a script upload the deadline cut off count as busy too. A hand-made runner that does not answer ssh at all, a link that is down and a dropped connection stay offline. Jobs already running were never cut by the reading.
|
|
41
|
+
**A Mac runner no longer falls asleep — and stays offline for hours — when its link restarts for an update.**
|
|
42
|
+
Before, the sleep assertion that keeps a Mac awake was tied to the link's process, so every restart of the link (every update of the host's package) left the Mac with no assertion for a moment. Measured on one Mac, four restarts since 11-05: each time it went to sleep five seconds after the old assertion ended, and since no assertion wakes a sleeping Mac the runner showed «offline» until someone pressed a key (the three followed lasted about 1 h, 34 min and 9 h). The gap is the likely cause, not a proven one, and the fix is not yet verified on the Mac.
|
|
43
|
+
Now:
|
|
44
|
+
- **The holder is a timed one that outlives the link** (`caffeinate -i -t 300` on a Mac, `systemd-inhibit … sleep 300` on Linux): the link renews it every minute — the new holder first, the old one released only after it holds — and a restart, an update or a crash leaves it running, so the next link's holder takes over while it still holds — and then ends it, so a machine has one holder, not a pile after a crash loop. Only a stop of the runner (Ctrl-C, a service stop, `unpair`, a removal) ends it at once; a link that is killed leaves the machine awake for at most 5 more minutes.
|
|
45
|
+
- **`runners` and `/runners` stop promising what an assertion cannot do:** a runner that does not answer shows what it said when last seen — «keeps awake: it did when last seen … — if it is asleep now, nothing can wake it from here: a key press or opening the lid does» (and the screen adds the same line in every language) — instead of «keeps awake: yes». A closed lid, the Apple menu's Sleep, the power button and a link away for over 5 minutes still sleep the Mac; the docs say so.
|
|
46
|
+
|
|
47
|
+
**You can now switch the agent's self-review on a compaction off with `/compact_self_review` — per topic, or for all topics from General — and with it off the agent is not even asked for it.**
|
|
48
|
+
Before, every compaction summary asked the agent for its self-review — the list of its own mistakes that better instructions could have prevented — and the bot posted it into the topic whether or not you wanted it — the request cost tokens on every compaction, long sessions' and the idle compactions' included, and there was no way to turn it off.
|
|
49
|
+
Now:
|
|
50
|
+
- **`/compact_self_review`** is an Enable/Disable picker like `/compact_summary` (typed `on` / `off` work too). In a topic it is that topic's own choice; in **General** it is the default for all topics, which a topic's own choice still beats. **On by default**, so nothing changes until you switch it off. The `/compact_on_idle` picker shows it as a «Show self-review» / «Hide self-review» row.
|
|
51
|
+
- **Off drops the request from every compaction** — `/compact`, the idle compaction, the agent's `compact_conversation`, and the compaction the agent CLI or OpenCode makes by itself when the context overflows — so no tokens are spent on the self-review, and **nothing of it is posted**. The skills to reload and the next-steps checklist that end the summary stay. Switching takes effect at once, also in an agent that is already running, and an OpenCode sub-agent follows the topic it works for — except one that was running when you updated: it keeps its old compaction hook, which still asks for the self-review (`/compact` included) until the agent is started again (the idle stop does that within an hour).
|
|
52
|
+
|
|
53
|
+
**`runners` and `/runners` now say when the size of the project copies counts clones in full.**
|
|
54
|
+
Before, a Mac whose new copies were seeded from a sibling (clones that share disk blocks with it) showed a total that was several times what the disk held — `du` cannot see the shared blocks — and a refused submit named a clone as «41 GB to free» when removing it gives back far less.
|
|
55
|
+
Now the copies line of `runners` and of the bot's `/runners` (every language) adds «clones counted in full» whenever some copy shares blocks with another, and so does the list of the biggest copies in a disk-full refusal; the real saving shows only in the disk's free space.
|
|
56
|
+
|
|
57
|
+
**A project copy on a runner that nobody has used for a day now loses its Xcode derived data (`ios/build`), which is the biggest part of an iOS copy.**
|
|
58
|
+
Before, an iOS build left ~8.5 GB per app in the runner's copy and kept it for as long as the copy lived (3 days idle, or until the disk was short), so a Mac with a handful of copies of a React Native monorepo spent ~17 GB per copy on derived data that nothing could share.
|
|
59
|
+
Now a copy not used for 24 hours loses the derived data in its `ios/build` and its `ios/DerivedData` folders (of every app folder), and nothing else — never sources, `node_modules`, `Pods`, a copy in use, nor `ios/build/generated`, where `pod install` writes the codegen pods' sources that a build with its `pod install` skipped still needs. The next iOS job of that copy builds from scratch instead of incrementally, and says so in its log. It rides the sweep that already clears idle copies' `TMPDIR`s: after a submit at most every 6 hours, and on a short disk before a copy is removed.
|
|
60
|
+
|
|
61
|
+
**A new project copy on a runner no longer installs its dependencies from scratch when another copy of the same repository is already there: it starts from a clone of that copy's `node_modules` and iOS folders.**
|
|
62
|
+
Before, every checkout of a project (each folder or worktree you ran `remote-run` from) got a full copy of its own on the runner and ran the whole dependencies step — on a Mac with a React Native monorepo that was ~13 GB and minutes of install for each copy, nine copies being 133 GB.
|
|
63
|
+
Now:
|
|
64
|
+
- **The first job of a new copy is seeded from a sibling** — a copy of the same repository (told by its first commit, so a worktree or a checkout in a folder of another name is one, and another project or user whose folder shares a name is not) whose install finished: the one with the same install key first, then the most recently used. The folders are copy-on-write clones: on a Mac they take no disk until a file changes and a change in one copy never shows in the other; on Linux this needs a filesystem with reflinks (btrfs, XFS) — on ext4 nothing is seeded, as a plain copy would take more disk than the install.
|
|
65
|
+
- **What is carried:** every top-level `node_modules` (the root's and each workspace's) and, for an app with `ios/Pods`, its whole `ios` folder when the new copy has none (an Expo prebuild app keeps it out of git) or just its `Pods`, with `ios/build/generated` (the codegen pods' sources) either way; never Xcode's derived data in `ios/build`, `android/build`, `.cxx` or `.gradle` (their absolute paths belong to the other copy). A whole `ios` is cloned entry by entry, so the derived data is never cloned and removed again while the sibling's lock is held.
|
|
66
|
+
- **The dependencies step is skipped when the keys are equal**; with a different key it still runs, on top of what was carried, and only changes the difference.
|
|
67
|
+
- **A seed never fails a job:** a sibling a job is working in (its install may be running) or an `exec` runs in is passed over and never waited for; any failure removes the partial seed, says one line in the job's log, and the install runs as before. Only the first job of a copy is seeded.
|
|
68
|
+
- **The 3-day rule keeps the seed source for the submit that needs it:** a copy idle for days is not removed by the `prepare` of the new copy that is about to be seeded from it.
|
|
69
|
+
- **The disk upkeep knows about clones:** copies that share blocks are not taken for «the disk is not following» when their removal gives little back, and a submit that creates a new copy on a short disk removes the copy it would be seeded from last, not first.
|
|
70
|
+
|
|
71
|
+
**Every compaction now asks the agent for a self-review — which of its own mistakes, repeated ones above all, better instructions could have prevented — and the bot shows it in the topic even when the compaction summary is hidden.**
|
|
72
|
+
Before, the lessons of a long session stayed buried in the summary (which `/compact_summary` hides by default) or were lost with it: the same mistake came back in the next session because nobody had changed the rule, skill or `CLAUDE.md` / `AGENTS.md` that would have stopped it.
|
|
73
|
+
Now:
|
|
74
|
+
- **The summary gets one more section, the self-review.** The agent lists the mistakes it made in the session that a change to its standing instructions could prevent — repeated ones first — each with the concrete change and where it would go, in the language of the conversation, or says there were none. It only *proposes*: the continuing session never writes or changes instructions on its own, it waits for your word.
|
|
75
|
+
- **It is posted as its own message** («💡 Agent self-review: what to change in the instructions so the mistakes are not repeated») after `/compact`, the idle compaction, the agent's own `compact_conversation`, and the compaction the agent CLI or OpenCode runs by itself at a context overflow — with the summary hidden. With the summary shown the section is inside it under the same heading, so it does not read as more of the numbered next steps after it, and is not posted twice; the marker lines the agent writes around it are never shown (on OpenCode, whose summary is streamed, too); when there was nothing to report, nothing is posted and no heading appears. On OpenCode the agent's own words just before a compaction, and its answer right after one, are no longer taken for the summary (with the summary hidden they were dropped with it), and a summary shown no longer glues a line onto the one before it. The idle compaction's order is notice → section → a re-asked question, which stays last, on OpenCode as on Claude.
|
|
76
|
+
- The Claude `PreCompact` hook and the OpenCode compaction plugin carry the new text, so the compactions the CLI and the server start themselves ask for the section too (an OpenCode folder instance that loaded the older plugin is recreated when idle, as before).
|
|
77
|
+
- Not covered: the deprecated tmux Claude backend (its terminal runs the compaction itself; the bot never gets the summary to read).
|
|
78
|
+
|
|
79
|
+
**A runner can now run several jobs at once — you set how many in `/runners` — and the jobs do not step on each other's ports, caches or iOS simulators.**
|
|
80
|
+
Before, a runner ran one job at a time: a Mac used only as a runner ran one iOS test run while five more waited, and nothing made two jobs safe to run side by side (the fixed Metro and Detox ports, one shared cache folder, and the habitual `xcrun simctl shutdown all`, which stops every simulator on the machine).
|
|
81
|
+
Now:
|
|
82
|
+
- **Jobs at once.** Under each machine in `/runners` there is a button **Jobs at once** (1 2 3 4 6 8, with a suggestion for the machine's cores and memory), and the pairing message has a row for the new machine (1–4); `charness runners jobs-at-once <name> <n>` and `charness runners pair --jobs-at-once <n>` do the same. Every machine keeps running one job at a time until you raise it. The number is told to the machine at once when it is online; **a lower number never stops a job that runs** — it only keeps the next ones waiting. `/runners`, `charness runners ls` and `charness remote-run runners` show it.
|
|
83
|
+
- **A job that waits for its own project no longer takes a place.** A second job of a project whose earlier job is still under way is held out of the queue and let in when that one ends, so a job of another project that could run is not kept waiting behind it (with a limit of 2 you used to get 1). It shows as `queued`. A job whose Pueue task was lost (the queue is reset when a runner is removed or unpaired) is ended as killed (137) by the next `probe` or `prepare` of the runner, `wait`, `follow`, `result` or `kill` of it, or job of its project — instead of showing as «queued» for ever and holding its project. A `kill` acts on a Pueue task only after Pueue shows it is the job's own (Pueue numbers new tasks from 0 again after a reset, so an old number may now be another project's running job); when Pueue does not answer, the kill fails with «Pueue did not answer» and touches nothing — a foreground run that was interrupted says so, and the runner's lease watcher tries again every few seconds until Pueue answers, so the queued job does not start later and run unwatched.
|
|
84
|
+
- **Each project copy gets its own ports, `TMPDIR` and simulator.** Every step of a job sees `REMOTE_RUN_PORT_BASE` (100 ports it owns), `TMPDIR` (a folder of the copy alone, so one project's `expo start -c` does not wipe another's cache; the system does not sweep it, so the runner removes its files not modified for 3 days while no job of the copy runs — read-only folders left by a killed `pod install` included — and counts it in the copy's size for the disk upkeep and `runners`) and, with `--needs ios` on a paired Mac, `REMOTE_RUN_IOS_SIMULATOR_UDID`: the copy's own booted simulator, kept from job to job and shut down when the job ends, also after a kill or a timeout (a second kill or a late TERM no longer cuts that shutdown off); the simulator's id is given even to a job that got no port block. `exec` gets none. A job's own `-e TMPDIR=…` still wins; the ports and the simulator can not be overridden.
|
|
85
|
+
- **`xcrun simctl shutdown|erase|delete all` and `simctl <command> booted` can no longer reach other jobs' simulators.** On a paired Mac the runner puts an `xcrun` guard first on every job's `PATH`: those commands — `booted` names whichever device is up, with two jobs maybe the other one's — run on the job's own simulator only (`shutdown|erase|delete` do nothing, with a line saying why, when the job has none). It is a guard against the habit, not a wall: `/usr/bin/xcrun`, `killall Simulator` and `killall com.apple.CoreSimulator.CoreSimulatorService` still pass, and a runner's agents are told to stop what they started by its pid. The bot's agent instructions, `charness remote-run --help` and [docs/remote-run.md](docs/remote-run.md#jobs-beside-each-other) say all of this.
|
|
86
|
+
- A paired runner now tells Pueue its limit (1 when never set) at every job: a limit you set by hand with `pueue parallel` on a paired runner is replaced by the runner's number in `/runners`.
|
|
87
|
+
- Killing a job that is shutting its simulator down waits for the shutdown (up to about 70 s) instead of cutting it off, so `remote-run kill` may take that long on an iOS job; the call waits for it. A Pueue `Stashed` task is read as queued, not unknown.
|
|
88
|
+
|
|
89
|
+
**A hub whose cache folder path is too long for ssh's control socket no longer fails every ssh call to a runner.**
|
|
90
|
+
Before, `remote-run` kept its ssh control sockets in `<cache>/ssh/<40-character hash>` and allowed that path up to 100 characters, but ssh first binds the master's socket as that path plus a dot and 16 random characters, and a bind that does not fit ends the call with 255 before the command runs: on a Mac a cache folder of 46–59 bytes (the default `~/.cache/charness/remote-run/ssh` with a user name of 8 characters or more), on Linux one of 50–59 bytes (a user name of 13 characters or more), or a test's temporary folder, ended every call with ssh's 255 (read as a lost connection), and the runner link flows timed out without naming the cause.
|
|
91
|
+
Now the temporary name is counted, in bytes (a non-ASCII cache path is longer than it looks): the longest `<cache>/ssh` is 45 bytes on macOS (`sun_path` is 104 bytes) and 49 on Linux (108), and a longer folder turns the shared connection off — every call opens its own — instead of failing.
|
|
92
|
+
|
|
93
|
+
**Pairing a runner now posts ONE line, with the words that say which word of it to change — and the same line pairs the runner account when that account runs it itself, without `sudo`.**
|
|
94
|
+
Before, `/runners` → + Pair a new runner (and `charness runners pair`) posted two huge lines: the `sudo` line for an admin account and a second, plain line for the runner account itself, each with its own text; the second message was deleted when the code was used.
|
|
95
|
+
Now:
|
|
96
|
+
- One message: the `sudo` line under a short explanation — that it runs code from this charness host as root on that machine, that its last word is the account the runner and the agents' code run as (an existing standard, non-admin account, not your main one — change it if needed) and that, without admin rights, you run the same line in that account's own terminal without the leading `sudo`. The message is in all twelve languages and `charness runners pair` says the same in words. It turns into «paired» / «expired» as before; there is no second message to delete.
|
|
97
|
+
- Run without `sudo`, the line pairs only the account it runs as: it uses a private copy in that account's own temporary folder, gives the runner its own Node.js in `~/.charness-runner/node`, installs no service and prints how to keep it running — what the old plain line did. Its last word must be that account's name: run from another account it stops before downloading anything with «you are not runner: run the line as runner or with sudo», so a main account with a leftover `runner` at the end is never paired by mistake.
|
|
98
|
+
- A message of the older kind that is still open when this version starts is followed and settled all the same.
|
|
99
|
+
- The line is about a fifth shorter than before and no longer carries the pairing code (which holds the connection values and the temporary key) a second time: the shell puts the code together from the values the line already holds once. So the message fits one Telegram message for every ssh host key type of the charness host (ed25519, ECDSA and RSA up to 3072 bits at any host name and hub account, RSA 4096 at ordinary ones) — a hub without an ed25519 host key, or with a long address, no longer fails with «the message could not be sent». A line that still cannot fit (an RSA host key of 4096 bits with a long host name or hub account, or any RSA host key larger than 4096 bits) is not sent: its code is closed at once and the bot answers with the length and `charness runners pair --host <address>`, which prints the same line in a terminal; a message Telegram refuses closes its code too, instead of leaving a credential open for ten minutes.
|
|
100
|
+
- Run without `sudo`, the name of the account is no longer limited to letters, digits and `.` `_` `-`: an account a directory service names `user@realm` pairs itself, as it did with the old plain line. Only the `sudo` way, where the name goes to `id`, `sudo -u` and the root step, keeps that limit.
|
|
101
|
+
|
|
102
|
+
**Pairing a runner with the `sudo` line no longer stops at «npm ci failed: env: 'node': No such file or directory» on a machine that has no Node.js of its own.**
|
|
103
|
+
Before, the line downloaded the package and found the runner's Node.js, then failed at «installing the runner program (npm)»: npm is a `#!/usr/bin/env node` script, and the PATH of the account the line works as (what `sudo -u` hands it) holds no `node` — the runner's Node lives in its own folder, on nobody's PATH. The same would have stopped the plain line on a machine with no Node, and the update of a running always-on runner (a systemd user service starts with the manager's default PATH).
|
|
104
|
+
Now the install of the runner program starts npm with the folder of the Node that runs the utility first on its PATH, whatever PATH it was started in; the Corepack step of the link already did the same and shares the one helper.
|
|
105
|
+
|
|
106
|
+
**An agent starting a worker now follows your `/limits` list: the accounts in it are the ones it uses — an API-credit account first, the subscriptions after it — and the ones not in it are never offered.**
|
|
107
|
+
Before, `claude_profiles` (and `charness claude-profiles`) never pointed a new worker at an account billed to API credits, so the bonus credit sat unused while the subscriptions burned, and it ignored which accounts you had put into `/limits_autoswitch` (only an account whose every entry was switched off was skipped).
|
|
108
|
+
Now:
|
|
109
|
+
- Once your `/limits_autoswitch` list holds any Claude account, a worker is only pointed at an account with an enabled entry there — a new one and a resumed one alike; an account the list leaves out, or has only 🚫 entries for, is shown as not offered with the reason (`chainExclusion`, and the first line of the answer), and a worker already on it moves on at its next resume. A list with no Claude entry (empty, or OpenCode only) changes nothing for subscriptions.
|
|
110
|
+
- An API-credit account in the list goes FIRST, while it is signed in, not limited and its credit is not marked used up; then the subscriptions as before (soonest weekly reset, five-hour window under 90 %). The list's order only ranks several API accounts among themselves. A list drafted by «🔄 Fill from connected» still leaves the API account out (🚫) — «✅ Use» on its entry is what opens it.
|
|
111
|
+
- A worker stopped on an API-credit account — by «Credit balance is too low» or any other limit — is reported like a usage limit (`currentProfile` + `isStoppedByLimit`), and the bot checks before it believes it: one tiny request on the account's own key marks the credit used up only if the API really refuses for the balance (the daily recheck lifts that mark when the credit is back). If the API answers instead, the key cannot be read or the check gives no answer, the account is only kept off workers for an hour — topics keep using it, the report changes nothing for them — and, when the API answers an account whose credit renewal was still awaited, the renewal is recorded. The next pick goes to the subscriptions (soonest weekly reset), and when none is usable `nextAvailable` names the end of that hour.
|
|
112
|
+
- An API-credit account whose credit has run out by the expiry day you gave (`charness claude-profiles credit … --expires`) is no longer put first.
|
|
113
|
+
- Signing in an account (a subscription login, or an API account's login or pasted key) that is not in a `/limits_autoswitch` list which already names Claude accounts now says so and tells you to add it there — workers and topics are only pointed at the accounts in the list.
|
|
114
|
+
- The shipped manager and delegate skills no longer say «never launch on an account billed to API credits unless the user asked»: they take what `claude_profiles` recommends.
|
|
115
|
+
|
|
116
|
+
**A runner machine no longer needs Node.js: pairing installs the runner its own, so the admin line works on a machine with no shared Node — and every runner now runs its jobs on that Node.**
|
|
117
|
+
Before, the admin line stopped with «no Node.js 22.12+ outside home folders that runner cannot write: install one system-wide…» on a Linux machine whose runner account had no system-wide Node, and a runner that did run on a system or Homebrew Node saw `corepack enable`, `npm i -g` and the installers of package managers fail with permission errors the moment they wrote into that Node's folder.
|
|
118
|
+
Now:
|
|
119
|
+
- Both pairing lines install the runner's own Node.js themselves: the newest LTS release from 22.12 up to 24 (the last line that ships Corepack; Node.js 25 and later do not) for the machine's system and processor, read from nodejs.org's list; its SHA-256 is checked against the release's `SHASUMS256.txt` before a byte is unpacked, and it is downloaded with `curl` or `wget` (a total time limit on each; a clear line when neither is there, nothing matches or there is no network). Only x86-64 and ARM64, macOS and Linux with glibc can be runners — an Alpine (musl) machine cannot, because every runner runs on nodejs.org's build. The admin line puts it in `/usr/local/lib/charness-runner/node/v<version>` — owned by root, which the account can run but not write, because root runs that Node and the agents' code must never be able to change it; that folder is judged before root writes anything into it and again before root runs any Node of it —, the plain line in `~/.charness-runner/node`. It says «installing Node.js v… for the runner into …» while it works, a second pairing reuses what is there (and works offline when something is), and a newer release lands next to the older one.
|
|
120
|
+
- **What changes for a runner that already exists: its jobs now run the runner's own Node.** A runner paired on a system or Homebrew Node moves to its own once its link is up, with nobody doing anything: the account downloads the same verified build into `~/.charness-runner/node` (root is not there at a self-update, so that copy is the account's own; root only ever runs the one the admin line installed) and rewrites its launcher. From then on a job's `node` and `npm` are that Node's — a Homebrew Node 25 becomes Node 24, the newest LTS that has Corepack —, the global tools a job installs go into `~/.charness-runner/npm` (a CLI that was installed globally into the old Node, an nvm one for instance, is not found any more: install it again), and `NPM_CONFIG_PREFIX` is set for a job, which nvm refuses to run with. The runner's log names the Node it leaves, with its path and version. To keep jobs on the old Node, put a `PATH=` line into `~/.charness-runner/env` (the old Node's folder first), and `NPM_CONFIG_PREFIX=` (empty: the variable is then removed) there for nvm — see «A runner's Node» in `docs/remote-run.md`.
|
|
121
|
+
- The move is made in the background: the runner is on the hub while it downloads, and its link leaves for the launcher's new start only when nothing is under way — no command over the link, no update of the program being installed, no Pueue task running or queued (a job keeps the `PATH` it was queued with; a Pueue that does not answer in time counts as busy) — and a service manager then starts the launcher again by itself; started from a terminal, start `charness-runner run` again. A failed attempt (no network, a full disk, a download that does not run here) is written down and is not repeated at every start: the next one is made 24 hours after the failure, or after the next update of the program, and the log says so. A Pueue task that only waits for a person — paused, locked, or queued in a paused group (Pueue pauses a group that still had queued tasks when its daemon restarted) — is waited for at most a day IN ALL — counted from when the restart was asked for, not from when the task became stuck —; then the link leaves without it, and the log names the task.
|
|
122
|
+
- Everything that decides whether a job would be cut now takes a Pueue that does not answer in time for BUSY, never for «no daemon»: the restart for a new Node, the removal of old versions, the replacement of the always-on service by `service install`, and the replacement of the login session's agent on a Mac (which could cut an Xcode step that runs through it). Only a pueue client that says there is no daemon counts as none. The refusal of `service install` for a Pueue that did not answer gives the reason and says to let the jobs finish — never to stop the daemon, which would cut the build that kept it from answering; «stop it by hand» is left to an answer that came back and cannot be read.
|
|
123
|
+
- A runner on its own Node looks for a newer release of the same line when its link starts and then daily, and moves up to it the same way, so it gets security fixes (a new major is never taken: it would change what every job runs); the folder of a version it has left is removed a week after it stopped being the runner's Node (the moment is recorded), and only while Pueue has no unfinished task (the log names a stuck one) — a job that was queued, or runs for hours, still finds its `node` there —, and so is what an install that was killed left. The Node an admin line installed (root-owned) is refreshed only by the next admin line.
|
|
124
|
+
- What a job installs goes into the account's own folders, never into the Node's: `npm i -g` into `~/.charness-runner/npm` (its `bin` is on a job's `PATH`, after `~/.charness-runner/bin`, and a `yarn` installed there never replaces Corepack's shim, which follows each project's `packageManager`), the package managers Corepack downloads into `~/.charness-runner/corepack`, and a bare `corepack enable` — what a project's install step runs — is turned into one for `~/.charness-runner/bin`. The operator's `~/.charness-runner/env` can change any of them.
|
|
125
|
+
|
|
126
|
+
**A runner no longer fills its disk with the project copies of finished tasks: it removes the unused ones itself, and a job that would not fit is refused up front instead of failing in the middle of a build.**
|
|
127
|
+
Before, every task of a project left its own copy on the runner (16–41 GB each when it holds an iOS build), a copy was removed only after 30 days without use, and nothing looked at the free space — a Mac runner with 16 such copies had 10 GB of 460 free, and the first sign was «No space left on device» in someone else's build.
|
|
128
|
+
Now:
|
|
129
|
+
- A project copy unused for 3 days is removed (`copyMaxIdleDays` in the runner's config), and while the work disk has less free space than the runner keeps — the smaller of 60 GB and 15 % of the disk (`minFreeGb`; `0` turns it off) — the least recently used copies are removed, one by one, until it has. Never a copy whose project lock is held by a live job, a copy an `exec` is running in, a copy with a queued, running or just-submitted job (a long first upload counts), a copy whose job ended within the last hour (its results are about to be fetched), or the copy of the job being submitted; a copy that turns out to be in use at the very moment it is moved aside is put back; folders CocoaPods leaves read-only no longer stop a removal. A submit prints one line per removed copy (what it freed and why), says before it starts when it has to make room first, and says plainly when that took longer than 15 minutes (the runner carries on as far as it can, and the next submit continues where it stopped). `runners` and the bot's `/runners` start the same prune in the background when the disk is short — the probe a run or an `exec` makes first never does, so the project about to be used is not taken before its own submit arrives; a second prune waits for the one at work (up to 10 minutes) while its own disk is short, and does not wait when it is fine.
|
|
130
|
+
- On a Mac whose disk does not give the space back (APFS local snapshots, purgeable space) the runner stops after two removals in a row that freed next to nothing (copies too small to tell, or never measured, between them are not counted), instead of emptying itself, and says so. A pid the runner wrote down — a job's, a project lock's, an `exec` marker's, a half-removed copy's — that a crash and a reboot left naming some daemon no longer keeps a copy in use, a project's queue behind a lock nobody holds or a job «running» for good, and `kill` no longer signals a stranger's process group; the runner counts a pid as its own only while its command line is the runner script's.
|
|
131
|
+
- If the disk is still short after that, the submit fails at once (exit 125): «runner mac: only 8 GB free on the work disk, the runner needs 60 GB; biggest project copies: …».
|
|
132
|
+
- `charness remote-run clean [<slug>]` removes a project's copy from every runner and says what each freed: the copy of the project you run it in, or the one named (the name that message gives). A copy belongs to a project folder, shared by every task run from it, so it is for when the last task of the folder is closed. It refuses (exit 125, the copy untouched) while a job of it runs or waits, an `exec` runs in it, a job is being submitted, or a job ended under an hour ago whose results nobody has fetched (`wait`, `fetch` and a foreground run count as fetching), naming the job; a leftover of a removal that ran out of time is finished by the next clean; a runner that cannot be reached, or drops during the removal, is said so without failing the command. Agents are told to run it when the last task of a folder is closed — the bot's remote-run instruction and the manager skill say so (the manager before it removes the folder or worktree), and not to delete other tasks' copies by hand.
|
|
133
|
+
- A project can ask the runner to give the build output back itself: `clean-after-success: ios/build/Intermediates.noindex` in its `.remote-run` removes the named paths from the runner's copy after a job that ended with exit 0 (not after a failure, a time limit or a kill; after the `pull:` files were collected; read-only folders and links handled safely; the paths stay inside the copy; `.git`, `node_modules` and `Pods` are never entered — a pattern with one in its path is refused, and a folder a pattern names that holds a `node_modules` or `Pods` below it, like `ios` over `ios/Pods` or `packages/*` over per-package dependencies, is kept whole while the other patterns still apply inside it; a `.git` a build tool checked out below a named folder, like Xcode's Swift packages, goes with it). The job's result is recorded before the removal starts, so a `kill` or a `wait` is not held up by it; the project's lock is held until the removal is over, so the next job waits for it, and the report of the removal (how many paths went, `removed 0 paths` included, and which were kept) is in the job's log. It is off unless the project asks.
|
|
134
|
+
- A Mac runner whose iOS works forgets the simulators of runtimes that are gone: a `runners` / `/runners` view starts `xcrun simctl delete unavailable` there in the background, at most once in 24 hours (120 s at most, never delayed for a run or an `exec`), and only after `simctl` has shown a runtime in that very session — a session that sees none would call every simulator «unavailable». It runs only on a Mac whose runner is not an always-on service: there the iOS work goes through the login session's agent and the cleanup would not, so it stays off until it can. Nothing else is deleted — no erase, no runtime, no device of an installed runtime; the simulators of an older runtime than the newest of the same major are only listed under the runner, with their device count.
|
|
135
|
+
- `charness remote-run runners` and the bot's `/runners` show how many project copies a runner keeps and what they take (and `LOW` next to a disk under its target). The sizes are measured in the background, and a copy again only after it was used.
|
|
136
|
+
|
|
137
|
+
**`/accounts` and `/limits` now show how much an API account has spent of its Anthropic bonus credit, say when it is probably used up, notice by itself when it comes back — and an agent choosing an account sees the same.**
|
|
138
|
+
Before, the only number the bot had for an account billed to API credits was a running total (the «💳» line); how much of the monthly credit that comes with Max, Ultra and Team was left is shown only on the Console's Billing page, which no credential the bot has can read. The credit ran out unseen, in the middle of a task, the first sign was a refused request — and after it ran out nothing told the bot, or you, when the new month's credit arrived, so the account stayed out of use.
|
|
139
|
+
Now:
|
|
140
|
+
- Under every API account that has spent something, `/accounts` and `/limits` keep the «💳 $6.51 spent since 07.11 · last turn $0.21» line — counted since the account's first turn — and add «🎁 API credit …» once the credit has a period of its own: your figure or a renewal (below), or a refusal. «via the bot» is meant: a spend by another key or machine is invisible to it.
|
|
141
|
+
- Tell the bot what the Console's Billing page shows — `charness claude-profiles credit <profile> <remainingUsd> [--of <grantUsd>] [--expires YYYY-MM-DD]` (`credit console 67.71 --of 200 --expires 2026-11-15`; `credit <profile> --clear` forgets it; mistyped amounts, a remainder above the grant and days that do not exist or are over are refused with the reason; it works while the bot runs) — and the line adds the estimate: «🎁 API credit ≈ $61.20 of $200.00 · $6.51 spent via the bot since 07.11 · expires 15.11». A new figure starts the count over; past the expiry day it reads «expired … give the new figure: charness claude-profiles credit console <left>».
|
|
142
|
+
- A refusal («Credit balance is too low») turns it into «🎁 API credit probably used up · $6.51 spent since 07.11 — top it up, then pick the account again» (just «probably used up — …» when the «💳» line above already carries the spend; the tail is what the old «💸 used up» line told) — «probably»: the bot cannot be sure. A figure you give after a refusal ends the mark (you are saying there is money), so one row never says «≈ $30 left» and «used up» together. Picking the account again — the step the refusal notice itself asks for — lets it work at once, but the bot keeps the refusal as «unconfirmed» («🎁 API credit: refused 07.11 — the next turn that goes through shows it is back»), so that first turn that goes through is still recorded as the renewal and the spend counter still starts over.
|
|
143
|
+
- Once a day, while an API account is marked used up, the bot asks the API once on that account's own key — one token, the cheapest model, a short timeout, no retry. Refused for the balance: still used up. Any other failure: no conclusion, one log line. An answer — or a real turn that goes through — means the credit is back: the spend counter starts at 0 from that moment, on the last grant you gave (never one derived from the plan: team grants are pooled), the expiry left to the Console — «🎁 API credit renewed ≈ 08.11 · ≈ $200.00 of $200.00 · $0.00 spent via the bot · check expiry in Console › Billing», and only «renewed ≈ 08.11 · $0.00 spent since» if you never gave a grant. Only API accounts are asked, never a subscription — those whose key the bot can read (the pasted key, a Console login's key, the `default` profile's `primaryApiKey` in the home `.claude.json`, only while its sessions run on that Console login's key and not on an `apiKeyHelper`; one boot log line names an API account it cannot read a key for); a refusal that comes in while the request is on its way — also one you already acted on by picking the account — wins over its answer; if the API stops knowing the probe's model the bot logs a warning naming it; the attempt is recorded before the request, so a restart never brings it round sooner than a day.
|
|
144
|
+
- The `claude_profiles` tool and `charness claude-profiles` carry the same for an API account: `spentUsd`, `remainingEstimateUsd`, `expiresOn`, `probablyUsedUp` (read from the refusal, also past an expiry day you gave), `renewedAt` — the bot's estimate, never the Console's balance.
|
|
145
|
+
- Your figure is kept in `DATA_DIR/claudeApiCredit.json`, not in `state.json`: a running bot rewrites `state.json` from its memory, so a figure written there from the command line would be lost at its next save. Give it while the account is idle: a turn that runs while you give it, or one replayed after downtime, is counted in full.
|
|
146
|
+
|
|
147
|
+
## 3.11.0 — 2026-11-07
|
|
148
|
+
|
|
149
|
+
**An agent's call of `claude_profiles` (which account a worker should run on) now answers within 10 seconds from the last figures instead of hanging when the bot's usage refresh is stuck.**
|
|
150
|
+
Before, the tool waited for the usage refresh without any limit, and every caller of that refresh (the 10-minute timer, `/limits`, `/accounts`, the tool, and the switch a topic makes when it hits a usage limit) shares the one poll in flight — so a poll that never finished held them all. On 6 November every call of the tool, from several topics, sat silent for 300 s until the agent's own client gave up, and so it went for nine hours; nothing else showed the stall, because `/limits` waits for the refresh only two seconds — `/accounts` and the account switch after a usage limit would have hung with it.
|
|
151
|
+
Now:
|
|
152
|
+
- The tool waits for fresh figures for at most 10 seconds and then answers from what is stored; each profile in the answer says when its figures were read, and the refresh goes on in the background.
|
|
153
|
+
- `/accounts` and the switch to another account after a usage limit wait for the refresh two seconds at most, like `/limits`, and carry on with the stored figures.
|
|
154
|
+
- A usage poll that does not finish in 30 seconds is given up on: its request is cancelled, the account's figures (and the OpenCode providers') are marked stale — the last figures stay and the answer says they are stale —, and it is not started a second time while it is pending, so a stuck endpoint cannot pile up requests, nor can a poll that ends late overwrite a newer reading. A poll still pending after 10 minutes is polled afresh (one log line says so), so an account whose poll never ends does not stay stale until the bot restarts; a reading that arrived meanwhile from a running session is not marked stale.
|
|
155
|
+
- The log names what happened: «[usage] <account>: usage poll did not finish within 30 s …» and, when the stuck poll finally ends, how long it took and how («the abandoned usage poll finished after 45.0 s …»); a poll that fails is logged whenever it fails, not only inside the 30 seconds.
|
|
156
|
+
|
|
157
|
+
**A message you forward into a topic now reaches the agent marked as forwarded — from whom and when it was originally sent — instead of passing for your own words.**
|
|
158
|
+
Before, the agent got only the text of a forwarded message: two bot alerts you forwarded as examples were read as your own report, and nothing told it they came from somewhere else.
|
|
159
|
+
Now:
|
|
160
|
+
- A forwarded text, a caption, a voice note (its transcript) and a file or an album lead with one line — «[Forwarded message · from: channel "Ops Alerts" · originally sent: 2026-11-06T14:20:00+04:00]». It names the origin (a user with their @username, a hidden user, a chat or a channel, with the post's signature when it has one) and the original send time on your `/timezone` clock. The origin's name is quoted and cleaned of brackets and control characters, so a channel titled to look like an instruction cannot close the line and speak outside it.
|
|
161
|
+
- Each forwarded message is marked on its own: several forwards followed by your own words reach the agent as separate messages, every forward with its own origin and only your words unmarked. A forward that is also a reply carries the reply quote and the mark. A message typed into a terminal topic reaches the shell as before, unmarked.
|
|
162
|
+
- A forwarded message is content, never an order: a forwarded `/quit` runs no command and stops nothing, a forwarded `/review the diff` reaches the agent marked instead of as a slash command of your own, a forwarded «1» answers no pending question and picks no option, and a forwarded «claude» starts no agent. The agent reads each of them marked.
|
|
163
|
+
- A reply to a message you forwarded earlier names who first wrote it — «[Replying to an earlier message · from: user, forwarded from channel "Ops Alerts"]» — so the forwarded words do not pass for yours one step later.
|
|
164
|
+
- A forwarded message (or a reply) that waits for the agent — behind a usage-limit wait, a restart, a failed post — is posted again with its mark and its quote: the request keeps the prompt as it was posted, not the bare text.
|
|
165
|
+
- A scheduled run held over a usage-limit wait rides after the message that ends the wait, under a line of its own («[Held over the usage-limit wait — not part of the message above]»), and no longer sits under that message's reply quote or forwarded mark as if it were part of it.
|
|
166
|
+
|
|
167
|
+
**A scheduled run and a check alert no longer pin themselves into the topic, and the alert says what happened in a sentence instead of printing a command line.**
|
|
168
|
+
Before, every fired schedule and every check alert was pinned (the pins piled up as run history), and a check alert printed the shell command, its exit code and the raw output — «🚨 Check "watch builder S2" failed: exit 1 (every 5m) $ kill -0 4242 2>/dev/null || { echo "worker 4242 exited"; exit 1; }; …» — which says neither what happened nor why.
|
|
169
|
+
Now:
|
|
170
|
+
- A scheduled run is announced by one silent line — «⏰ Scheduled: Nightly build · every day at 02:00», with the catch-up note when it fires late — and the prompt it carries is folded under it in an expandable quotation (the instruction to the agent is there when you want it, out of the way when you do not). Nothing is pinned: pins stay for the agent's questions and for `/reminders`, which are meant to ring through a muted topic.
|
|
171
|
+
- The schedule in that line is said in your language and never as a cron expression: a fixed step reads «every 5 min», and a shape no wording fits (twice a day, weekday office hours) shows its next run, «next: 2026-06-07 18:00» — and «the last run» on the final run of an N-times schedule, which has no next one. If Telegram ever refuses a message's markup (this one, an agent's formatted output — new messages and edits alike —, its status, thinking and sub-agent frames, a pairing message), the same words arrive as plain text instead of with the tags showing.
|
|
172
|
+
- A check's first failure is one silent sentence, never the command: «🔔 Check "API health" fired — waking the agent.» with the failure and the tail of the output folded under it. A watch on a worker says «✅ Worker "builder S2" finished (2 h 5 min). Reading the result.» when the worker is gone, or «⚠️ Worker "builder S2" has been silent for 45 min. Checking whether it hung.» when its run directory went quiet. When the check passes again: «✅ Check "API health" is back to normal.», or «✅ Worker "builder S2" is working again.» for a worker watch. The agent still gets the command, the exit code and the output in its prompt.
|
|
173
|
+
- Alert pins left by earlier versions are unpinned by themselves at the check's next run (or when it is cancelled), so nothing stays pinned for good; a pin Telegram did not answer for is tried again at the run after. Pins of old scheduled-run announcements were never tracked and stay until you unpin them.
|
|
174
|
+
- The agent's confirmation of a new schedule, which a topic shows as a tool result, is one line — `Scheduled "Nightly build": daily at 02:00; next: 2026-06-07 02:00` — plus the id it cancels by, so a schedule read in the wrong timezone shows at once. `isPinSilent` of `schedule_create` is still accepted and does nothing.
|
|
175
|
+
|
|
5
176
|
## 3.10.0 — 2026-11-06
|
|
6
177
|
|
|
7
178
|
**A MacBook runner with its lid closed no longer gets a new job that dies when the Mac sleeps — it waits like an offline runner, and `runners` says «lid closed».**
|
package/DEVELOPMENT.md
CHANGED
|
@@ -169,7 +169,7 @@ The paired-runner flows (`runnerLinkE2e.test.ts`, `remoteRunPairedE2e.test.ts`,
|
|
|
169
169
|
host» (its `AuthorizedKeysFile` pointed at a temp `.ssh`) and `charness-runner` in a temp `HOME`, so they never touch the real `~/.ssh`;
|
|
170
170
|
`runnerServiceTakeoverE2e.test.ts` needs only real Pueue (the service manager is a recording stand-in). `runnerAdminLineE2e.test.ts` (the admin pairing line) also needs
|
|
171
171
|
`fakeroot`: root, a second account and the service manager are stand-ins in `runnerAdminLineE2e/` (`sudo` runs the line under `fakeroot`, `sudo -u <account> -H` hands a
|
|
172
|
-
command to the real user with the stand-in account's `HOME`, and plants a trap in the account's launcher that fails the flow if root ever starts it); everything else — the line's own `sh`, the download, the pairing, the root step, the service install — is real. Same tools, same local skip and CI failure.
|
|
172
|
+
command to the real user with the stand-in account's `HOME`, and plants a trap in the account's launcher that fails the flow if root ever starts it); everything else — the line's own `sh`, the download, the pairing, the install of the runner program (a stand-in `npm` that is a `#!/usr/bin/env node` script, run for real on a PATH without Node), the root step, the service install — is real. Same tools, same local skip and CI failure.
|
|
173
173
|
|
|
174
174
|
Node applies `--test-timeout` to a whole test FILE (a `describe`'s own `timeout` cannot extend it), so a file that
|
|
175
175
|
hangs or leaves a process alive fails by name when its limit passes, instead of hanging the run. A long-running
|
|
@@ -184,8 +184,8 @@ below the 10 s floor of `jira.json`, `requestTurnPollMs` — the wake-up engine'
|
|
|
184
184
|
`requestSweepIntervalMs` and `requestFirstPostRetryDelayMs` — the wake-up engine's minutes, `limitProbeDelayMs` — the two-minute probe of an unconfirmed usage limit, `stateSaveDebounceMs` — `state.json`'s
|
|
185
185
|
500 ms save debounce, `openCodeServerUpBudgetMs` — the OpenCode server's 60 s of retries, `backgroundHoldMaxMs` — the 6 h the
|
|
186
186
|
agent's own pending work holds a json-stream process, `todoReminderPollMs` and `todoReminderIntervalMs` — the todo
|
|
187
|
-
reminder's 10 s poll and the interval `settings.json` sets, `scheduleMinFireIntervalMs` — the 5 min minimum between cron fires, `checkStatusIntervalMs` — the 15 min gap between a passing check's status lines, `bindPickerClaimLimit` — how many `/bind` picker claims are kept (a count: 200), `remoteRunLeaseMs` and `
|
|
188
|
-
hot supervisor's 30 s check of its `tsc -w` and the minute a source may stay newer than its output; the supervisor reads these last two, the remote-run CLI the
|
|
187
|
+
reminder's 10 s poll and the interval `settings.json` sets, `creditRecheckIntervalMs` and `creditRecheckPollMs` — the 24 h between two rechecks of a used-up API credit and the 30 min poll that finds one due, `scheduleMinFireIntervalMs` — the 5 min minimum between cron fires, `checkStatusIntervalMs` — the 15 min gap between a passing check's status lines, `bindPickerClaimLimit` — how many `/bind` picker claims are kept (a count: 200), `remoteRunLeaseMs`, `remoteRunRunnerPollMs` and `remoteRunProbeDeadlineMs` — the 45 s heartbeat lease, the 10 s poll of the wait for a paired runner and the 20 s deadline of the probe of the runners in `charness remote-run`, `tscWatchCheckIntervalMs` and `tscWatchStaleGraceMs` — the
|
|
188
|
+
hot supervisor's 30 s check of its `tsc -w` and the minute a source may stay newer than its output; the supervisor reads these last two, the remote-run CLI the three before them (the bot's `/runners` probe reads `remoteRunProbeDeadlineMs` too), the bot the rest).
|
|
189
189
|
It is the ONE test-only timing seam,
|
|
190
190
|
never a setting: unset, every window is the production one; a value may only shorten its window (each key is capped at its
|
|
191
191
|
production value); set, the boot prints `[test-timings] … overrides active`, and
|
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ One topic is one AI pipeline: its own project folder, its own agent, its own sch
|
|
|
32
32
|
- **Video production** — scripts, cuts, subtitles and renders on a server with the tools installed; the agent sends the finished clips back into the topic.
|
|
33
33
|
- **Images** — with an image tool or model connected (an MCP server or a CLI on the server), the agent generates pictures and sends them into the topic.
|
|
34
34
|
- **Email and messengers** — with a mail or messenger tool connected (an MCP server), the agent answers an email or sends a message for you; ask it by voice, check the result in the topic.
|
|
35
|
-
- **Monitoring and on-call** — a scheduled check runs a command (a service, a deploy, a disk, a URL), stays silent while it passes, and on the first failure
|
|
35
|
+
- **Monitoring and on-call** — a scheduled check runs a command (a service, a deploy, a disk, a URL), stays silent while it passes, and on the first failure tells the topic in one line and wakes the agent with the output.
|
|
36
36
|
- **Personal assistant and planning** — reminders and recurring tasks: a morning plan, a weekly review, a "finish this tomorrow at 9" hand-off, all by voice from your phone.
|
|
37
37
|
- **Data analysis and reports** — drop a spreadsheet or a CSV into the topic; the agent analyses it and sends back charts and a report, and a cron job rebuilds the report every week.
|
|
38
38
|
- **Translation and localization** — an agent keeps a project's locale files in sync: translates new strings and checks the existing ones.
|
|
@@ -96,7 +96,7 @@ The same core serves every surface; each feature links to the commands that driv
|
|
|
96
96
|
| Updates itself | Checks for a new version hourly, installs it when no agent is working, restarts in place (agents keep running) and says in General what changed; npm installs and git checkouts, hot mode and Docker included | [`/update`](docs/commands.md#update), [Updating](SETUP.md#updating) |
|
|
97
97
|
| Restart-safe | Agents run as external processes (tmux, `opencode serve`) that the bot re-adopts after a restart instead of killing them; a prompt sent while a session boots is buffered and replayed | [Restart behaviour](docs/backends.md#restart-behaviour) |
|
|
98
98
|
| Shared todo lists | Every agent publishes a short stand-up list of what it is working on (in work, the queue, done), and the agents of one repository see each other's lists with every prompt, so two of them never fix the same thing unknowingly | [`/todo`](docs/commands.md#todo) |
|
|
99
|
-
| Compaction | Compact an agent's context by hand, after ~55 min idle, or by the agent's own request | [`/compact`](docs/commands.md#compact), [`/compact_on_idle`](docs/commands.md#compact_on_idle), [`/compact_summary`](docs/commands.md#compact_summary) |
|
|
99
|
+
| Compaction | Compact an agent's context by hand, after ~55 min idle, or by the agent's own request | [`/compact`](docs/commands.md#compact), [`/compact_on_idle`](docs/commands.md#compact_on_idle), [`/compact_summary`](docs/commands.md#compact_summary), [`/compact_self_review`](docs/commands.md#compact_self_review) |
|
|
100
100
|
| Tools and skills for agents | Every session the bot starts gets the bot's own MCP tools (schedule, todo, send files) and the manager / delegate skills | [Bot-injected agent tools](docs/backends.md#bot-injected-agent-tools), [`/bot_skills`](docs/commands.md#bot_skills) |
|
|
101
101
|
| Runners for heavy commands | Agents send a test suite, a build or an emulator run to another machine: `charness remote-run` syncs the project, runs the command there and brings back the output, the exit code and the result files you declare, and `remote-run runners` shows every machine's CPU, memory, disk, load and what it can do (Android, iOS, Docker, Playwright). Attach a machine by pasting one line from `/runners` on it — no VPN, no open port, no root on this machine; a machine you reach by plain ssh works too | [`/runners`](docs/commands.md#runners), [docs/remote-run.md](docs/remote-run.md), [SETUP.md](SETUP.md#runners-for-heavy-commands-remote-run) |
|
|
102
102
|
| Jira | An issue is a conversation: assign a ticket to the agent's user and it works it; a cap on how many issues work at once | [Jira setup](SETUP.md#jira-setup), [`/task_agents`](docs/commands.md#task_agents) |
|
|
@@ -122,6 +122,7 @@ Think **OpenClaw for vibe coding**, driven entirely from Telegram: no complex se
|
|
|
122
122
|
| Display verbosity and view | Per topic: detail `minimal\|short\|full`, and what the topic shows — `stream` (default), `stream_answers` or `answers` (only the agent's pinned answers, no stream) | [`/verbosity`](docs/commands.md#verbosity), [`/thinking`](docs/commands.md#thinking), [`/tool_results`](docs/commands.md#tool_results), [`/subagent`](docs/commands.md#subagent) |
|
|
123
123
|
| Time-aware prompts | `/timestamps on` prepends each forwarded prompt's send time (local-offset ISO), so a days-long session knows what "yesterday" or "2 days ago" means; agent-facing only, per topic | [`/timestamps`](docs/commands.md#timestamps) |
|
|
124
124
|
| Reply context | Reply to a message in a topic and the quoted text is folded into the prompt the agent receives, so it sees what you point at without re-pasting; works for text, voice and files, both agents | [Reply context](docs/commands.md#reply-context) |
|
|
125
|
+
| Forwarded messages | Forward a message into a topic and the agent is told it is forwarded, from whom and when it was originally sent — so a forwarded alert or quote is never read as your own words; works for text, voice and files, both agents | [Forwarded messages](docs/commands.md#forwarded-messages) |
|
|
125
126
|
| Your timezone | `/timezone Europe/Moscow` once, and schedules fire at your wall-clock time while the agent is told what time it actually is; no server-clock guessing | [`/timezone`](docs/commands.md#timezone) |
|
|
126
127
|
| Observability | An always-on output trace and a console log, the source of truth for "a message never reached the topic" | [`/trace`](docs/commands.md#trace), [`/doctor`](docs/commands.md#doctor), [Troubleshooting](docs/troubleshooting.md) |
|
|
127
128
|
| Languages | The bot speaks 12 languages, detected per chat and set with `/language` | [`/language`](docs/commands.md#language-lang) |
|
package/SETUP.md
CHANGED
|
@@ -389,11 +389,12 @@ agents can send such commands there with `charness remote-run`: output, exit cod
|
|
|
389
389
|
had run locally. Without a runner nothing changes for anyone, and agents are not told of the command.
|
|
390
390
|
|
|
391
391
|
**Pair it (the normal way).** Needs this machine's ordinary `sshd` (key login on) with an address the runner can reach — nothing else is
|
|
392
|
-
opened or changed, no root, no VPN — and on the runner machine
|
|
392
|
+
opened or changed, no root, no VPN — and on the runner machine `ssh`, `tar`, `curl` or `wget`, and a way to reach nodejs.org (no Node.js needed: the pairing installs the runner its own). In General send `/runners` → **+ Pair a new
|
|
393
393
|
runner**; the first time the bot asks which address runners dial (the `runnerHost` row of the [instance settings](#instance-settings-settingsjson)) and
|
|
394
|
-
proposes the public address it finds. It posts
|
|
395
|
-
runner machine
|
|
396
|
-
in one go
|
|
394
|
+
proposes the public address it finds. It posts ONE line (valid 10 minutes, single use) with the words that explain it: pasted in an admin account's terminal
|
|
395
|
+
on the runner machine it pairs a standard user there (`runner` unless you change the last word of the line) and installs its always-on service
|
|
396
|
+
in one go; without admin rights, the same line run from the terminal of that account itself (without its leading `sudo`, its last word being that
|
|
397
|
+
account's name) pairs it only, with `charness-runner service install` afterwards to keep it running. An
|
|
397
398
|
instance without Telegram uses `charness runners pair --host host.example`. The steps, the services (a Mac that stays on while logged out), removing and the safety
|
|
398
399
|
model: [docs/remote-run.md](docs/remote-run.md#pair-a-runner).
|
|
399
400
|
|
|
@@ -633,7 +634,7 @@ a hand edit applies to the next session start, no restart.
|
|
|
633
634
|
| `defaultEffort` | The reasoning effort of every topic that has no `/effort` pick of its own: `low`, `medium`, `high`, `xhigh`, `max`, `auto` or `ultracode`. Set it from **`/effort` in the General topic** (a tap writes the file), or by hand. Leave it out and the built-in default, `medium`, applies |
|
|
634
635
|
| `autoUpdate` | What the instance does about a new charness version: `on` installs it by itself when the bot is idle, `notify` says it is out and offers a button, `off` never looks. Set it from **`/update` in General**, or by hand. Leave it out and `on` applies ([Updating](#updating)) |
|
|
635
636
|
| `whatsNew` | `true` (default): after an update General lists the CHANGELOG entries it brought; `false`: only the «Updated a → b» line. Set from `/update` in General, or by hand |
|
|
636
|
-
| `botSkills` | Whether the skills Charness ships with its agents (`charness-
|
|
637
|
+
| `botSkills` | Whether the skills Charness ships with its agents (`charness-orchestration`, `charness-delivery-loop`, the two delegate skills) and the hint to load the orchestration skill reach them ([Commands](docs/commands.md#skills-the-bot-gives-its-agents)): `"on"` or `"off"`. The default of an instance whose **General** never chose — a Jira-only instance, which has no General, sets it here; `/bot_skills` in General overrides it for the instance once used; leave it out and `on` applies. A running agent keeps its skills until its next start |
|
|
637
638
|
| `taskAgents` | The cap on tracker task agents ([Jira setup](#jira-setup)): `{ "maxConcurrent": 5 }` — how many conversations of a connected tracker (Jira issues) may work on a hand-over at once, for the whole bot; an issue over it waits in a queue and starts by itself. `0` = no limit, 100 the most. The default of an instance whose **General** never chose — a Jira-only instance, which has no General, sets it here; **`/task_agents` in General** overrides it for the instance once used (a picker, or any number typed after the command). Leave it out and `5` applies |
|
|
638
639
|
| `todo` | The shared todo lists ([Commands](docs/commands.md#shared-todo-lists)): `{ "isEnabled": true, "reminderMinutes": 60 }`. `isEnabled: false` turns the feature off (agents are not offered the tools); `reminderMinutes` is how long an agent may work without updating its list before it is reminded, `0` = never. Set both from **`/todo` in General → Settings**, or by hand — the way for an instance without a General topic (a Jira-only one). Leave it out and on / 60 apply |
|
|
639
640
|
| `runnerHost` | The address paired runners dial to reach this machine's ssh server: `{ "host": "203.0.113.5", "port": 22 }`. **`/runners` in General** asks for it the first time you pair a machine (proposing this machine's public address when it answers with its own ssh key) and keeps it; it can be edited by hand. Leave it out and `/runners` asks again |
|
package/agent-plugin/README.md
CHANGED
|
@@ -5,7 +5,8 @@ conversations, Claude Code and OpenCode. The operator's own sessions outside the
|
|
|
5
5
|
|
|
6
6
|
| Skill | What it is for |
|
|
7
7
|
|-------|----------------|
|
|
8
|
-
| `charness-
|
|
8
|
+
| `charness-orchestration` | An ADD-ON to a manager skill, not a second manager: what the bot adds when an agent orchestrates detached workers — the watch check that fires when a worker exits, stalls OR runs 2 h 30 min without a report (`schedule_create` + `checkCommand`), ending the turn between wakes, accounts through `claude_profiles`, talking to the user through the bot's tools, a tracker conversation, cleaning runner copies. It holds no delivery loop and is loaded together with the session's general manager skill |
|
|
9
|
+
| `charness-delivery-loop` | The FALLBACK manager: a small delivery loop (modes, the finish step, parallel work in worktrees, the queue, briefing). Loaded only when the session lists no other manager skill — a public user's session, or an OpenCode one, which does not read `.claude/skills` |
|
|
9
10
|
| `charness-delegate-claude` | Launching, watching and resuming a detached `claude -p` worker (`summarize-events.py` reads its event log) |
|
|
10
11
|
| `charness-delegate-opencode` | The same for `opencode run` |
|
|
11
12
|
|
|
@@ -13,23 +14,31 @@ conversations, Claude Code and OpenCode. The operator's own sessions outside the
|
|
|
13
14
|
|
|
14
15
|
- **Claude Code:** every bot launch of an agent session (json-stream and tmux, start and resume) carries
|
|
15
16
|
`--plugin-dir <package>/agent-plugin`. Claude Code namespaces plugin skills by the plugin name and the skill's
|
|
16
|
-
FOLDER: `charness:charness-
|
|
17
|
+
FOLDER: `charness:charness-orchestration`. `--setting-sources project,local` (a Jira session) does not drop them.
|
|
17
18
|
- **OpenCode:** the `opencode serve` the bot starts gets `OPENCODE_CONFIG_DIR=<DATA_DIR>/opencode-config`, a
|
|
18
19
|
bot-owned folder whose `skills` is a symlink to this folder's `skills/`. OpenCode adds those skills to the
|
|
19
20
|
project's and the user's own; it writes files (`.gitignore`) into that folder, which is why it is not this
|
|
20
21
|
folder. An operator who set `OPENCODE_CONFIG_DIR` keeps it, and OpenCode topics then go without these skills.
|
|
21
22
|
- **Switched off:** the «Bot skills» switch (`/bot_skills`, `botSkills` in `settings.json`; `src/utils/botSkills.ts`) drops
|
|
22
|
-
the `--plugin-dir` of a Claude conversation at its next start or resume, and the hint to load `charness-
|
|
23
|
+
the `--plugin-dir` of a Claude conversation at its next start or resume, and the hint to load `charness-orchestration` from the
|
|
23
24
|
bot MCP's instructions; the OpenCode server follows the instance value only (replaced at the bot's next start).
|
|
24
25
|
|
|
25
26
|
## Rules for a skill here
|
|
26
27
|
|
|
27
28
|
- Folder name = frontmatter `name` = `charness-<role>`. OpenCode has no namespaces: a skill named like a
|
|
28
29
|
project's or user's own one (`manager`) would replace it there.
|
|
29
|
-
-
|
|
30
|
-
|
|
30
|
+
- **Policy belongs to the general skills, the bot's mechanics to these.** A manager or delegate skill of the
|
|
31
|
+
project or the user owns the delivery policy (the loop, review, parallel work, the queue, finishing, the model and
|
|
32
|
+
effort per role); the skills here own only how the bot launches, detaches, watches and wakes, which account to take,
|
|
33
|
+
and how to reach the user. So `charness-orchestration` and the two delegate skills are add-ons — each says it wins only on
|
|
34
|
+
those mechanics — and never tell an agent to use them INSTEAD of another manager. `charness-delivery-loop` is the
|
|
35
|
+
fallback for a session with no general manager skill and is never loaded beside one; the role defaults of the delegate
|
|
36
|
+
skills sit under a heading «only when no general delegate skill is listed».
|
|
37
|
+
- The watch recipe in `charness-orchestration` is the `workerWatchCheckCommand` constant of
|
|
38
|
+
`src/scheduler/workerWatch.ts` verbatim, with its cron and its status arguments (the bot posts the
|
|
31
39
|
topic's status line; a unit test holds them equal), and every bot tool a skill names must exist on the bot's MCP surface.
|
|
32
40
|
- Written for this public repository: no real ids, paths or names. The shared rules repository keeps its own
|
|
33
|
-
`manager`; a change wanted in both is ported by hand
|
|
41
|
+
`manager`; a change wanted in both is ported by hand — into `charness-delivery-loop` for the loop, into
|
|
42
|
+
`charness-orchestration` for a bot mechanic.
|
|
34
43
|
- Shipped in the npm package (`files`); a commit that touches only this folder still counts as a release change.
|
|
35
44
|
A Claude session reads a new version at its next start, OpenCode when it next creates the folder's instance.
|
|
@@ -1,33 +1,39 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: charness-delegate-claude
|
|
3
|
-
description: "In a Charness-run session, use to launch, watch, finish and resume a builder, reviewer, investigator or planner as a detached `claude -p` process instead of an in-process sub-agent: the account from claude_profiles, the role's model and effort, a full-privilege worker with deny rules, its event log, the bot watch check, resuming the same session. Load charness-
|
|
3
|
+
description: "In a Charness-run session, use to launch, watch, finish and resume a builder, reviewer, investigator or planner as a detached `claude -p` process instead of an in-process sub-agent: the account from claude_profiles, the role's model and effort, a full-privilege worker with deny rules, its event log, the bot watch check, resuming the same session. Load charness-orchestration first."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Detached Claude Code worker (Charness session)
|
|
7
7
|
|
|
8
8
|
A worker is `claude -p`: one turn per process, the conversation kept between runs by its session id. Load
|
|
9
|
-
`charness-
|
|
9
|
+
`charness-orchestration` first — it holds the watch check this skill arms (the delivery loop is in the session's
|
|
10
|
+
general manager skill, else in `charness-delivery-loop`). A general delegate skill keeps the role policy (model and
|
|
11
|
+
effort per role); this one wins on the launch, the account, detaching and the watch.
|
|
10
12
|
|
|
11
13
|
## Account, model, effort
|
|
12
14
|
|
|
13
15
|
- New worker: call `claude_profiles` with the worker's model and no `currentProfile`. Start the worker with
|
|
14
16
|
`CLAUDE_CONFIG_DIR=<configDir>` of the `recommended` profile (nothing when its `configDir` is null); without it
|
|
15
|
-
the worker drains YOUR account. The bot picks the
|
|
17
|
+
the worker drains YOUR account. The bot picks it from the operator's /limits auto-switch list: take it without asking.
|
|
16
18
|
- `recommended: null`: no account is usable now. Do not launch; `schedule_create` with `onceAt` = `nextAvailable.at`
|
|
17
19
|
and a prompt that stands on its own (plan path, scope, what to launch), then end the turn. If `nextAvailable` is
|
|
18
20
|
null too, no account names a time it frees up: ask the user a native question (nothing can run, no time known) and
|
|
19
21
|
`schedule_create` a one-off retry about 30 minutes ahead, with such a prompt.
|
|
20
22
|
- Confirm the login under that directory: `env -u ANTHROPIC_API_KEY claude auth status --text`.
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
- The first `system`/`init` event must name the requested model; on a mismatch stop the worker and tell the user.
|
|
24
|
+
|
|
25
|
+
### Role defaults — only when no general delegate skill is listed
|
|
26
|
+
|
|
27
|
+
Unless the user names others:
|
|
28
|
+
|
|
29
|
+
- builder (code, tests, debugging, live runs): `--model sonnet --effort xhigh`;
|
|
30
|
+
- investigator (a cause still unclear after a builder failed on it twice): `--model opus --effort high`;
|
|
31
|
+
- reviewer: `--model opus --effort high`; a small or mechanical diff (docs, tests only): `--effort medium`;
|
|
32
|
+
- planner and the research feeding a plan: `--model opus --effort high`, `xhigh` for a large feature.
|
|
26
33
|
- Never Sonnet for work on data persistence (storage, DB schema and migrations, sync, merge and conflict
|
|
27
34
|
resolution, backups — anything that can lose or corrupt user data): every role runs on Opus, a builder at
|
|
28
35
|
`--model opus --effort xhigh` (`max` for a deep investigation). This beats the role defaults above.
|
|
29
36
|
- Never Fable for a worker: it drains the shared session and weekly limits fastest.
|
|
30
|
-
- The first `system`/`init` event must name the requested model; on a mismatch stop the worker and tell the user.
|
|
31
37
|
|
|
32
38
|
## Launch
|
|
33
39
|
|
|
@@ -45,6 +51,7 @@ setsid nohup env -u ANTHROPIC_API_KEY CLAUDE_CONFIG_DIR="<configDir>" \
|
|
|
45
51
|
--output-format stream-json --verbose --include-partial-messages \
|
|
46
52
|
< "<run-dir>/brief.md" > "<run-dir>/events.jsonl" 2> "<run-dir>/stderr.log" &
|
|
47
53
|
echo $! > "<run-dir>/pid"
|
|
54
|
+
printf '%s\n' "<uuid>" > "<run-dir>/session"
|
|
48
55
|
```
|
|
49
56
|
|
|
50
57
|
- Leave out `CLAUDE_CONFIG_DIR=…` for the default profile.
|
|
@@ -58,8 +65,8 @@ echo $! > "<run-dir>/pid"
|
|
|
58
65
|
`--add-dir "<that folder>"` and check that the `init` event's `skills` lists every skill the brief names.
|
|
59
66
|
3. Check the PID: `ps -o args= -p "$(cat "<run-dir>/pid")"` must show `claude -p … <uuid>`. If it does not (the CLI
|
|
60
67
|
handed over to a new process), take it from `pgrep -f "^claude -p .*<uuid>"` and write that into the pid file.
|
|
61
|
-
4. Record the UUID, the profile name you launched on, the checkout and the run directory
|
|
62
|
-
watch check from `charness-
|
|
68
|
+
4. Record the UUID (it is in `<run-dir>/session`), the profile name you launched on, the checkout and the run directory
|
|
69
|
+
in the plan, then arm the watch check from `charness-orchestration` with this PID and run directory.
|
|
63
70
|
|
|
64
71
|
## Watch and finish
|
|
65
72
|
|
|
@@ -72,11 +79,14 @@ echo $! > "<run-dir>/pid"
|
|
|
72
79
|
## Resume
|
|
73
80
|
|
|
74
81
|
- Confirm the old PID is gone, then repeat the launch with `--resume "<uuid>"` instead of `--session-id`, a new
|
|
75
|
-
brief and new log files (`events-2.jsonl`, …),
|
|
82
|
+
brief and new log files (`events-2.jsonl`, …), `touch "<run-dir>/watch-armed"` (the run directory is reused, so the
|
|
83
|
+
marker of the first run is old) and arm a new check. Never `--continue` or `--fork-session`.
|
|
84
|
+
- `<uuid>` comes only from `<run-dir>/session` or the `session_id` of the first (`system`/`init`) event of the first
|
|
85
|
+
run's log — never from memory or a shortened prefix.
|
|
76
86
|
- Keep the model, effort and flags of the first run.
|
|
77
87
|
- The account: call `claude_profiles` with `currentProfile` = the profile name recorded at launch; the worker stays on
|
|
78
88
|
it unless it can no longer run. Launch under the `recommended` profile's `configDir`, record that name.
|
|
79
|
-
- A run rejected on a usage limit ("You've hit your session limit"): call `claude_profiles` with `currentProfile` and
|
|
89
|
+
- A run rejected on a usage limit ("You've hit your session limit", "Credit balance is too low"): call `claude_profiles` with `currentProfile` and
|
|
80
90
|
`isStoppedByLimit: true`, and resume the SAME session at once under the `recommended` profile — never wait while an
|
|
81
91
|
account is usable. `recommended: null` → `schedule_create` with `onceAt` = `nextAvailable.at` and a prompt that
|
|
82
92
|
stands on its own (resume this session, call `claude_profiles` again); `nextAvailable` null too → ask the user a
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: charness-delegate-opencode
|
|
3
|
-
description: "In a Charness-run session, use to launch, watch, finish and resume a builder, reviewer or researcher as a detached `opencode run` process instead of an in-process sub-agent: model and variant, deny rules, its JSON event log, the bot watch check, resuming the same session. Load charness-
|
|
3
|
+
description: "In a Charness-run session, use to launch, watch, finish and resume a builder, reviewer or researcher as a detached `opencode run` process instead of an in-process sub-agent: model and variant, deny rules, its JSON event log, the bot watch check, resuming the same session. Load charness-orchestration first."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Detached OpenCode worker (Charness session)
|
|
7
7
|
|
|
8
8
|
A worker is `opencode run`: it exits when its turn goes idle and keeps the session for a later run. Load
|
|
9
|
-
`charness-
|
|
9
|
+
`charness-orchestration` first — it holds the watch check this skill arms (the delivery loop is in the session's
|
|
10
|
+
general manager skill, else in `charness-delivery-loop`). A general delegate skill keeps the role policy (model and
|
|
11
|
+
variant per role); this one wins on the launch, detaching and the watch.
|
|
10
12
|
|
|
11
13
|
## Model and variant
|
|
12
14
|
|
|
13
|
-
- The model and variant the user named; otherwise the
|
|
14
|
-
|
|
15
|
+
- The model and variant the user named; otherwise the role defaults of a general delegate skill, when the session lists
|
|
16
|
+
one; otherwise the ones this conversation runs on. `opencode models` lists what the configured providers offer — pick
|
|
17
|
+
a listed model and a variant it supports.
|
|
15
18
|
|
|
16
19
|
## Launch
|
|
17
20
|
|
|
@@ -38,7 +41,7 @@ echo $! > "<run-dir>/pid"
|
|
|
38
41
|
`pgrep -n -f "opencode.* run .*--title <scope>"` (a launcher may run the binary as a child: two matches), and
|
|
39
42
|
write that one PID into the pid file — the watch fires "worker exited" at once on a PID that is not the worker.
|
|
40
43
|
4. Record the session id — the top-level `sessionID` of the first JSON event in `events.jsonl` — with the
|
|
41
|
-
checkout and run directory in the plan, then arm the watch check from `charness-
|
|
44
|
+
checkout and run directory in the plan, then arm the watch check from `charness-orchestration` with this PID and
|
|
42
45
|
run directory.
|
|
43
46
|
|
|
44
47
|
## Watch and finish
|
|
@@ -61,7 +64,8 @@ jq -r 'select(.type=="tool_use" or .type=="text") |
|
|
|
61
64
|
## Resume
|
|
62
65
|
|
|
63
66
|
- Confirm the old PID is gone, then repeat the launch with `--session "<session-id>"`, a new brief and new log
|
|
64
|
-
files (`events-2.jsonl`, …),
|
|
67
|
+
files (`events-2.jsonl`, …), `touch "<run-dir>/watch-armed"` (the run directory is reused, so the marker of the first
|
|
68
|
+
run is old) and arm a new check. Keep the checkout, model and variant. Never `--continue` or `--fork`.
|
|
65
69
|
- A turn stopped by a provider's usage limit: resume the same session with another provider's model whose
|
|
66
70
|
context window holds the session.
|
|
67
71
|
- To stop a worker: confirm the PID is that worker (`ps -o args= -p <pid>`), `kill -TERM <pid>`, confirm it is
|