Skip to content

feat: add terminal buddy companion#2273

Open
zlycode01 wants to merge 1 commit into
esengine:mainfrom
zlycode01:feat/buddy
Open

feat: add terminal buddy companion#2273
zlycode01 wants to merge 1 commit into
esengine:mainfrom
zlycode01:feat/buddy

Conversation

@zlycode01
Copy link
Copy Markdown

What

为 Reasonix 增加了一个终端 Buddy 伴随功能。本次改动新增了可配置的 /buddy 斜杠命令、可持久化的 Buddy 配置、显示在输入区附近的小鲸鱼动画,以及一个可复用的 Buddy 状态层,用来 把 Agent 的运行状态映射成 Buddy 的不同情绪状态。
2c41f481754863925eb5b1147f4f37a9

Why

这个功能让 Reasonix 在终端里拥有一个轻量级的视觉伴随角色,同时不会影响模型上下文,也不会侵入核心 Agent 循环。Buddy 的状态映射逻辑和渲染逻辑是分离的,因此以后如果要扩展桌面端Buddy,也可以复用同一套状态逻辑,而不需要在不同 UI 里重复判断状态。

How to verify

 npm run typecheck
 npm run lint
 npx vitest run tests/buddy-state.test.ts tests/slash.test.ts tests/ui-slash-suggestions.test.tsx --silent

Checklist

  • npm run verify passes locally (lint + typecheck + tests + comment-policy gate)
  • No Co-Authored-By: Claude trailer in commits
  • Comments follow CONTRIBUTING.md (no module-essay headers, no incident history)
  • No edits to CHANGELOG.md — release notes are maintainer-written at release time

@esengine
Copy link
Copy Markdown
Owner

Needs a rebase against main — there's a conflict with recent changes on the input area. Once it's clean I'll take another look. The whale companion idea is fun.

@zlycode01
Copy link
Copy Markdown
Author

zlycode01 commented May 29, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants