开源项目 Flash 新增多 Agent 团队功能,支持按组织架构分级汇报、Token 预算控制与按需扩缩容,适合在 Ollama 本地运行复杂 Agent 任务。
大多数 AI agent 关闭聊天窗口就死了。我的不会。
它们叫 sparks,生活在 Flash 里——我为 Ollama 编写的开源 agent 运行时壳。每个 spark 都有名字、目标、调度时间,以及不可逾越的红线。然后它会自主工作,在你的机器上运行,并向汇报。
Make a spark that checks my repo every morning for new issues and tells me which ones look like bugs. Never comment on anything.
两个 sparks 还好。六个 sparks 就是六个互不相识的实习生。所以今天它们有了一家公司。
Any spark can report to a lead. Its reports roll up to the lead, and the lead tells you what matters, so you read one report instead of six. Each team is drawn as a live org chart, with reports flying up the lines as comets.
/sparks teams add Dev Team
内置模板(Dev Team、Personal Desk)初始状态为暂停,因此不会在你查看之前就烧掉你的 GPU。
A spark can propose hiring a new spark, or letting one go, with a reason. It waits as a card until you approve or decline.
Off by default. Turn one on and a spark gets tokens per hour, day, week or month. When it runs out, it pauses.
/sparks budget scout 50k/day
Local tokens still cost you: they're GPU time, and a loop at 3am is still a loop.
Every shift, tool call, approval and change goes into an append-only log. Each entry carries the hash of the one before it:
hashlib.sha256((previous + body).encode("utf-8")).hexdigest()
Edit a line by hand and verification points at it.
Pause all stops new shifts and lets running ones finish. Stop all is the big red button.
The agent can already drive a web page. Now devtools gives it the network log, full requests, the console, a JS console, and computed styles. A screenshot can't show a 404. This can.
notify_user pops up a toast in the web UI, a browser notification in a background tab, or a desktop notification. It's rate limited, and you set the limit:
/notify 8 per 30m
Default model for new sparks. If you ollama rm it, sparks fall back to another model and say so instead of crashing.
Images the agent sends now show inline in the chat. Click one to open it in the side panel.
10 features in one day, 1,916 tests passing, 0 API keys.
curl -fsSL https://raw.githubusercontent.com/Natuworkguy/Flash/main/install.sh | bash
flash
Then type /sparks new. Stars on GitHub help a lot.
What job would you give an agent that works for you around the clock? The best answer becomes a template.