<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenCode on 老张开工了</title>
    <link>/opencode/</link>
    <description>Recent content in OpenCode on 老张开工了</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Tue, 23 Jun 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="/opencode/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Harness 框架：OpenCode 与 superpowers</title>
      <link>/posts/2026/06/agent-harness/</link>
      <pubDate>Tue, 23 Jun 2026 00:00:00 +0000</pubDate>
      <guid>/posts/2026/06/agent-harness/</guid>
      <description>到目前为止，我们都是徒手实现 Agent 的循环。但真实的&amp;quot;Agent 工具&amp;quot;——Claude Code / Codex / OpenCode——是把 30 行的 ReAct 拆成几万行，里面装着计划、记忆、skill、子 agent、可观测性、权限。本章把这些&amp;quot;上层建筑&amp;quot;通称叫 Harness，让你从工具使用者升级到工具理解者。&#xA;12.1 Harness 是什么 Harness 这一词来自骑马——给马套上挽具，让人能驾驭马的能力，但不替代马。Agent Harness 同义：把 LLM 的&amp;quot;思考与产码&amp;quot;能力放到一个可控制的执行壳里，加 UI、加权限、加 memory、加 tool registry，但不替代 LLM 在循环中的主角身份。&#xA;┌────────────────────────────────────────────────────────────────┐ │ USER (intent) │ ├────────────────────────────────────────────────────────────────┤ │ Harness Layer │ │ ┌───────────┐ ┌─────────────┐ ┌───────────┐ ┌──────────────┐ │ │ │ UI / CLI │ │ Permission │ │ Memory │ │ Skill Loader │ │ │ └───────────┘ └─────────────┘ └───────────┘ └──────────────┘ │ │ ┌──────────────────────────────────────────────────────────┐ │ │ │ Agent Loop (ReAct) │ │ │ │ Thought → Action → Observation → .</description>
    </item>
    <item>
      <title>开发环境搭建：从 IDE 到 Agent CLI</title>
      <link>/posts/2026/06/ai-dev-env-setup/</link>
      <pubDate>Mon, 15 Jun 2026 00:00:00 +0000</pubDate>
      <guid>/posts/2026/06/ai-dev-env-setup/</guid>
      <description>工欲善其事必先利其器。本章搭建一个可工作 + 可沉淀的环境：从 L1 补全到 L3 Agent harness，从单一工具到多工具协作，附带一份让你能直接照抄的&amp;quot;五文件起手配置&amp;quot;。&#xA;8.1 起手目标 本章结束，你应有：&#xA;一个能跑 Claude Code / OpenCode 的终端 一个支持 OpenAI / Anthropic 互换的 model 后端配置 一份 AGENTS.md / CLAUDE.md / OPENCODE.md (按你选择的工具) 一份 .opencode/skills/ 或 .claude/skills/ 目录（即使空着） 一份 SECURITY.md 兜底 一个本地运行的开发日记脚本：记录你今天回到了哪些 prompt 8.2 选 L1：先架 IDE 这层 选项 A：VS Code + Copilot / Continue # 安装 VS Code（如未） winget install Microsoft.VisualStudioCode # Windows brew install --cask visual-studio-code # macOS # 装 GitHub Copilot 扩展 → 登录 → 默认开启 Tab 补全 # 或 安装 Continue（开源替代） → 配置自托管后端 优点：稳、所有 AI 协作出现兼容性的起点 缺点：还是要靠你切换工具</description>
    </item>
  </channel>
</rss>
