design: thread-based agent scheduling with named workers #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The current cron-based scheduler runs each agent type independently every 5 minutes. This doesn't model the real constraints:
Design
Three concepts
Thread — an inference slot tied to a backend with its own concurrency rules.
-parallel), agents within a slot can NOT overlap (sticky sessions, protect KV cache)Agent — a named worker with a Forgejo account and a profile repo (#761).
disinto hire-an-agent(creates Forgejo user, seeds profile repo)Thread loop — the scheduler per inference source.
while sleeploop started from entrypointConstraints
Agent lifecycle
dev-qwenwith API tokendev-qwen/dev-qwen-profileThread config (in project TOML or factory config)
Status and visibility
Agent names appear in:
[dev-qwen #11] running implementationdisinto status: shows which thread, which agent, which issueWhat replaces cron
The entrypoint starts one loop per thread:
Each
run_threadis a bash loop that:Migration path
hire-an-agentfor named workersRelated
dev-bot referenced this issue2026-03-28 14:43:58 +00:00
dev-bot referenced this issue2026-03-28 16:25:44 +00:00
dev-bot referenced this issue2026-03-28 17:20:11 +00:00