fix(agents): disable aggressive default schedules in sample agent configs#1207
Open
Hypn0sis wants to merge 1 commit into
Open
fix(agents): disable aggressive default schedules in sample agent configs#1207Hypn0sis wants to merge 1 commit into
Hypn0sis wants to merge 1 commit into
Conversation
…figs Commit efbefa1 ("chat agents", v0.6.9) introduced auto-spawning of all agents found in ~/.openfang/agents/ on boot (issue RightNow-AI#1140). Three sample agents carried [schedule] sections that were silently ignored before auto-spawn existed: orchestrator: continuous every 120s -> ~30 LLM calls/hr ops: periodic every 5m -> ~12 LLM calls/hr health-tracker: periodic every 1h -> ~1 LLM call/hr Together these generated ~630 unexpected LLM calls/day and ~5 EUR/day in API costs for any user who installed the sample agents before enabling auto-spawn. Fix: remove active [schedule] sections from all three files and replace with commented-out examples at conservative intervals. Users who want autonomous mode can uncomment and tune the values explicitly. security-auditor is not changed — its proactive/event-driven schedule only fires on agent_spawned/terminated events, not on a timer.
This was referenced May 20, 2026
Contributor
Author
|
The Security Audit CI failure is unrelated to this PR's changes. Root cause: RUSTSEC-2026-0141 ( The Fix is in a separate PR (upgrading |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1206.
What changed
Removed active
[schedule]sections from three sample agent configs that were generating unexpected LLM calls after the auto-spawn feature landed inefbefa1(v0.6.9):agents/orchestrator/agent.toml— wascontinuous { check_interval_secs = 120 }(~30 calls/hr)agents/ops/agent.toml— wasperiodic { cron = "every 5m" }(~12 calls/hr)agents/health-tracker/agent.toml— wasperiodic { cron = "every 1h" }(~1 call/hr)Each section is replaced with a commented-out example at a conservative interval so users can opt-in explicitly.
agents/security-auditor/agent.tomlis unchanged — itsproactiveschedule is event-driven, not timer-based.Why
Before
efbefa1, agents in~/.openfang/agents/were never auto-spawned on boot, so their[schedule]sections were inert. Afterefbefa1, they activate immediately on daemon restart, generating ~630 unexpected LLM calls/day and ~€5/day in API costs for users who have sample agents installed.