github spacering-net/codeg v0.38.0
codeg v0.38.0

2 hours ago

Release version 0.38.0

This one adds codeg-cli, a command that runs agents through codeg from a terminal, a script or a CI job and prints the reply as text or JSON, while each run stays a conversation you can open and carry on in codeg.
Alongside that: a browser picks up the server's new release after an upgrade, /deny in a chat channel no longer gives Claude Code a lasting permission, tables and code blocks have one border again with code highlighted in light mode, codeg restarts into the Dock icon you pinned on macOS, and installing or updating on Windows no longer hangs while stopping codeg-mcp.

New

  • codeg-cli runs agents through codeg from a terminal, a script or a CI job: codeg-cli -a claude_code -p "Review the latest commit" hands the prompt to the desktop app or codeg-server already running on this computer, or to a codeg-server elsewhere with --url and its token, and prints the reply as text, JSON or a stream of JSON events with documented exit codes, while the run is a conversation in codeg like any other. (#694 requested by @yasin1151)
  • --permissions decides how a run with no one watching answers the agent's permission requests: refuse (the default), allow reads only, allow, end the run, or leave them for you in codeg, and it only ever answers for this once, never with an "always" that would write a lasting rule into the agent's settings.
  • A run can go on in the background and be collected later with --detach, result and cancel, work in a git worktree of its own with --worktree, or go to several agents or assistants at once, and --output-schema has the agent hand back JSON that matches a schema you give.
  • codeg-cli also lists and installs agents, lists your assistants and runs saved automations, and --standalone gives a single command, in a CI job for example, a codeg-server of its own that goes away when the command ends.
  • Settings → System → Command-line access is the switch for codeg-cli on this computer and shows a command to try, while in the desktop app Install command-line tool puts codeg-cli on your PATH, and the app's own terminals and agents find its codeg-cli first.
  • Conversations started from the command line carry a terminal mark in the sidebar, and Show in Recent gains Command line to list only them.
  • codeg-cli comes with the desktop app, the server packages and the Docker image, install.sh and install.ps1 put it next to codeg-server, and from now on codeg-server's in-place update keeps it up to date. The command-line guide covers every command and option.

Improved

  • Local images also show in permission requests, plan approvals and a to-do's Result, as they do in replies.

Fixed

  • A browser picks up the server's new release after an upgrade, instead of sometimes opening the previous one from its cache, and a tab left open through the upgrade offers to reload. (#980 reported by @wuzhaozhongguo)
  • /approve and /deny in a chat channel answer just this once and pick the answer by what it does, not by where it sits in the list: for a call Claude Code flags as risky, /deny could give it a lasting permission while /approve and automatic approval refused it. A request with no one-time answer now waits for you in codeg.
  • Tables and code blocks in replies, thinking and Markdown previews have a single border again, with a code block's language, download and copy buttons in a bar above the code, and code in light mode is highlighted again.
  • A table opened full screen keeps its exit button on screen.
  • On macOS, codeg comes back after an update or a restart in the Dock icon you pinned, instead of as a second icon next to it.
  • Installing or updating codeg on Windows no longer hangs at "Stopping codeg-mcp and codeg-computer-helper processes…" on a PC where Windows Management Instrumentation (WMI) doesn't answer, and install.ps1 waits at most 15 seconds for it.
  • Two sub-agents delegated at the same moment into a folder codeg hadn't seen yet both start, instead of one of them failing.

Note

  • Once 0.38.0 has run, 0.37.0 no longer starts on the same data, because this version adds to codeg's database: codeg-server's Roll back would restore a 0.37.0 that won't start, and so would reinstalling an older desktop app, so copy codeg's data folder before you update if you may want to go back.
  • codeg-server updated in place from 0.37.0 doesn't get codeg-cli, since 0.37.0's updater knows nothing of it: take codeg-cli from the server package on this page and put it next to codeg-server. The desktop app's update, install.sh, install.ps1 and the Docker image all bring it.
  • Command-line access is on by default: any program running under your account can use codeg-cli to run agents through codeg, as it could already read codeg's data, so switch it off under Settings → System → Command-line access if you don't use codeg-cli.
  • On macOS, the update to 0.38.0 may still leave a second codeg icon in the Dock if codeg is pinned there, because the version you update from does that restart: quit codeg and open it from the pinned icon, and later updates aren't affected.
  • On Windows, codeg-cli, like codeg-server, needs the Microsoft Visual C++ Redistributable to start.
  • On Linux, codeg-cli, like codeg-server, needs glibc 2.34 or later and OpenSSL 3, which Ubuntu 22.04, Debian 12, RHEL 9 and later have, and there's no build for Alpine.

Thanks to @yasin1151 and @wuzhaozhongguo for the reports.


发布版本 0.38.0

这一版新增了命令行工具 codeg-cli:可以在终端、脚本或 CI 任务里通过 codeg 运行智能体,回复以文本或 JSON 输出,每次运行都是一个可以在 codeg 里打开、接着聊的会话。
同期还有:服务器升级后浏览器会用上新版本,消息渠道里的 /deny 不会再给 Claude Code 永久放行,表格和代码块恢复成一层边框、浅色模式下的代码重新有了语法高亮,macOS 上重启后会回到你钉在程序坞上的图标,Windows 上安装或更新不会再卡在停止 codeg-mcp 那一步。

新增

  • 新增 codeg-cli,可以在终端、脚本或 CI 任务里通过 codeg 运行智能体——codeg-cli -a claude_code -p "Review the latest commit" 会把提示词交给本机正在运行的桌面版或 codeg-server,加上 --url 和令牌也能交给别处的 codeg-server;回复以文本、JSON 或 JSON 事件流输出,退出码都有文档说明,每次运行都是 codeg 里的一个普通会话。(#694 由 @yasin1151 提出)
  • 用 --permissions 决定无人值守的运行怎么回应智能体的权限请求——拒绝(默认)、只允许读取、允许、结束运行,或者留给你在 codeg 里处理;每次都只回应这一次,从不选会在智能体设置里写下永久规则的「始终」。
  • 运行可以转到后台、稍后再取结果(--detach、result、cancel),也可以用 --worktree 在单独的 git worktree 里进行,或者一次发给多个智能体或助手;--output-schema 能让智能体按你给的 JSON Schema 交回结果。
  • codeg-cli 还能列出和安装智能体、列出助手、运行已保存的自动化;--standalone 会为单条命令(比如 CI 任务里的一条)启动一个专用的 codeg-server,命令结束就随之关闭。
  • 「设置 → 系统 → 命令行访问」是本机 codeg-cli 的开关,还会给出一条可以直接试的命令;桌面版在这里另有「安装命令行工具」按钮,把 codeg-cli 放到 PATH 上,桌面版自带的终端和智能体也会优先用它自己的 codeg-cli。
  • 从命令行启动的会话在侧栏带有终端标记,「最近显示」新增了「命令行」,可以只列出这些会话。
  • 桌面版、服务器安装包和 Docker 镜像都自带 codeg-cli,install.sh 和 install.ps1 会把它装在 codeg-server 旁边,以后 codeg-server 的在线升级也会一并更新它;所有命令和选项见命令行文档。

改进

  • 权限请求、计划审批和待办任务「结果」里的本地图片也能显示了,和回复里的一样。

修复

  • 服务器升级后浏览器会用上新版本,不会再有时从缓存里打开旧版本,升级时一直开着的页面也会提示你刷新。(#980 由 @wuzhaozhongguo 反馈)
  • 消息渠道里的 /approve 和 /deny 只回应这一次,并按选项的含义而不是在列表里的位置来选——以前遇到 Claude Code 标为有风险的调用,/deny 可能反而永久放行,/approve 和自动批准却会拒绝。没有「仅这一次」选项的请求,现在会留给你在 codeg 里处理。
  • 回复、思考和 Markdown 预览里的表格和代码块恢复成一层边框,代码块的语言、下载和复制按钮放在代码上方的标题栏里,浅色模式下的代码也重新有了语法高亮。
  • 全屏查看表格时,退出按钮不会再跑到屏幕外。
  • 在 macOS 上,更新或重启后 codeg 会回到你钉在程序坞上的那个图标,不会再在旁边多出一个。
  • 在 Windows 上安装或更新 codeg 不会再卡在「Stopping codeg-mcp and codeg-computer-helper processes…」——以前在 WMI 服务无响应的电脑上会一直等下去;install.ps1 查询 WMI 也最多等 15 秒。
  • 智能体同时把两个子任务委派到 codeg 还没记录过的同一个文件夹时,两个都能正常启动,不会再有一个失败。

注意

  • 0.38.0 运行过之后,0.37.0 就无法在同一份数据上启动了,因为这一版给 codeg 的数据库加了内容:codeg-server 的「回滚」恢复出来的 0.37.0 起不来,重新安装旧版桌面版也一样;之后可能还要退回 0.37.0 的话,更新前请先复制一份 codeg 的数据目录。
  • 从 0.37.0 在线升级的 codeg-server 拿不到 codeg-cli,因为 0.37.0 的升级程序还不认识它:请从本页的服务器安装包里取出 codeg-cli,放到 codeg-server 旁边。桌面版的更新、install.sh、install.ps1 和 Docker 镜像都会带上它。
  • 命令行访问默认开启——以你的账户运行的任何程序都能借 codeg-cli 通过 codeg 运行智能体,就像它们本来就能读取 codeg 的数据一样;用不到 codeg-cli 的话,可以在「设置 → 系统 → 命令行访问」里关掉。
  • 在 macOS 上,如果把 codeg 钉在了程序坞,更新到 0.38.0 的这一次仍可能多出一个 codeg 图标,因为这次重启由更新前的版本执行:退出 codeg 后从钉住的图标重新打开即可,之后的更新不受影响。
  • 在 Windows 上,codeg-cli 和 codeg-server 一样,要装了 Microsoft Visual C++ 可再发行程序包才能启动。
  • 在 Linux 上,codeg-cli 和 codeg-server 一样需要 glibc 2.34 及以上和 OpenSSL 3,Ubuntu 22.04、Debian 12、RHEL 9 及更新的系统都满足,暂时没有适用于 Alpine 的版本。

感谢 @yasin1151 和 @wuzhaozhongguo 的反馈。

Don't miss a new codeg release

NewReleases is sending notifications on new releases.