A local-first multi-agent app development platform, built on PenguinHarness
docs(blog): three new posts on remote control, the Evaluation Center and company mode (#766)
Yaowei Zheng078a7aa83f98
diff --git a/changelog/unreleased/2026-09-16-blog-new-posts.md b/changelog/unreleased/2026-09-16-blog-new-posts.mdnew file mode 100644index 00000000..8bff38df--- /dev/null+++ b/changelog/unreleased/2026-09-16-blog-new-posts.md@@ -0,0 +1,27 @@+# Three new blog posts: remote control, the Evaluation Center and company mode++- **Date:** 2026-09-16+- **Type:** process+- **Scope:** `landing`+- **PR:** [#766](https://github.com/Prism-Shadow/penguin-harness/pull/766)++[中文版](2026-09-16-blog-new-posts.zh.md)++Three posts were added to the blog in English and Chinese, with screenshots of the Web App in both+languages and diagrams for the concepts.++## Details++- `connect-agents-to-feishu-qq-telegram-wechat` is a tutorial: create a conversation, open+ **Remote control** from its right-click menu, bind it to WeChat by scanning a QR code (including+ the wait before the first WeChat message), talk to the agent from a phone, then bind Feishu,+ Telegram or QQ. It ends with the limits, the safety rules and troubleshooting.+- `create-evaluate-evolve-agents` is a tutorial for the Evaluation Center: have AI create a+ Benchmark and take a baseline, ask AI what a case tests, replace a Benchmark with a new one and+ delete the old one, then evaluate and optimize an agent. Two diagrams show what the Optimizer and+ the Evaluator can read and change, and one optimization round.+- `agent-company-mode` is a perspectives essay on company mode: how it relates to products that put+ people and many agents in one space, what an organization adds, the one-person company and the+ mirror company, and the limits of the beta.+- The landing blog test counts the new posts and their places in the practice and perspectives+ lists.diff --git a/changelog/unreleased/2026-09-16-blog-new-posts.zh.md b/changelog/unreleased/2026-09-16-blog-new-posts.zh.mdnew file mode 100644index 00000000..da6ac8ef--- /dev/null+++ b/changelog/unreleased/2026-09-16-blog-new-posts.zh.md@@ -0,0 +1,17 @@+# 新增三篇博客:远程控制、评估中心与公司模式++- **Date:** 2026-09-16+- **Type:** process+- **Scope:** `landing`+- **PR:** [#766](https://github.com/Prism-Shadow/penguin-harness/pull/766)++[English](2026-09-16-blog-new-posts.md)++博客新增三篇中英文文章,配有中英文 Web App 截图,概念部分配有框图。++## 细节++- `connect-agents-to-feishu-qq-telegram-wechat` 是一篇教程:创建对话,从右键菜单打开**远程控制**,扫码绑定微信(包括发第一条微信消息前需要等待),在手机上和 Agent 对话,再绑定飞书、Telegram 或 QQ。文末是限制、安全规则和常见问题。+- `create-evaluate-evolve-agents` 是评估中心的教程:让 AI 创建 Benchmark 并测出基线分,问 AI 一道题在考什么,用新的 Benchmark 替换并删除旧的,再评估和优化 Agent。两张框图分别说明 Optimizer 与 Evaluator 各自能读什么、能改什么,以及一轮优化的过程。+- `agent-company-mode` 是一篇关于公司模式的观点文章:它与那些把人和多个 Agent 放进同一空间的产品有什么关系,组织带来了什么,一人公司和镜像公司两种用法,以及内测版的限制。+- 落地页博客测试计入了新文章,以及它们在实践与观点两个分类列表中的位置。diff --git a/packages/landing/content/blog/agent-company-mode.en.md b/packages/landing/content/blog/agent-company-mode.en.mdnew file mode 100644index 00000000..de5df7ba--- /dev/null+++ b/packages/landing/content/blog/agent-company-mode.en.md@@ -0,0 +1,105 @@+---+title: "Company mode: reshaping how people and agents work together"+date: 2026-09-16+category: perspectives+excerpt: "Products like Multica, Raft and Grok Bot moved agents out of the one-person workbench and into spaces shared with people. Company mode, in beta in PenguinHarness, goes a step further: agents work inside an organization with a mission, reporting lines, a calendar and budgets, and you sit on the board. Here is why that matters, and the two ways to use it."+---++Most work with an AI agent still happens at a workbench: you open a conversation, give the agent a task, watch it work, and start again when it stops. The pattern was built for tasks that take minutes. It strains as soon as the work takes days, needs several kinds of expertise, or involves people other than you. This essay asks what should replace the workbench when the work outgrows it.++Our answer is an organization rather than a bigger chat: agents with defined roles and reporting lines, a calendar that keeps work moving, budgets that bound spending, and people who set direction and make the decisions that matter. Company mode, released as a beta in PenguinHarness 0.2.13, is our attempt to build that.++++## From one workbench to a room full of agents++The first generation of agent products put one person in front of one agent, with a session, a task and a transcript. Coding agents, research agents and general assistants all share that setup. It works when the task fits in one sitting and one person is in the loop.++A newer group of products brings several agents and people into one shared space. [Multica](https://multica.ai/) is an open-source platform that treats coding agents as teammates: you assign an issue to an agent the way you would to a colleague, and the agent updates its status and raises blockers on its own. [Raft](https://raft.build/) is a multi-agent collaboration platform where people and agents share channels, threads and tasks; agents hand work to each other and review each other's output, while people set the direction and make the final calls. [Grok Bot](https://x.ai/news/introducing-grok-bot) from xAI gives you a team of always-on agents that coordinate in a group chat, pass work and assign ownership among themselves, and pull you in only for judgment calls.++These products show that agents can share context with each other and with people, divide work among themselves, and involve a person only when a decision needs one. Company mode builds on the same idea and makes the rest of an organization explicit: a written reporting tree, a calendar that wakes each agent on schedule, budgets that pause scheduled work, a handbook that outlives any single conversation, and a board that holds final authority, all stored as files you can read.++## What an organization adds++Human organizations solved the problem of long-running, multi-person work long before software existed. They rely on a small set of structures, and each one has a counterpart in company mode:++| Structure | What it does in a human company | What it does in company mode |+| --- | --- | --- |+| Mission | Says why the company exists. | The one sentence the CEO agent starts from. |+| Reporting tree | Defines who is responsible for what and who reviews whose work. | An org chart of agents, each with a title, duties and a manager. |+| Calendar | Keeps recurring work happening without someone asking. | Scheduled events that wake each employee at its desk. |+| Tickets | Track work, its owner and its state. | A board with five columns: proposed, in progress, review, done, rejected. |+| Channels | Carry discussion without interrupting everyone. | Group chats where an `@` mention is what wakes an employee. |+| Budget | Caps what each part of the company can spend. | Monthly spending limits per employee, rolled up the reporting tree. |+| Handbook | Keeps decisions and knowledge after the people who made them move on. | A shared set of documents every employee reads and updates. |+| Board | Holds final authority over direction and major decisions. | You. |++Two design choices make this more than a metaphor:++1. **Every piece of the organization is a file** in the Project. The configuration, the org chart, calendar events, tickets, channel logs and the handbook live under `organizations/<org_id>/`. The files are the source of truth; the database keeps only caches rebuilt from them and run-time state such as read positions. You can read, version and back up the whole company.+2. **Every desk or ticket conversation is an ordinary PenguinHarness conversation**, with the same message list, tool calls and Traces as any other. Nothing an agent does is hidden behind a new interface.++## The one-person company++The first way to use company mode is the one-person company: one person and any number of agents run an organization that pursues a goal over days or weeks.++++You create an organization with one sentence, its mission, and a monthly budget for the CEO. PenguinHarness creates only the CEO. The CEO's first run reads the mission and posts a proposal in the all-hands channel: how it reads the mission, the first tickets, which roles to hire with which budgets, and how to split the work. Then it stops and waits for you. The proposal names no models: every employee runs on the organization's model, or on the Project's default model when the organization names none, unless you ask for particular ones.++From then on, you mostly talk to the CEO. Once you approve the plan and the hires, the organization works on its own schedule:++- **The calendar keeps work moving.** A scheduler checks every organization every 30 seconds. Each employee wakes for its calendar events, for an `@` mention, or when you talk to it directly, so work continues across days without you starting each run.+- **Tickets carry the state.** A ticket records its goal, acceptance criteria, progress and result. When a ticket changes, its owner picks up the change at its next scheduled round instead of being interrupted.+- **Decisions come back to you.** The company's Skills and handbook tell the CEO and employees to bring important decisions to the board: the plan, hiring, budget changes, closing high-priority work without review, and anything that acts outside the organization, such as publishing or spending money. The same gate stands before heavy or irreversible work — long compute, writing outside the shared workspace, deleting what the employee did not create, or a process meant to outlive the run. The employee asks in the all-hands channel with what it wants to run and how to stop it, blocks its ticket on you, and ends its run until you answer.+- **Budgets bound the cost.** An employee's monthly budget, in US dollars, includes what its subordinates spend, so the CEO's budget covers the whole company. At 80% of a budget, the organization posts a warning in the all-hands channel; at 100%, the calendars of that employee and its team pause.++++This changes the person's role. Instead of operating an agent task by task, you set the direction, review proposals, and step in when something needs judgment.++## The mirror company++The second way to use company mode is aimed at a company that already exists. In a mirror company, every real employee gets a digital twin: an agent that sits in the same place in the org chart as the person it represents, and that the person talks to through their own chat app.++++Setting one up starts with the **Digital-twin company** example. The CEO asks you for the real org chart: names, titles, reporting lines, and which chat bot each person will use. After you confirm the roster, it hires one twin per person, mirrors the reporting lines, and writes a brief and a handbook page for each twin. Then you, as the board, bind each twin's desk conversation to that person's bot in the same Remote control dialog as any other conversation; binding needs the Project owner's role, and for a WeChat bot the colleague scans the QR code with their own phone. Use Feishu, Telegram or WeChat for twins: a QQ bot can only reply to a message its person has just sent, so a QQ twin could answer questions but never ask its person one.++Day to day, an employee no longer needs to work out whom to ask, or to open a group chat and wait. A question moves through the organization like this:++1. The employee sends a question to their twin in their chat app.+2. The twin answers from the handbook when it can.+3. When it cannot, it mentions the twin of the colleague who owns the topic in the all-hands channel.+4. That twin asks its own person through their bot, and relays the answer back.+5. The answer returns to the employee who asked, and the twins record it in the handbook so the next person gets it without asking.++In effect, the knowledge of who knows what moves out of people's memory into a shared, written structure, which improves every time a question gets answered.++## What company mode does not do yet++Company mode is a beta and stays off until an administrator turns it on. Several of its current limits should shape how much you rely on it:++- **Approvals are guidance, not enforcement.** The rule that important decisions go to the board is written into the Skills and the handbook. The server does not stop an agent from hiring, changing a budget or moving a ticket on its own. Tool approvals never reach you either: an organization's sessions run unattended, so they never wait for a person. A tool call that the organization's approval mode would put to someone is denied the moment it is made — nothing appears in the Web App to approve, and no run is left hanging. Under the default **Allow all**, every call runs; under **Read only**, reads run and everything else is refused, and the employee treats a refusal as the cue to ask the board in the all-hands channel rather than to retry it. An organization meant to run unattended should keep the default mode.+- **Budget pauses are soft.** Reaching a budget pauses calendars only. Mentions and direct conversations still go through, a run already under way is not stopped, and spending can overshoot between checks. An employee without a budget of its own is limited only by its managers' budgets.+- **Mirror companies are early.** Twins are created from the org chart you describe, not imported from an HR system, and every bot is bound by hand. A bot can reply only after its person has written to it first, and a binding has no allowlist of senders, so each twin's bot must stay private. Relays between twins happen in the all-hands channel, where every member can read them, and a chain of mentions stops after three hops by default.+- **Work happens only while the server runs.** Calendar events that come due while PenguinHarness is stopped are not run later.++## How to try it++Company mode is available in PenguinHarness 0.2.13 and later.++1. As an administrator, open **System settings**. In the **Server** group, open **Company mode** and turn on **Enable company mode**.+2. In the sidebar, switch from **Development** to **Company**.+3. Select **New organization**. Enter a **Display name**, then write a mission or pick one of the examples, such as **Digital-twin company**, and set the **CEO budget**.+4. Fill in **Organization id**, or select **Generate with AI** to derive one from the display name, then select **Create**.++++To learn how each part works, see the [company mode documentation](https://penguin.ooo/docs/company-mode). Company mode is a beta, so please tell us what you run into.++## What changes for people++The move from a workbench to a shared space made agents collaborators. The move to an organization gives each agent a defined responsibility, a manager, a budget and a written record, and lets the person in charge govern the system instead of operating it step by step.++We do not think the organization is the final shape either. Open questions remain: how much authority to give agents, how to evaluate a whole organization rather than a single agent, and how a company that improves itself should work. PenguinHarness can already improve single agents with Benchmarks, and extending that to whole companies is a direction we want to explore. But for long-running, shared work, the structures people have already developed are a better starting point than an ever-longer chat.diff --git a/packages/landing/content/blog/agent-company-mode.zh.md b/packages/landing/content/blog/agent-company-mode.zh.mdnew file mode 100644index 00000000..4ac8d55e--- /dev/null+++ b/packages/landing/content/blog/agent-company-mode.zh.md@@ -0,0 +1,105 @@+---+title: "公司模式:重塑人与 Agent 的协作方式"+date: 2026-09-16+category: perspectives+excerpt: "Multica、Raft、Grok Bot 这类产品把 Agent 从一个人的工作台,带进了人与 Agent 共享的空间。PenguinHarness 内测中的公司模式又往前走了一步:Agent 在一个有使命、有汇报关系、有日历、有预算的组织里工作,而你坐在董事会的位置上。本文说明这件事为什么重要,并介绍两种用法。"+---++如今和 AI Agent 一起工作,大多仍是在工作台上完成的:你打开一个对话,交给 Agent 一项任务,看它干活,它停下来了再开始下一轮。这套模式是为几分钟就能做完的任务设计的。一旦工作要持续好几天、需要多种专长,或者要牵涉你以外的人,它就开始吃力。本文想讨论的是:当工作超出了工作台能承担的范围,该用什么来取代它。++我们的答案是组织,而不是一个更大的聊天窗口:Agent 有明确的角色和汇报关系,日历让工作持续推进,预算约束开销,人负责定方向、做真正要紧的决定。公司模式在 PenguinHarness 0.2.13 中以内测形式发布,就是我们朝这个方向做的一次尝试。++++## 从一个工作台,到一屋子 Agent++第一代 Agent 产品的形态,是一个人面对一个 Agent:一个会话、一项任务、一份对话记录。编程 Agent、研究 Agent 和通用助手都是这种形态。任务一次就能做完、全程只有一个人参与时,这样就够用。++较新的一批产品,把多个 Agent 和多个人放进了同一个空间。[Multica](https://multica.ai/) 是一个开源平台,把编程 Agent 当作队友:你像给同事派活一样,把 issue 指派给 Agent,Agent 会自己更新状态、主动报告卡住的地方。[Raft](https://raft.build/) 是一个多 Agent 协作平台,人和 Agent 共用频道、话题串和任务;Agent 之间互相交接工作、审查彼此的产出,人负责定方向、做最终决定。xAI 的 [Grok Bot](https://x.ai/news/introducing-grok-bot) 给你一组常驻的 Agent:它们在群聊里协调,彼此传递工作、自行分派负责人,只在需要人来判断时才叫上你。++这些产品说明,Agent 之间、Agent 与人之间可以共享上下文,Agent 可以自己分工,只在决策需要人时才让人参与。公司模式沿着同样的思路,把组织的其余部分也明确下来:成文的汇报关系,按计划唤醒每个 Agent 的日历,用到上限就暂停日程的预算,比任何一次对话都长久的手册,还有握有最终决定权的董事会。这些全部以文件形式保存,你随时可以打开来读。++## 组织带来了什么++早在软件出现之前,人类组织就已经解决了长期、多人协作的难题。它们靠的是为数不多的几种结构,而每一种在公司模式里都有对应:++| 结构 | 在人类公司里的作用 | 在公司模式里的作用 |+| --- | --- | --- |+| 使命 | 说明公司为什么存在。 | CEO Agent 出发时依据的那一句话。 |+| 汇报树 | 界定谁对什么负责、谁审核谁的工作。 | 一张由 Agent 组成的组织图,每个 Agent 都有职位、职责和一位上级。 |+| 日历 | 让周期性的工作不用人催也照常进行。 | 定时事件,到点唤醒工位上的每个员工。 |+| 工单 | 跟踪工作、负责人和状态。 | 一块工单看板,分五列:提议、进行中、审核中、已完成、已拒绝。 |+| 频道 | 让讨论有地方进行,又不打扰所有人。 | 群聊,被 `@` 提及的员工才会被唤醒。 |+| 预算 | 限定公司各部门能花多少钱。 | 为每个员工设定的月度开销上限,沿汇报树逐级汇总。 |+| 手册 | 做决定的人离开后,决定和知识仍然留得下来。 | 一组共享文档,每个员工都会阅读和更新。 |+| 董事会 | 对方向和重大决策握有最终决定权。 | 你。 |++有两个设计选择,让这套对应不只是比喻:++1. **组织的每一部分都是 Project 里的文件**。配置、组织图、日历事件、工单、频道记录和手册,都保存在 `organizations/<org_id>/` 下。文件才是权威来源;数据库只保存由文件重建的缓存,以及读取位置这类运行时状态。整家公司都可以读取、做版本管理和备份。+2. **每个工位对话、每个工单对话都是普通的 PenguinHarness 对话**,消息列表、工具调用和 Trace 与其他对话完全一样。Agent 做的任何事,都不会藏在某个新界面后面。++## 一人公司++公司模式的第一种用法是一人公司:一个人带着任意数量的 Agent,一起经营一个组织,花几天到几周去实现一个目标。++++创建组织只需要一句话,也就是它的使命,再加上给 CEO 的月度预算。PenguinHarness 只创建 CEO。CEO 第一次运行时会读取使命,然后在全员频道发一份提案:它怎么理解使命、第一批工单是什么、要招哪些岗位、各配多少预算、工作怎么分工。发完提案,它就停下来等你。提案里不写模型:除非你指定,每位员工都用组织的模型;组织没有指定模型时,则用 Project 的默认模型。++从这以后,你主要和 CEO 打交道。你批准方案和招聘之后,组织就按自己的日程运转起来:++- **日历让工作持续推进**。调度器每 30 秒检查一次所有组织。员工会在三种时候醒来:日历事件到点、被 `@` 提及、你直接找它说话。所以工作能跨天推进,不需要你一次次手动启动。+- **工单承载状态**。每张工单记录目标、验收标准、进展和结果。工单有变化时,负责人不会被打断,而是在下一次按日程醒来时再处理。+- **决策回到你手里**。公司的 Skill 和手册要求 CEO 和员工把重要决策提交给董事会:方案本身、招聘、预算调整、不经审核就关闭高优先级的工作,以及一切超出组织范围的行动,比如对外发布、花钱。繁重或不可逆的工作同样要过这道关卡——长时间计算、写到公共工作区之外、删除不是自己创建的东西、启动一个比本轮运行活得更久的进程。员工会在全员频道说明要跑什么、怎么停下来,把工单阻塞在你身上,然后结束本轮,等你答复。+- **预算约束成本**。员工的月度预算以美元计,下属的开销也算在内,所以 CEO 的预算覆盖整家公司。预算用到 80% 时,组织会在全员频道发出警告;用到 100% 时,这名员工和其下属的日历都会暂停。++++这样一来,人的角色变了:不再一个任务一个任务地操作 Agent,而是定方向、审提案,遇到需要判断的事再介入。++## 镜像公司++公司模式的第二种用法,面向已经存在的公司。在镜像公司里,每位真实员工都有一个数字分身:一个 Agent,在组织图上的位置和它代表的人相同,本人通过自己的聊天应用和它对话。++++搭建镜像公司,从**员工数字分身公司**示例开始。CEO 会向你要真实的组织图:姓名、职位、汇报关系,以及每个人准备用哪个聊天机器人。你确认名单后,它为每个人招一个分身,照搬汇报关系,并为每个分身写一份简介和一页手册。接下来,你以董事会的身份,用和其他对话一样的**远程控制**对话框,把每个分身的工位对话绑定到对应本人的机器人上;绑定需要 Project 所有者的权限,如果是微信机器人,还要由这位同事用自己的手机扫码。分身建议用飞书、Telegram 或微信:QQ 机器人只能回复本人刚发来的消息,所以 QQ 分身能回答问题,却没法主动去问本人。++日常使用中,员工不必再琢磨该问谁,也不必打开群聊干等。一个问题会这样在组织里流转:++1. 员工在自己的聊天应用里向分身提问。+2. 分身能答的,就根据手册直接回答。+3. 答不了的,分身在全员频道里 `@` 负责这个话题的同事的分身。+4. 那个分身通过本人的机器人去问本人,再把答案转回来。+5. 答案回到提问的员工手里;两个分身把它记进手册,下一个人不用问就能查到。++实际上,「谁知道什么」这类知识,从每个人的记忆里搬进了一个共享的书面结构;每解答一个问题,这个结构就完善一分。++## 公司模式还做不到什么++公司模式目前还在内测,管理员开启之前一直是关闭的。下面几项限制,决定了眼下能在多大程度上依赖它:++- **审批只是约定,并不强制**。重要决策要交给董事会,这条规则写在 Skill 和手册里,但服务器不会阻止 Agent 自行招人、调整预算或移动工单。工具审批也不会送到你面前:组织的会话无人值守,因此从不等人——审批模式本该交给人拍板的工具调用,在发起的那一刻就被拒绝,Web App 里不会出现待审批的条目,也不会有运行挂在那里。默认的**全部放行**下,所有调用照常执行;改成**只读**后,读取照常,其余一律被拒,而员工会把这次拒绝当作请示董事会的信号,在全员频道里发问,而不是换个写法重试。想让组织无人值守地跑下去,就该保持默认的审批模式。+- **预算暂停是软性的**。预算用完只会暂停日历。`@` 提及和直接对话照常送达,已经在跑的运行不会被中止,两次检查之间的开销也可能超出预算。没有设自己预算的员工,只受上级预算的限制。+- **镜像公司还处在早期阶段**。分身根据你描述的组织图创建,而不是从 HR 系统导入,每个机器人都要手动绑定。本人先给机器人发过消息,机器人才能回复;绑定也没有发送者白名单,所以每个分身的机器人都不要公开。分身之间的转达在全员频道里进行,所有成员都看得到;默认情况下,`@` 提及链最多传递三跳。+- **工作只在服务器运行时进行**。PenguinHarness 停止期间到期的日历事件,之后不会补跑。++## 如何试用++PenguinHarness 0.2.13 及之后的版本提供公司模式。++1. 以管理员身份打开**系统设置**,在**服务器**分组下进入**公司模式**页,再打开**启用公司模式**开关。+2. 在侧栏里,从**开发**切换到**公司**。+3. 选择**新建组织**,填写**显示名**;再写一句使命,或者从示例里选一个(比如**员工数字分身公司**),并设置 **CEO 预算**。+4. 填写**组织 id**,或者点**用 AI 生成**,根据显示名生成一个,然后点**创建**。++++想了解各部分的工作方式,请查阅[公司模式文档](https://penguin.ooo/docs/company-mode)。公司模式还在内测,遇到问题请告诉我们。++## 对人来说,什么变了++从工作台到共享空间,Agent 成了协作者。从群聊到组织,每个 Agent 有了明确的职责、一位上级、一份预算和一份书面记录,负责的人也得以治理这个系统,而不是一步一步地操作它。++我们也不认为组织就是最终形态。还有一些问题没有答案:该给 Agent 多大的权限,如何评估整个组织而不只是单个 Agent,一家能自我进化的公司又该怎么运转。PenguinHarness 已经能用 Benchmark 优化单个 Agent,把这件事延伸到整家公司,是我们想探索的方向。但对于长期、多人协作的工作来说,人类早已摸索出的那套组织结构,是比一条越拉越长的聊天记录更好的起点。diff --git a/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.en.md b/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.en.mdnew file mode 100644index 00000000..e5b20aa7--- /dev/null+++ b/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.en.md@@ -0,0 +1,157 @@+---+title: "Connect your agent to Feishu, QQ, Telegram or WeChat, and use it from anywhere"+date: 2026-09-16+category: practice+excerpt: Bind a PenguinHarness conversation to a chat bot and talk to your agent from your phone. This tutorial starts with WeChat, the quickest channel to set up; the same dialog covers Feishu, Telegram and QQ.+---++An agent you can only reach from a browser tab is an agent you stop using the moment you leave your desk. PenguinHarness can bind any conversation to a chat bot on Feishu, Telegram, QQ or WeChat. Once the binding is on, a message you send the bot from your phone arrives in that conversation as if you had typed it in the Web App, and the agent's replies come back to the same chat.++In this tutorial you will create a conversation, open **Remote control** from its right-click menu, and bind it to WeChat. WeChat is the quickest channel to set up: you scan a QR code, and there is no developer console, no app review and no credential to copy. By the end, you will send the agent a Task from your phone and read its reply in the chat.++The last part of the tutorial covers what changes for Feishu, Telegram and QQ, and the limits and safety rules that apply once a conversation is bound.++## Prerequisites++- PenguinHarness running on a computer that stays on while you are away: the desktop app, or the server started with `penguin web`. Bot messages are delivered only while it runs.+- At least one model configured on the **Models** page, so the agent can answer.+- The owner role in the Project. Only the Project owner can save a bot's credentials and turn a connection on; other members can see a binding and run its tests.+- For WeChat: WeChat on your phone.+- For the other channels: a Feishu account that can create a self-built app, a Telegram account, or a QQ account registered as a developer on the QQ open platform.++## How binding works++A binding connects one conversation to one chat bot. You manage it in the conversation's **Remote control** dialog, which has one tab per channel, and each channel keeps its own credentials.++## Step 1: Create a conversation++A binding attaches to an existing conversation, so start one first. Messages you send the bot later arrive in this conversation.++1. In the sidebar, select **New chat**.+2. Pick the agent and the model you want to reach from your phone, and a Workspace that holds the files the agent should work with.+3. Send a first message, for example "Check logs/app.log and tell me whether anything needs attention."++The conversation exists once the first message is sent. Until then the draft has nothing to bind, and the **Remote control** panel shows **Available once the conversation starts**.++The message box's toolbar also shows the approval mode. New conversations start in **Approve everything**, so tool calls run without asking. Keep that in mind before you bind a bot: anyone who can message the bot can then have the agent run its tools. Limits and safety, near the end of this tutorial, covers the options.++++## Step 2: Open Remote control++The binding is set up in the **Remote control** dialog, which opens from the conversation's right-click menu.++1. In the sidebar, right-click the conversation's title.+2. In the menu, select **Remote control**.++The same menu opens with a long press on a touch screen, with **Shift+F10** on the keyboard, or from the **More** button that appears when you hover over the row.++++You can also keep Remote control open beside the conversation: select the **Right sidebar** button at the top right of the conversation, and open the **Remote control** panel there. It holds the same settings as the dialog.++## Step 3: Bind WeChat++The WeChat bot's credential comes from scanning a QR code with your phone, so there is nothing to register or fill in.++1. At the top of the dialog, select the **WeChat** tab.+2. Select **Connect by scanning**. A QR code appears with **Waiting for the code to be scanned in WeChat…**.+3. Scan the code with WeChat on your phone.+4. If your phone shows a number, type it into **Pairing code** and select **Confirm**.+5. Confirm the authorization on your phone. The dialog shows **Saved the credential for bot … — the connection can be enabled now**.+6. Turn on **Enable connection**. **Connection status** changes to **Connected**, and the conversation's row in the sidebar shows a paper-plane mark.+7. Wait about 15 seconds, then find the bot in WeChat and send it a message.++++> **Wait before the first WeChat message.** When the connection opens, PenguinHarness first clears out anything the WeChat channel queued earlier, and a message that arrives during those first seconds is cleared with it. Wait until the status has shown **Connected** for about 15 seconds before you send your first message. If no reply comes, send the message again. After that, messages arrive as soon as they are sent.++When the message arrives, the dialog shows **Last message received** with the time, and the agent starts working.++++To check the delivery path without waiting for a real reply, select **Send test message**. It becomes available after the bot has received one message, because until then it does not know which chat to write to.++## Step 4: Talk to the agent from your phone++Now drive the conversation from your phone. A message you send the bot starts a Task in the conversation exactly as if you had typed it in the Web App. If the agent is busy, the message waits in the queue and runs next. What the agent writes comes back to the chat, and the whole exchange stays in the conversation, so you can pick it up in the browser later.++++A few behaviors are worth knowing:++- **Text, images and files** travel in both directions on WeChat. A voice message arrives as WeChat's own transcription. When the agent writes a file during a run and names it in its reply, the file follows the text into the chat; a run sends at most five files, images up to 10 MB and other files up to 30 MB. A file the channel cannot take is not announced in the chat — it is recorded in the Cost Center's error records.+- **Approvals stay in the Web App.** In the default **Approve everything** mode, tool calls run without asking. If you switch the conversation to a mode that asks, such as **Approve read-only**, the chat receives a reminder whenever a tool call is waiting, and the run waits until you approve it in the browser.+- **Runs started in the Web App are mirrored** to the chat too, after the bot has received its first message.++Three switches shape the replies:++| Switch | What it does |+| --- | --- |+| **Final reply only** | Sends only the last message of a run instead of every message. |+| **One message per line** | Splits a reply into one chat message per line. |+| **Render Markdown** | On by default, turns the reply's Markdown into formatting the app can display. |++## Step 5: Bind Feishu, Telegram or QQ++Every channel follows the same pattern: select its tab, provide its credentials, select **Save**, then turn on **Enable connection**. The switch stays unavailable until the credentials are saved. Each channel's **Set up the bot** section in the dialog lists the steps, with a link to the platform.++### Feishu (and Lark)++1. In the Feishu developer console, create a self-built app.+2. Enable the bot capability for the app.+3. Subscribe to the message-receive event, with the subscription mode set to long connection.+4. Copy **App ID** and **App Secret** from the app's credentials page into the dialog. For Lark, set **API domain** to `https://open.larksuite.com`; for Feishu, keep `https://open.feishu.cn`.+5. Publish an app version and get it approved.+6. Select **Save**, turn on **Enable connection**, then message the bot once in Feishu.++Feishu works in groups too: mention the bot, and the mention is removed before the message reaches the agent. To let the agent read images and files you send, the app also needs the permission to read message resources.++++### Telegram++1. In Telegram, open @BotFather and send `/newbot`.+2. Name the bot as prompted, then copy the **Bot Token** @BotFather returns into the dialog.+3. Select **Save** and turn on **Enable connection**.+4. Find the bot in Telegram and send it a message.++In groups, Telegram's Group Privacy setting is on by default: a bot that is not a group administrator receives only commands addressed to it. **Test connection** tells you when Group Privacy is on for your bot.+++1. On the QQ open platform, register as a developer and create a bot.+2. In the dialog, select **Connect by QR** and scan the code with QQ on your phone. On the page that opens, pick the bot and confirm; the dialog saves its credentials for you. To enter them by hand instead, copy **App ID** and **App Secret** from the bot's development settings, set the bot's event subscription mode to WebSocket (no callback URL is needed), and select **Save**.+3. On the QQ open platform, add your own QQ account or a test group to the bot's sandbox allowlist.+4. Turn on **Enable connection**, then message the bot in QQ.++QQ lets a bot reply only to a message you have just sent. Runs you start in the Web App are therefore not mirrored to QQ, and a few minutes after your last QQ message, replies can no longer be delivered. Send the bot another message to continue. One QQ message can receive at most four replies (five in a group); when a run produces more, the last reply carries the rest.++QQ also carries text only: the bot does not read images or files you send, and the agent cannot send files to QQ.++## Limits and safety++A bound conversation comes with a few fixed rules.++| Rule | What it means |+| --- | --- |+| One channel per conversation | Only one channel's connection can be enabled on a conversation at a time. |+| One conversation per bot | A bot can be enabled on one conversation at a time. To move it, turn the connection off where it is on, then enable it on the other conversation. The credentials stay saved. |+| The bot speaks second | A bot cannot start a chat. It needs one message from you before it knows where to send replies. |+| WeChat: direct chats only | Mentioning the WeChat bot in a group does nothing. Message it directly. |+| The server must run | Messages sent while PenguinHarness is stopped are not delivered later. |++> **Anyone who can message the bot can drive the conversation.** A binding has no allowlist of senders, and a new conversation approves every tool call. Keep the bot private, do not add it to groups you do not control, and give a conversation reachable from a chat app only the Workspace and tools you are comfortable exposing. If the bot could reach other people, switch the conversation to **Approve read-only**, so that anything beyond reading waits for your approval in the browser.++## Troubleshooting++- **Enable connection is unavailable.** Save the credentials first, and turn off any other channel enabled on this conversation. Only the Project owner can turn a connection on.+- **Connection status shows an error.** Check the credentials. For Feishu, also check the **API domain** and that the event subscription uses long connection.+- **Send test message is unavailable.** Send the bot one message first.+- **The first WeChat message got no reply.** Send it again once the status has shown **Connected** for about 15 seconds. The note in Step 3 explains why.+- **The bot ignores a Telegram group.** Make the bot a group administrator, or turn off Group Privacy with @BotFather and add the bot to the group again.+- **Replies stop arriving in QQ.** More than a few minutes have passed since your last QQ message. Send the bot a new message.++## Wrap-up++You bound a conversation to WeChat, sent it a Task from your phone, and saw the reply come back to the chat and into the Web App. Feishu, Telegram and QQ use the same dialog, each with its own credentials. For every field and switch in the dialog, see the [Remote control documentation](https://penguin.ooo/docs/remote-control).diff --git a/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.zh.md b/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.zh.mdnew file mode 100644index 00000000..55943ae1--- /dev/null+++ b/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.zh.md@@ -0,0 +1,157 @@+---+title: "把你的 Agent 接入飞书、QQ、Telegram 或微信,随时随地使用"+date: 2026-09-16+category: practice+excerpt: "把 PenguinHarness 对话绑定到聊天机器人,随时用手机和 Agent 对话。本教程从配置最快的微信讲起,同一个对话框也支持飞书、Telegram 和 QQ。"+---++一个只能在浏览器标签页里使用的 Agent,你一离开工位就用不上了。PenguinHarness 可以把任意一段对话绑定到飞书、Telegram、QQ 或微信上的聊天机器人。绑定生效后,你在手机上发给机器人的消息会进入这段对话,就像在 Web App 里输入的一样;Agent 的回复也会发回同一个聊天。++在这篇教程里,你会创建一段对话,从右键菜单打开**远程控制**,再把对话绑定到微信。微信是配置最快的渠道:扫一个二维码就行,不用进开发者后台,不用等应用审核,也不用复制任何凭证。读到最后,你就能在手机上给 Agent 发一个 Task,并在聊天里看到它的回复。++教程最后一部分介绍飞书、Telegram 和 QQ 有哪些不同,以及对话绑定后要遵守的限制和安全规则。++## 准备工作++- PenguinHarness 运行在一台你离开时也不关机的电脑上:桌面应用,或者用 `penguin web` 启动的服务器。只有它在运行,机器人消息才能送达。+- 在**模型库**页面至少配置一个模型,Agent 才能回答。+- 你是 Project 的所有者。只有所有者能保存机器人的凭证、开启连接;其他成员可以查看绑定、运行测试。+- 微信渠道:手机上装有微信。+- 其他渠道:一个能创建自建应用的飞书账号、一个 Telegram 账号,或者一个已在 QQ 开放平台注册为开发者的 QQ 账号。++## 绑定是怎么回事++绑定把一段对话连到一个聊天机器人。绑定在对话的**远程控制**对话框里管理:每个渠道占一个标签页,凭证也各自保存。++## 第 1 步:创建对话++绑定要挂在已有的对话上,所以先创建一段对话。之后你发给机器人的消息,都会进入这段对话。++1. 在侧栏选择**新建对话**。+2. 选好你想在手机上使用的 Agent 和模型,再选一个放着 Agent 要处理的文件的 Workspace。+3. 发出第一条消息,例如「看一下 logs/app.log,有没有需要处理的问题?」++第一条消息发出后,对话才算真正创建。在那之前,草稿还没有可绑定的对象,**远程控制**面板会显示**发送第一条消息后可用**。++消息框的工具栏里还显示着审批模式。新对话默认是**全部放行**,工具调用不经询问直接执行。绑定机器人之前要记住这一点:任何能给机器人发消息的人,都能让 Agent 运行它的工具。本教程末尾的「限制与安全」介绍了可以怎么做。++++## 第 2 步:打开「远程控制」++绑定在**远程控制**对话框里设置,这个对话框从对话的右键菜单打开。++1. 在侧栏里右键点击对话标题。+2. 在菜单中选择**远程控制**。++在触屏上长按、在键盘上按 **Shift+F10**,或者把鼠标悬停在对话行上、点出现的**更多**按钮,打开的都是同一个菜单。++++你也可以让远程控制一直显示在对话旁边:点对话右上角的**右侧栏**按钮,在右侧栏里打开**远程控制**面板。面板里的设置和对话框完全相同。++## 第 3 步:绑定微信++微信机器人的凭证用手机扫码就能拿到,不用注册,也没有表单要填。++1. 在对话框顶部选择**微信**标签页。+2. 点**扫码连接**。对话框里出现二维码,并显示**等待在微信中扫码…**。+3. 用手机上的微信扫码。+4. 如果手机上显示一串数字,把它填进**配对码**,再点**确认**。+5. 在手机上确认授权。对话框会显示**已保存机器人 … 的凭据,可以启用连接了**。+6. 打开**启用连接**开关。**连接状态**变为**已连接**,侧栏中这段对话旁会出现纸飞机图标。+7. 等大约 15 秒,再在微信里找到这个机器人,给它发一条消息。++++> **发第一条微信消息前,先等一等**。连接刚建立时,PenguinHarness 会先清空微信渠道之前排队的消息,最初几秒内到达的消息也会被一并清掉。等**连接状态**显示**已连接**大约 15 秒后,再发第一条消息。如果没有回复,就再发一次。之后的消息都是即发即达。++消息送达后,对话框会显示**最近收到消息**和时间,Agent 随即开始工作。++++如果不想等真实回复,只想确认链路是否通畅,可以点**发送测试消息**。机器人收到第一条消息后,这个按钮才可用,因为在那之前,它还不知道该把消息发到哪个聊天。++## 第 4 步:在手机上和 Agent 对话++现在可以在手机上操控这段对话了。你发给机器人的每条消息,都会在对话里启动一个 Task,和在 Web App 里输入完全一样。Agent 正忙时,消息会先排队,轮到了再运行。Agent 写下的内容会发回聊天,完整的往来也都留在对话里,之后回到浏览器还能接着处理。++++有几点值得了解:++- **文字、图片和文件**在微信上都能双向传输。语音消息到达时,是微信自带的转写文字。Agent 在运行中写出文件、并在回复里提到它时,文件会跟着文字一起发到聊天里;一轮运行最多发送五个文件,图片不超过 10 MB,其他文件不超过 30 MB。渠道收不下的文件不会在聊天里说明,而是记入成本中心的异常记录。+- **审批仍在 Web App 里完成**。在默认的**全部放行**模式下,工具调用不经询问直接执行。如果把对话切换到会询问的模式,比如**放行只读**,每当有工具调用等待审批,聊天里都会收到提醒,运行也会一直等到你在浏览器里批准。+- **在 Web App 里启动的运行也会同步到聊天**,前提是机器人已经收到过第一条消息。++回复的形式由三个开关决定:++| 开关 | 作用 |+| --- | --- |+| **只发送最终回复** | 只发送一次运行的最后一条消息,而不是每条都发。 |+| **每行一条消息** | 把回复按行拆开,每行作为一条聊天消息发送。 |+| **渲染 Markdown** | 默认开启,把回复里的 Markdown 转成应用能显示的格式。 |++## 第 5 步:绑定飞书、Telegram 或 QQ++每个渠道的流程都一样:选择对应的标签页,填入凭证,点**保存**,再打开**启用连接**开关。凭证保存之前,这个开关一直不可用。对话框里每个渠道都有**如何创建机器人**一节,列出了具体步骤,并附上平台链接。++### 飞书(及 Lark)++1. 在飞书开发者后台创建一个企业自建应用。+2. 为应用开通机器人能力。+3. 订阅「接收消息」事件,事件订阅方式选择「长连接」。+4. 把应用「凭证与基础信息」页上的 **App ID** 和 **App Secret** 复制到对话框里。如果用的是 Lark,把 **API 域名**设为 `https://open.larksuite.com`;飞书保持 `https://open.feishu.cn` 不变。+5. 发布一个应用版本,并通过审核。+6. 点**保存**,打开**启用连接**开关,然后在飞书里给机器人发一条消息。++飞书在群聊里也能用:发消息时 @机器人即可,消息交给 Agent 之前会去掉这个 @。要让 Agent 能读取你发送的图片和文件,应用还需要开通读取消息资源的权限。++++### Telegram++1. 在 Telegram 里打开 @BotFather,发送 `/newbot`。+2. 按提示给机器人起名,然后把 @BotFather 返回的 **Bot Token** 复制到对话框里。+3. 点**保存**,打开**启用连接**开关。+4. 在 Telegram 里找到这个机器人,给它发一条消息。++在群聊里,Telegram 的 Group Privacy 设置默认开启:不是群管理员的机器人,只能收到专门发给它的命令。如果你的机器人开着 Group Privacy,**测试连接**会提示你。+++1. 在 QQ 开放平台注册成为开发者,并创建一个机器人。+2. 在对话框里选择**扫码连接**,用手机上的 QQ 扫码,在打开的页面里选中这个机器人并确认,对话框会替你保存凭证。如果想手动填写,就在机器人的「开发设置」页复制 **App ID** 和 **App Secret**,在「开发配置」里把事件订阅方式设为 WebSocket(不需要填回调地址),再点**保存**。+3. 在 QQ 开放平台上,把你自己的 QQ 号或一个测试群加入机器人的沙箱白名单。+4. 打开**启用连接**开关,然后在 QQ 里给机器人发一条消息。++QQ 只允许机器人回复你刚发出的消息。所以在 Web App 里启动的运行不会同步到 QQ;距离你上一条 QQ 消息几分钟后,回复就发不出去了。想继续,就再给机器人发一条消息。一条 QQ 消息最多能收到 4 条回复(群聊里是 5 条);一次运行的回复超过这个数时,剩下的内容会合并到最后一条回复里。++QQ 还只能传输文字:机器人读不到你发送的图片和文件,Agent 也无法向 QQ 发送文件。++## 限制与安全++绑定后的对话有几条固定规则。++| 规则 | 说明 |+| --- | --- |+| 一段对话一个渠道 | 同一时间,一段对话上只能启用一个渠道的连接。 |+| 一个机器人一段对话 | 一个机器人同一时间只能在一段对话上启用。要换到另一段对话,先在原来的对话上关闭连接,再到新对话上启用。凭证会一直保留。 |+| 机器人不能先开口 | 机器人无法主动发起聊天。它要先收到你的一条消息,才知道把回复发到哪里。 |+| 微信只支持单聊 | 在群里 @ 微信机器人不会有任何反应,请直接给它发消息。 |+| 服务器必须保持运行 | PenguinHarness 停止期间发出的消息,之后不会补发。 |++> **任何能给机器人发消息的人,都能操控这段对话**。绑定没有发送者白名单,新对话又默认放行所有工具调用。不要公开机器人,也不要把它拉进你管不了的群;能从聊天应用访问的对话,只给它配你不怕暴露的 Workspace 和工具。如果机器人可能被别人找到,就把对话切换到**放行只读**,读取以外的操作都会在浏览器里等你批准。++## 常见问题++- **「启用连接」开关不可用**。先保存凭证,并关闭这段对话上已经启用的其他渠道。只有 Project 所有者能开启连接。+- **「连接状态」显示错误**。检查凭证是否正确。飞书渠道还要检查 **API 域名**,并确认事件订阅用的是长连接。+- **「发送测试消息」不可用**。先给机器人发一条消息。+- **第一条微信消息没有回复**。等**连接状态**显示**已连接**大约 15 秒后,再发一次。第 3 步的提示说明了原因。+- **机器人不理会 Telegram 群里的消息**。把机器人设为群管理员,或者用 @BotFather 关闭 Group Privacy,再把机器人重新拉进群。+- **QQ 里收不到回复了**。距离你上一条 QQ 消息已经超过几分钟。给机器人发一条新消息即可。++## 小结++你把一段对话绑定到了微信,在手机上给它发了一个 Task,并看到回复既发回了聊天,也出现在 Web App 里。飞书、Telegram 和 QQ 用的是同一个对话框,各自保存自己的凭证。对话框里每个字段和开关的详细说明,见[远程控制文档](https://penguin.ooo/docs/remote-control)。diff --git a/packages/landing/content/blog/create-evaluate-evolve-agents.en.md b/packages/landing/content/blog/create-evaluate-evolve-agents.en.mdnew file mode 100644index 00000000..eb862d10--- /dev/null+++ b/packages/landing/content/blog/create-evaluate-evolve-agents.en.md@@ -0,0 +1,172 @@+---+title: "Create, evaluate and evolve as many agents as you like"+date: 2026-09-16+category: practice+excerpt: Have AI write a Benchmark and take a baseline score, ask AI what a case tests, replace the Benchmark when it needs to change, then evaluate your agents and optimize them, with an Optimizer that improves the agent and an Evaluator that scores it strictly.+---++Most agent projects stall at the same point: you change a prompt, try two or three questions by hand, and cannot tell whether the agent got better or you got lucky. The Evaluation Center in PenguinHarness replaces that guesswork with a repeatable loop.++A Benchmark is a set of cases, each with a scoring rubric. You evaluate an agent against a Benchmark to get a score, and you can let AI optimize the agent against it. Each agent and each Benchmark is a directory in your Project, and there is no limit on how many of either you create.++This tutorial is for anyone who runs agents in PenguinHarness and wants to know whether a change actually helped. In it, you will:++- have AI write a Benchmark for an agent and take its first score;+- open a case and ask AI what it is testing;+- replace the Benchmark with an improved one, and delete the old one;+- evaluate an agent, then optimize it, and read the results.++By the end, you will have a published Benchmark, a chart that compares every version you have tested, and, if an optimization round beats the baseline, an improved version of your agent.++## Prerequisites++- PenguinHarness 0.2.13 or later, as the desktop app or the Web App.+- A model configured on the **Models** page.+- An agent to test: any agent you created on the **Agents** page, or **General Agent** (`default_agent`), the agent every Project starts with.++The agent that carries out each step needs the Skills from the `agent-tuning` plugin: `benchmark-design`, `agent-evaluation` and `agent-optimization`. General Agent has them preinstalled, and the dialogs below pick it by default.++## How the loop fits together++The Evaluation Center divides the work among four roles:++| Role | What it does | What it may not do |+| --- | --- | --- |+| Builder | Writes the cases and rubrics, trial-runs them to calibrate difficulty, and records the baseline score. | Change the agent under test. |+| Agent under test | Works on one case at a time, in a fresh Workspace that holds only the case's task materials. | See the rubric. |+| Evaluator | Runs the agent under test once on one case, and scores the result strictly against the rubric. | Change the agent or the Benchmark. |+| Optimizer | Reads the scores, the case statements and the Traces of the test runs, and changes the agent one hypothesis at a time. | Read rubrics, reference answers or the Evaluator's reasoning. |++You start the Builder and the Optimizer from the Evaluation Center's dialogs, each in a conversation of its own. An evaluation also runs in a conversation you start, where the **Evaluator agent** coordinates the work. Each Evaluator that scores a run is a subagent: an evaluation, or a round of optimization, sends out one Evaluator for every case and run.++++The Evaluator and the Optimizer pull in opposite directions on purpose. The Evaluator judges strictly, against a rubric the Optimizer never reads. The Optimizer tries as hard as it can to raise the score, but because it cannot see how answers are graded, the dependable way to raise the score is to make the agent better at the task.++## Step 1: Open the Evaluation Center++The tutorial starts on the Evaluation Center page. In the sidebar, select **Evaluation Center**.++The page has three cards that summarize the workflow (**Create**, **Evaluate**, **Optimize**), followed by the Project's Benchmarks. Each Benchmark card shows its number of cases, the agents it has tested, a score trend and the latest score.++++## Step 2: Create a Benchmark with AI++In this step, AI writes your first Benchmark: a set of cases with rubrics, calibrated so your agent has room to improve.++1. At the top right, select **Create with AI**.+2. In **Test Agent**, pick the agent the cases are for.+3. Describe the capability and the scenarios you want to test, or select one of the examples under **Try an example**. A good description names what makes the task hard: conflicting sources, missing information, strict formats.+4. Select **Edit in a new conversation**.++++PenguinHarness opens a new conversation with the full prompt filled in and the `benchmark-design` and `agent-evaluation` Skills selected. Nothing is sent yet, so you can still edit the prompt.++Before you send, check the model in the message box's toolbar. The Builder runs the agent under test on this conversation's model for its trial runs and for the baseline. Evaluations you start later from the **Evaluate** tab run the agent on the model it is configured with, and the chart draws a separate line for each model. To keep the baseline and your later scores on one line, pick the model the agent is configured with. When the prompt and the model are right, send the message.++The Builder now writes about three cases, each with a statement for the agent and a rubric worth 100 points. It trial-runs the cases and adjusts them for up to four rounds, aiming for a baseline below 50, because a Benchmark the agent already passes cannot show improvement. Each case runs once per trial. While this runs, the new Benchmark's card is marked **Being built**. When calibration finishes, the Builder records the agent's first score, the baseline, and publishes the Benchmark, as long as the baseline is below 85.++## Step 3: Read the Benchmark++Before you rely on any score, look at what the Builder produced. Select **View** on the Benchmark's card. The Benchmark page shows:++- **Cases**: every case in the Benchmark.+- **Score over time**: each point is one evaluation. Evaluations of the same agent on the same model and thinking level form one series, so you can follow an agent's versions over time.+- **Evaluations**: every evaluation, newest first, with the tested agent, its version, model, thinking level, score, cost and duration. Select a row to see the score of each case and each run.++++You will come back to the **Score over time** chart in Step 8, once it has more results on it.++## Step 4: Ask AI what a case is testing++A score only helps if you understand what earned it. In this step you open one case and ask AI to explain what it measures.++1. Next to a case, select **View details**. The case opens in a file browser with two folders: **Task materials**, which is what the agent under test receives, and **Scoring rubric**, marked **Hidden from Target Agent**.+2. Select **Ask AI**.+3. The suggested question is **Explain what this case tests and what a strong answer looks like**. Keep it, or pick another example, such as **What does the rubric reward?**+4. Select **Edit in a new conversation** and send the message.++++The agent receives the paths to the statement and the rubric, reads both, and explains the case in plain language. It only reads the case; it does not change it.++## Step 5: Replace the Benchmark with a better one++This step is optional: follow it when the Benchmark itself needs to change. A Benchmark's cases are frozen once it exists: neither the Web App nor the API edits a statement or a rubric. This keeps every score on one Benchmark comparable. To change the cases, you create a new Benchmark and retire the old one.++1. Ask AI what should change. On a case, the example question **How could the statement be clearer?** asks exactly that, and the answer describes how to write the case in the next Benchmark.+2. Select **Create with AI** again and pick the same **Test Agent**. In the description, name the new Benchmark and the one it replaces, and list the changes you want, for example: "Create `report-writing-v2`, based on `report-writing-v1`. Keep its three cases, make the expected length in case 2 explicit, and make the citation format in case 3 stricter."+3. Send the message and let the Builder create and calibrate the new Benchmark. It records a new baseline on it.+4. When the new Benchmark is published, go back to the Evaluation Center, select the trash icon on the old Benchmark's card, and select **Delete** to confirm. Only the Project owner can delete a Benchmark.++> **Deletion is permanent.** Deleting a Benchmark removes its cases and evaluation records. They cannot be restored.++## Step 6: Evaluate an agent++Evaluating gives an agent a score on a Benchmark. Use it to score another agent you want to compare, or the same agent after you changed it by hand.++1. On the Benchmark's card or page, select **Use**, then the **Evaluate** tab.+2. In **Tested agent**, pick the agent to score.+3. Leave **Evaluator agent** as **General Agent**, or pick another agent that has the `agent-evaluation` Skill.+4. Optionally change **Model of the evaluation conversation**, **Runs per case** and **Note**. That model runs the Evaluator agent's own conversation; the agent under test runs on the model it is configured with. **Runs per case** starts at the Benchmark's own count, which is 1 for a Benchmark built with AI; more runs average out lucky and unlucky runs.+5. Select **Edit in a new conversation**, then send.++++The Evaluator agent sends out one Evaluator subagent for every case and run. Each one gives the agent under test a fresh Workspace that contains only the case's task materials, runs it, and scores the result against the rubric. When all runs finish, the Evaluator agent averages the scores and records the evaluation. It appears on the chart as a new point, labelled with the agent, its model and its thinking level.++> **Where the conversations go.** The conversations an evaluation creates are filed under the **Evaluations** folder in the sidebar, so they do not crowd the agent's own conversation list.++## Step 7: Optimize an agent++Optimization needs a baseline for the agent on this Benchmark. If the agent was the **Test Agent** when the Benchmark was built, it already has one. Otherwise, evaluate it first (Step 6). The **Optimize** tab warns you when the selected agent has no baseline yet.++1. Select **Use**, then the **Optimize** tab.+2. In **Tested agent**, pick the agent to improve. The tab shows the current baseline and the target score.+3. Leave **Optimizer agent** as **General Agent**, or pick another agent that has the `agent-optimization` and `agent-evaluation` Skills.+4. Set **Round limit** (default 3) and **Target score** (by default, ten points above the baseline).+5. Optionally describe a **Focus**, for example "Focus on citation rules; leave the writing style alone."+6. Select **Edit in a new conversation**, then send.++++Every evaluation during optimization runs the agent on the model and thinking level its baseline recorded, whichever model the Optimizer's own conversation uses. Each round follows the same pattern:++1. The Optimizer reads the latest scores and the Traces of the test runs, and forms one falsifiable hypothesis about why the agent loses points.+2. It makes sure a snapshot of the current version exists, then makes one change: the agent's instructions, a focused Skill, or a safe configuration field.+3. Evaluator subagents run the full Benchmark against the changed agent.+4. If the total score is strictly higher, the change is kept as a new version of the agent. Otherwise the Optimizer restores the snapshot and tries a different hypothesis in the next round.++++The loop stops when the agent reaches the target score or the round limit runs out. Rejected attempts never reach the Benchmark's records; the conversation reports every round, including the ones that failed.++The separation between the two roles is written into their Skills. An Evaluator copies only the case's task materials into the test Workspace and keeps rubrics, reference answers and its scoring reasoning private. The Optimizer is instructed not to open rubrics or evaluation files, and to stop if private evaluation information ever reaches its context. Every read and every change is recorded in the Traces, so you can audit a run afterwards.++## Step 8: Compare agents and keep improving++Back on the Benchmark page, each kept version appears as a new point in the agent's series. In the example below, version 2 raised the score from 43.33 to 48.33, and version 3 reached 55, above the target of 54, so the loop stopped there. Evaluate other agents, or the same agent on a different model or thinking level, and each gets its own series on the same chart.++++Some ways to keep going:++- **Ask AI about an evaluation.** Select a row in **Evaluations**, then **Ask AI**, and try **Which cases are weakest, and what should change?**+- **Try more agents.** Create agents with different instructions or models on the **Agents** page, and evaluate each one on the same Benchmark.+- **Go back to an earlier version.** Each version the Optimizer changed leaves a snapshot, `snapshots/v<N>.tar.gz`, in the agent's directory. To restore one, open the agent's settings, select **Import snapshot** and choose that file; if PenguinHarness runs on another machine, copy the file to your computer first. Importing an older version asks you to confirm, and only the Project owner can import.++## Troubleshooting++- **A Benchmark card shows Creation failed.** Calibration produced no valid trial run, or the agent still scored 85 or more after the last round, so the Benchmark cannot be evaluated or optimized. Check the building conversation for failed trial runs, then delete the Benchmark and create it again, asking for harder cases if the agent scored too high.+- **The Use dialog warns that an agent lacks a Skill.** The Evaluator or Optimizer agent you picked is missing `agent-evaluation` or `agent-optimization` and will most likely not finish. Switch back to **General Agent**, or install the `agent-tuning` plugin on that agent.+- **The Optimize tab says the agent has no baseline.** Evaluate the agent on the **Evaluate** tab first (Step 6).+- **The baseline and later evaluations are on separate lines.** They ran on different models: the baseline on the model of the conversation that built the Benchmark, and evaluations from the **Evaluate** tab on the agent's configured model. See Step 2.++## Wrap-up++You had AI build a Benchmark and take a baseline, asked AI to explain a case, replaced the Benchmark with a better one, evaluated an agent, and let the Optimizer improve it against a strict Evaluator. Every case, score and version is a file in your Project, so you can inspect, back up and version all of it.++For every option in these dialogs, see the [Evaluation Center documentation](https://penguin.ooo/docs/evaluation-center). For the design of the loop, read [Self-improvement](https://penguin.ooo/docs/self-improvement).diff --git a/packages/landing/content/blog/create-evaluate-evolve-agents.zh.md b/packages/landing/content/blog/create-evaluate-evolve-agents.zh.mdnew file mode 100644index 00000000..f15325f8--- /dev/null+++ b/packages/landing/content/blog/create-evaluate-evolve-agents.zh.md@@ -0,0 +1,172 @@+---+title: "自由创建、评估、进化任意多个 Agent"+date: 2026-09-16+category: practice+excerpt: "让 AI 编写 Benchmark 并测出基线分,问 AI 一道题在考什么,Benchmark 需要调整时用新的替换旧的,再评估和优化你的 Agent:Optimizer 负责改进,Evaluator 负责严格打分。"+---++大多数 Agent 项目都卡在同一个地方:改一版提示词,手动试两三道题,说不清 Agent 是真的变好了,还是你运气好。PenguinHarness 的评估中心用一套可重复的循环取代这种猜测。++Benchmark 是一组题目,每道题带一份评分标准。用 Benchmark 评估一个 Agent,就能得到分数;你还可以让 AI 据此优化这个 Agent。每个 Agent、每个 Benchmark 都是 Project 里的一个目录,想建多少就建多少,没有上限。++这篇教程写给在 PenguinHarness 里运行 Agent、想知道改动到底有没有用的人。在教程里,你会:++- 让 AI 为一个 Agent 编写 Benchmark,并测出它的第一个分数;+- 打开一道题,问 AI 它在考什么;+- 用改进后的 Benchmark 替换旧的,并删掉旧的;+- 评估一个 Agent,再优化它,并读懂结果。++读完之后,你会得到一个已发布的 Benchmark 和一张能对比所有已测版本的图表;如果某一轮优化超过了基线分,还会得到一个改进后的 Agent 版本。++## 准备工作++- PenguinHarness 0.2.13 或更高版本,桌面应用或 Web App 都可以。+- 在**模型库**页面配置好模型。+- 一个待测的 Agent:你在**智能体**页面创建的任意 Agent,或者每个 Project 自带的 **General Agent**(`default_agent`)。++每一步里干活的 Agent 都需要 `agent-tuning` 插件里的 Skill:`benchmark-design`、`agent-evaluation` 和 `agent-optimization`。General Agent 已经预装了它们,下文的对话框默认也会选它。++## 循环如何分工++评估中心把工作分给四个角色:++| 角色 | 做什么 | 不能做什么 |+| --- | --- | --- |+| Builder(出题方) | 编写题目和评分标准,试跑题目来校准难度,并记录基线分。 | 修改被测 Agent。 |+| 被测 Agent | 一次做一道题,在一个全新的 Workspace 里工作,里面只有这道题的任务材料。 | 查看评分标准。 |+| Evaluator(评估方) | 在一道题上把被测 Agent 运行一次,严格按评分标准给结果打分。 | 修改 Agent 或 Benchmark。 |+| Optimizer(优化方) | 阅读分数、题干和测试运行的 Trace,一次按一个假设修改 Agent。 | 查看评分标准、参考答案或 Evaluator 的评分理由。 |++Builder 和 Optimizer 都是你从评估中心的对话框里启动的,各自在一段独立的对话里工作。评估也在你发起的一段对话里进行,由**执行评估的智能体**负责协调。每个给一次运行打分的 Evaluator 都是子 Agent:一次评估或一轮优化,会为每道题的每次运行各派出一个 Evaluator。++++Evaluator 和 Optimizer 是有意朝相反方向用力的。Evaluator 严格打分,而它依据的评分标准,Optimizer 始终看不到。Optimizer 会想尽办法提分,可它不知道答案是怎么判分的,要想稳定地提分,就只能让 Agent 真正更擅长这项任务。++## 第 1 步:打开评估中心++教程从评估中心页面开始。在侧栏选择**评估中心**。++页面顶部有三张卡片,概括了整个流程(**出题**、**评估**、**优化**),下面是 Project 里的 Benchmark。每张 Benchmark 卡片显示题目数量、测过的 Agent、分数趋势和最新分数。++++## 第 2 步:让 AI 创建 Benchmark++这一步,AI 会写出你的第一个 Benchmark:一组带评分标准的题目,难度经过校准,给你的 Agent 留出提升空间。++1. 点击右上角的**用 AI 创建**。+2. 在**被测智能体**里,选择这些题目面向的 Agent。+3. 描述你想测试的能力和场景,或者在**试试这些示例**下面选一个示例。好的描述会点明任务难在哪里:来源相互冲突、信息缺失、格式要求严格。+4. 选择**在新对话中编辑**。++++PenguinHarness 会打开一个新对话:完整的提示词已经填好,`benchmark-design` 和 `agent-evaluation` 两个 Skill 也已选中。消息还没有发出,你仍然可以修改提示词。++发送之前,先看一眼消息框工具栏里的模型。Builder 试跑题目、测基线分时,都会用这个对话的模型来运行被测 Agent;之后从**评估**标签页发起的评估,则用 Agent 自己配置的模型运行,而图表会为每个模型单独画一条线。想让基线分和之后的分数落在同一条线上,就选 Agent 配置的那个模型。提示词和模型都确认无误后,再发送。++接下来,Builder 会写出大约三道题,每道题包含一份给 Agent 的题干和一份满分 100 分的评分标准。它会试跑这些题目并加以调整,最多四轮,目标是让基线分低于 50,因为 Agent 已经能通过的 Benchmark 体现不出改进。每次试跑,每道题只运行一次。这期间,新 Benchmark 的卡片会显示**构建中**。校准结束后,只要基线分低于 85,Builder 就会记下 Agent 的第一个分数,也就是基线分,然后发布 Benchmark。++## 第 3 步:读懂 Benchmark++在相信任何分数之前,先看看 Builder 写出了什么。在 Benchmark 卡片上选择**查看**。Benchmark 页面包含:++- **题目**:Benchmark 里的每一道题。+- **分数随时间变化**:每个点代表一次评估。同一个 Agent 在同一模型、同一推理强度下的评估属于同一个系列,方便你追踪这个 Agent 各个版本的变化。+- **评估明细**:所有评估按从新到旧排列,列出被测 Agent、版本、模型、推理强度、分数、成本和耗时。点开一行,可以看到每道题、每次运行的分数。++++到第 8 步,图上有了更多结果,你会再回来看这张**分数随时间变化**图表。++## 第 4 步:问 AI 一道题在考什么++只有弄明白分数是怎么来的,分数才对你有用。这一步会打开一道题,让 AI 解释它在测什么。++1. 在一道题旁边选择**查看详情**。题目会在文件浏览器里打开,里面有两个文件夹:**任务材料**是被测 Agent 拿到的内容;**评分标准**标着**被测 Agent 不可见**。+2. 选择**问 AI**。+3. 默认的问题是**解释这道题考什么、怎样才算答好**。可以直接用,也可以换一个示例,比如**评分细则在奖励什么?**+4. 选择**在新对话中编辑**,然后发送消息。++++Agent 会拿到题干和评分标准的路径,把两份都读一遍,再用直白的语言解释这道题。它只读,不改。++## 第 5 步:用更好的 Benchmark 替换旧的++这一步是可选的,Benchmark 本身需要调整时再做。Benchmark 一旦创建,题目就冻结了:无论 Web App 还是 API,都改不了题干或评分标准。这样才能保证同一个 Benchmark 上的所有分数可以相互比较。要改题目,就创建一个新的 Benchmark,把旧的换下来。++1. 先问 AI 该改什么。题目上的示例问题「**题干怎样才能更清楚?**」问的正是这件事,回答会说明下一个 Benchmark 里这道题该怎么写。+2. 再次选择**用 AI 创建**,仍然选同一个**被测智能体**。在描述里写明新 Benchmark 的名字、它要替换的旧 Benchmark,以及你想要的改动,例如:「创建 `report-writing-v2`,基于 `report-writing-v1`。保留它的三道题,写明第 2 题期望的篇幅,并把第 3 题的引用格式要求得更严格。」+3. 发送消息,让 Builder 创建并校准新的 Benchmark。它会在新 Benchmark 上记下新的基线分。+4. 新 Benchmark 发布后,回到评估中心,点击旧 Benchmark 卡片上的垃圾桶图标,再点**删除**确认。只有 Project 所有者能删除 Benchmark。++> **删除无法撤销**。删除 Benchmark 会一并删掉它的题目和评估记录,之后无法恢复。++## 第 6 步:评估 Agent++评估会给 Agent 在某个 Benchmark 上打出分数。你可以用它给另一个想对比的 Agent 打分,也可以在手动改过 Agent 之后重新打分。++1. 在 Benchmark 卡片或页面上选择**使用**,再切到**评估**标签页。+2. 在**被测智能体**里选择要打分的 Agent。+3. **执行评估的智能体**保持 **General Agent** 即可,也可以换成其他装有 `agent-evaluation` Skill 的 Agent。+4. 按需修改**评估会话使用的模型**、**每题运行次数**和**说明**。这个模型用来运行执行评估的智能体自己的会话;被测 Agent 则用它自己配置的模型运行。**每题运行次数**默认取 Benchmark 自己的设置,用 AI 创建的 Benchmark 是 1;多跑几次,可以抵消单次运行的运气成分。+5. 选择**在新对话中编辑**,然后发送。++++执行评估的智能体会为每道题的每次运行派出一个 Evaluator 子 Agent。每个 Evaluator 给被测 Agent 准备一个全新的 Workspace,里面只有这道题的任务材料,然后运行被测 Agent,按评分标准给结果打分。全部运行结束后,执行评估的智能体算出平均分,记下这次评估。图表上会多出一个点,标注 Agent、模型和推理强度。++> **对话去了哪里**。评估创建的对话都收在侧栏的**评估任务**文件夹里,不会挤占 Agent 自己的对话列表。++## 第 7 步:优化 Agent++优化有个前提:Agent 在这个 Benchmark 上要有基线分。如果创建 Benchmark 时它就是**被测智能体**,基线分已经有了;否则先评估它(第 6 步)。所选 Agent 还没有基线分时,**优化**标签页会提醒你。++1. 选择**使用**,再切到**优化**标签页。+2. 在**被测智能体**里选择要改进的 Agent。标签页会显示当前的基线分和目标分数。+3. **执行优化的智能体**保持 **General Agent** 即可,也可以换成其他装有 `agent-optimization` 和 `agent-evaluation` 两个 Skill 的 Agent。+4. 设置**最多轮数**(默认 3)和**目标分数**(默认比基线分高 10 分)。+5. 按需填写**优化重点**,例如「重点改引用规则,写作风格不要动」。+6. 选择**在新对话中编辑**,然后发送。++++优化期间的每次评估,都沿用基线分记录的模型和推理强度来运行 Agent,与 Optimizer 自己的会话用什么模型无关。每一轮都遵循同样的模式:++1. Optimizer 阅读最新分数和测试运行的 Trace,提出一个可证伪的假设,解释 Agent 为什么丢分。+2. 确认当前版本已经有快照,然后只做一处修改:Agent 的指令、一个针对性的 Skill,或者一个安全的配置项。+3. Evaluator 子 Agent 用修改后的 Agent 跑完整个 Benchmark。+4. 总分严格提高,这次修改就保留为 Agent 的新版本;否则 Optimizer 恢复快照,下一轮换一个假设再试。++++Agent 达到目标分数,或者轮数用完,循环就会停止。被否决的尝试不会进入 Benchmark 的记录;对话里会汇报每一轮的情况,包括失败的轮次。++两个角色之间的隔离写进了各自的 Skill。Evaluator 只把这道题的任务材料复制进测试 Workspace,评分标准、参考答案和自己的评分理由一律保密。Optimizer 的 Skill 要求它不打开评分标准和评估文件,一旦私密的评估信息进入它的上下文,就立即停止。每一次读取、每一处修改都记录在 Trace 里,事后可以审计。++## 第 8 步:对比 Agent,持续改进++回到 Benchmark 页面,每个保留下来的版本都会作为一个新点,出现在这个 Agent 的系列里。在下图的例子中,版本 2 把分数从 43.33 提到 48.33,版本 3 达到 55,超过了 54 的目标,循环就在这里停止。再评估其他 Agent,或者让同一个 Agent 换一个模型、换一个推理强度,每个组合都会在这张图上有自己的系列。++++接下来还可以:++- **就某次评估问 AI**。在**评估明细**里选中一行,点**问 AI**,试试**哪些题最弱、该改什么?**+- **多试几个 Agent**。在**智能体**页面创建指令或模型不同的 Agent,在同一个 Benchmark 上逐个评估。+- **回到更早的版本**。Optimizer 修改某个版本之前,会在 Agent 的目录里给它留一份快照 `snapshots/v<N>.tar.gz`。要恢复某个版本,打开 Agent 的设置,选择**导入快照**,再选中对应的文件;如果 PenguinHarness 运行在另一台机器上,先把文件复制到你的电脑。导入更早的版本时会先请你确认,而且只有 Project 所有者才能导入。++## 常见问题++- **Benchmark 卡片显示「创建失败」**。校准没有产出有效的试跑,或者最后一轮之后 Agent 仍然得到 85 分及以上,这个 Benchmark 既不能评估,也不能优化。先到创建 Benchmark 的那段对话里查看失败的试跑,再删掉它重新创建;如果是 Agent 分数太高,就要求出更难的题。+- **「使用」对话框提示 Agent 缺少 Skill**。你选的执行评估或执行优化的智能体缺少 `agent-evaluation` 或 `agent-optimization`,多半跑不完。换回 **General Agent**,或者给这个 Agent 装上 `agent-tuning` 插件。+- **「优化」标签页提示 Agent 没有基线分**。先在**评估**标签页评估它(第 6 步)。+- **基线分和之后的评估不在同一条线上**。它们用的模型不同:基线分用的是创建 Benchmark 那段对话的模型,从**评估**标签页发起的评估用的是 Agent 配置的模型。见第 2 步。++## 小结++这一路,你让 AI 建好 Benchmark 并测出基线分,让 AI 解释了一道题,用更好的 Benchmark 替换了旧的,评估了一个 Agent,还让 Optimizer 在严格的 Evaluator 把关下改进了它。每道题、每个分数、每个版本都是 Project 里的文件,你可以随时查看、备份,也可以做版本管理。++这些对话框里每个选项的说明,见[评估中心文档](https://penguin.ooo/docs/evaluation-center)。想了解这套循环的设计,请阅读[自我进化](https://penguin.ooo/docs/self-improvement)。diff --git a/packages/landing/test/blog.test.ts b/packages/landing/test/blog.test.tsindex 69a5e9c8..0a7e3a54 100644--- a/packages/landing/test/blog.test.ts+++ b/packages/landing/test/blog.test.ts@@ -96,7 +96,7 @@ describe("frontmatter mapping (author / pinned / category)", () => {it("reads the pinned flag and sorts the pinned post first", () => {for (const locale of ["en", "zh"] as const) {const posts = postsFor(locale);- expect(posts.length).toBe(21);+ expect(posts.length).toBe(24);// The launch post stays the single pinned post; newer posts sort under it by date.expect(posts.filter((p) => p.pinned).map((p) => p.slug)).toEqual(["introducing-penguinharness",@@ -111,6 +111,9 @@ describe("frontmatter mapping (author / pinned / category)", () => {it("filters by the practice category, newest first", () => {expect(postsFor("en", "practice").map((p) => p.slug)).toEqual([+ // Both share 2026-09-16, so slug ascending is the tie-break.+ "connect-agents-to-feishu-qq-telegram-wechat",+ "create-evaluate-evolve-agents","natural-language-training-loop","penguin-harness-self-improvement-with-amd-gpu","local-agents-on-amd-gpus",@@ -138,7 +141,8 @@ describe("frontmatter mapping (author / pinned / category)", () => {it("filters by the perspectives category", () => {expect(postsFor("en", "perspectives").map((p) => p.slug)).toEqual([- // All three share 2026-07-22, so slug ascending is the tie-break.+ "agent-company-mode",+ // The next three share 2026-07-22, so slug ascending is the tie-break."ai-infrastructure-past-present-future","easiest-way-to-build-ai-agents-2026","simple-harness-is-all-you-need",