基于LangGraph + deepagents构建的自主编码代理。它原生规划、构建、验证并发布真实生产变更,内置人工审核阶段。
概览
一个基于LangGraph和deepagents构建的自主编码代理。它能规划、执行并验证真实的变更与真实项目的核对,任何有风险的操作都需要人工批准。它还运行一个独立的对话助手,用于研究和设计讨论,能记住多次会话中学到的内容,并能直接将完成的计划交给构建流水线。 后端是 FastAPI 应用(代理/server.py);前端是 React/Vite。它们共同负责提交和观看构建任务、与 Planning Chat 聊天,以及管理模型、用户和仓库。 代理针对一组固定的本地项目(agent/config.py / projects.json 中的 PROJECTS)。每个任务在其分支代理/上获得其 — 一个来自 /home/agent-workspaces/.tasks/ 的活仓库的 git 工作树,从项目的工作区(/home/agent-workspaces/ )填充,依赖关系硬链接,构建输出复制(agent/workspaces.py)。
概述(AI 翻译)
基于LangGraph构建的自主编码代理, DeepAgents。它负责计划、执行并验证真实情况 修改时要经过真实项目核查,任何有风险的操作都需要人工批准。它还 运行Planning Chat,一个用于研究和设计讨论的独立会话助手, 记住多次学习的内容,并能直接把完成的方案交给施工组 管道。
它从自己的工作中学习。失败后,它反思(失败的是什么,为什么,该怎么做) 不同方式)之后再尝试;每完成一个任务都会留下一个发作;每天一次,这些发作 被整合进每个项目的记忆中;而且几个月的过去任务依然可搜索,所以“我们有吗 “之前打过这个?”有答案。参见“记忆与反思”。
后端是 FastAPI 应用([agent/server.py);前端是 React/Vite。它们合力覆盖
提交和观看构建任务,与规划聊天聊天,管理模型和用户,
以及仓库。
该代理针对一组固定的本地项目(PROJECTS),见agent/config.py /
[projects.json)。每个任务都有自己的工作区**——即活仓库的git工作树,位于
“/主页/代理-工作空间/。”
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Persei
An autonomous coding agent built on LangGraph and deepagents. It plans, executes, and verifies real changes against a real project checkout, with human approval required for anything risky. It also runs Planning Chat, a separate conversational assistant for research and design discussion that remembers what it learns across sessions and can hand a finished plan straight to the build pipeline.
It learns from its own work. After a failed attempt it reflects (what failed, why, what to do differently) before trying again; every finished task leaves an episode; once a day those episodes are consolidated into each project’s memory; and months of past tasks stay searchable, so “have we hit this before?” has an answer. See Memory and reflection.
The backend is a FastAPI app (agent/server.py); the frontend is React/Vite. Together they cover
submitting and watching build tasks, chatting with Planning Chat, and administering models, users,
and repos.
The agent targets a fixed set of local projects (PROJECTS in agent/config.py /
projects.json). Each task gets its own workspace — a git worktree of the live repo at
/home/agent-workspaces/.tasks//, on its own branch agent/, filled
from the project’s workspace (/home/agent-workspaces/) with dependencies hardlinked and
build output copied (agent/workspaces.py). So tasks on the same project can run side by side:
Settings → Tasks at once per project sets how many (default 10, at most 16; each task has its own 2 GB sandbox, so size it to the machine). They code in parallel and take
turns only for checks, review and merge; a task that merges second is rebased onto the first and
reviewed again. The limit is a set of Postgres advisory locks (agent/graph.py, project_slot)
rather than anything in the process, because it is a property of the project: a second worker or an
overlapping restart sees the same slots, and Postgres drops a claim when its connection closes.
Community
Questions, help with an install, or an idea for what it should do next: join the Telegram group. Bugs are best as a GitHub issue, and security problems go through a private advisory, never in public.
Screenshots
Watch a task work. Every tool call and its output as it happens, which model made it, the agent’s own summary, and the review gate’s READY or NEEDS_FIXES at the end. You can
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add djg3dk/tektonix