并行Parallel
多个 Agent 并行,分得清谁改了什么Agents in parallel, and who changed what
几个 Agent 同时在一个仓库里干活,难的不是把它们开起来,而是事后分清哪处改动是谁做的、谁踩了谁。Filo 的线程就是为这件事设计的。Starting several agents in one repo is the easy part. The hard part is telling afterwards which change came from which, and who stepped on whom. Filo's threads are built for exactly that.
线程是一等公民Threads first
侧栏就是线程的列表,每个线程是一个 Agent 的一个会话:Claude Code、Codex、Antigravity、OpenCode、pi、Grok 随你混着开。⌘\ 或按住 ⌘ 点一个线程,两个并排;⌘1–9 按侧栏顺序切换。关了窗口线程也继续跑,Agent 在独立的进程里,再打开就接回来。The sidebar is the list of threads, and each thread is one session of one agent: mix Claude Code, Codex, Antigravity, OpenCode, pi and Grok as you like. ⌘\ or ⌘-click puts two side by side; ⌘1–9 walks the sidebar. Close the window and the threads keep going in a separate process; reopen and you are back in them.
改动认得它的线程Changes know their thread
改动面板默认只显示「这个线程」改的文件,提交以后也分得清。两个线程的改动撞在一起时会标出来:The changes panel opens on "This thread": the files this thread changed, still told apart after a commit. When two threads' edits meet, it says so:
- 被覆盖:另一个线程改掉了这个线程写的内容。Overwritten: another thread replaced what this one wrote.
- 冲突:两边的改动相距不到三行。Conflict: the two edits are within three lines of each other.
- 共用文件:两个线程都改过这个文件,但没有碰到一起。Shared file: both threads changed the file, in different places.
勾选文件,直接提交或回滚。Agent 用 shell 命令(比如 sed)改的文件认不出是哪个线程,这一点要知道。Check files, then commit or roll them back. One limit to know: a file an agent changes through a shell command (sed, say) is not tied to a thread.
要隔离,就开副本When they must not meet: copies
副本是真正的 git worktree,放在 ~/.filo/worktrees,从当前提交分出来。Agent 在副本里随便改,主目录不受影响;满意了点「应用」,用三方合并把改动带回主目录,作为未暂存的改动留给你看。A copy is a real git worktree in ~/.filo/worktrees, taken from the current commit. The agent changes whatever it likes there and your checkout is untouched. Happy with it, click Apply: a three-way merge brings the change back as unstaged edits for you to look over.
一句话,发给几个 AgentOne prompt, several agents
同一个任务可以一次发给最多 6 个 Agent 或模型,每个在自己的副本里做,做完对比,挑最好的那份应用回来。The same task can go to up to six agents or models at once, each in its own copy. Compare what comes back and apply the best one.
线程之间互相叫Threads call each other
任何 Agent 的 shell 里都有 filo 命令:一个线程可以开另一个线程、给它发话、等它回答。Every agent's shell has the filo command, so one thread can start another, send it a message and wait for the answer.
做完了,让另一个 Agent 来审查;所有线程的对话都能搜索,终端里跑过的会话也在内。When it is done, have another agent review it. Every thread's conversation is searchable, terminal sessions included.
一行命令装上,用你已有的 AgentOne command, with the agents you already have下载装上,用你已有的 AgentDownload Filo, with the agents you already have
curl -fsSL https://filoapp.dev/install.sh | bash