jj.wang 4f45d368ad Double-start guard: launching marker, probe-and-adopt, fresh-dir relaunch; skip unreachable terminals per tick
Before the launch call the planned run (run id, terminal, handle, bookkeeping) is saved as a launching
marker. If the launch call fails or agentd dies before recording the run, the next tick probes the run
directory (exit.txt / launch.pid / pid.txt): evidence -> adopt the run; nothing -> relaunch with the same
run id in <run_id>-r2 (-r3 ...); probe unreachable -> keep the marker, which holds the terminal slot.
Transports refuse to clean a run directory holding a pid file. A terminal whose relay fails is skipped
for the rest of the tick (heartbeat.down) while other terminals carry on.
2026-10-21 11:54:40 +00:00

plane-agentd

Plane 看板驱动的通用 agent 调度服务:在 Plane 建工作项并指派给某个终端,agentd 在该终端起对应的 CLI agent(Codex / Claude Code / 脚本)执行,把结果贴回工作项并流转状态。调度是确定性代码;模型只出现在执行器和总指挥里。

使用

  • 契约与扩展:docs/executor-contract.md;安装、cron、日志、故障:docs/runbook.md;迁到无 agent CLI 的 LXC:docs/deploy-lxc.md
  • 入口:cli/agentd tick|new|show|comment|state|assign|smoke|check-config(在 agent-access.py exec --secret-env … 下运行)
  • 测试:python3 -m unittest(离线,不访问 Plane/win10)
S
Description
No description provided
Readme 662 KiB
Languages
Python 98%
Shell 2%