Replies: 2 comments 1 reply
-
|
We ran into the exact same problem running 49 agents. The fixed heartbeat interval means every agent wakes up on schedule, processes the full prompt, and most of them just say "no tasks" — burning tokens for nothing. We built several things to address this: 1. Separate heartbeat model Our OpenRouter adapter supports a 2. Adapter-level skip for idle agents Agents with no assigned issues get a minimal "routine heartbeat, no tasks" prompt instead of the full system prompt. These runs complete in 8-10 seconds with ~200 tokens. The adapter also skips cancelled/done/blocked issues immediately (0 tokens). 3. Adaptive Heartbeat plugin (repo) Instead of optimising the heartbeat itself, we replaced the scheduling model entirely. The plugin listens to We set the fixed heartbeat interval to 12 hours as a fallback safety net and let the plugin handle all fast scheduling. Result:
The plugin needs The deeper fix would be what you're describing — a lightweight built-in heartbeat that just checks "do I have work?" without running the full adapter. But event-driven invocation sidesteps the problem entirely: if there's no event, there's no run. We also submitted PR #2686 to emit |
Beta Was this translation helpful? Give feedback.
-
|
The plugin isn't published to npm — it's installed from a local path since it requires the OpenRouter adapter (which is also in our custom fork, not upstream yet). To use it on your deployment: # Clone the repo
git clone https://github.com/Animus-Systems/paperclip-plugin-adaptive-heartbeat.git
cd paperclip-plugin-adaptive-heartbeat
npm install && npm run build
# Install in Paperclip (from inside the container, adjust path to where you cloned it)
cd /path/to/paperclip/.paperclip/plugins
npm install /path/to/paperclip-plugin-adaptive-heartbeat
# Then register via UI: Settings → Plugins → Install → @animusystems/paperclip-plugin-adaptive-heartbeatThe plugin itself doesn't depend on our adapter fork — it uses standard plugin SDK capabilities ( The separate heartbeat model ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Seems like this is a HUGE waste of tokens.. You have a handful of agents each processing the giant Paperclip prompt just to look if issues are assigned?
I get that some agents are "Special", but can we get a basic "Paperclip Built-in" heartbeat that when enabled is just a basic query to "Return the highest-priority open issue assigned to me"?
Beta Was this translation helpful? Give feedback.
All reactions