Repository navigation
feat(agents): add Freebuff as a first-class CLI agent - #17065
harkaranbrar7 wants to merge 14 commits into
Conversation
Adds the freebuff CLI as a supported agent, mirroring the existing codebuff entry: detection, launch, prompt injection (stdin-after-start), telemetry kind, picker catalog entry with bundled icon, mobile parity, i18n catalog key, and README badge across all translations. Moves getTuiAgentLaunchCommand into tui-agent-launch-command.ts (its natural home) to keep tui-agent-config.ts within the oxlint max-lines budget.
Greptile SummaryAdds Freebuff as a first-class CLI agent across desktop and mobile while preserving the existing launch-command behavior through a mechanical helper relocation.
Confidence Score: 5/5The PR appears safe to merge with Freebuff represented consistently across launch, detection, telemetry, desktop, mobile, localization, and documentation surfaces. No concrete blocking or independently actionable non-blocking defect remains after checking the new agent contract and the launch-helper relocation.
|
| Filename | Overview |
|---|---|
| src/shared/tui-agent-config.ts | Adds the Freebuff executable, expected-process, and stdin-after-start launch profile consistently with the existing Codebuff profile. |
| src/shared/tui-agent-launch-command.ts | Receives the launch-command selector without changing its platform or remote-host behavior. |
| src/renderer/src/lib/agent-catalog.tsx | Adds Freebuff to the localized desktop agent catalog with matching command, favicon domain, and homepage metadata. |
| mobile/src/tasks/mobile-tui-agents.ts | Mirrors Freebuff in the mobile selection order, labels, and favicon-domain metadata. |
| src/shared/agent-kind.ts | Adds an exhaustive Freebuff-to-telemetry mapping aligned with the expanded telemetry enum. |
| src/renderer/src/lib/agent-favicon-assets.ts | Bundles the new Freebuff icon for offline desktop rendering. |
Reviews (1): Last reviewed commit: "feat(agents): add Freebuff as a first-cl..." | Re-trigger Greptile
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 3f8c5d317ce8f4559038eabb1d851a0d045cea9b and 01002f0. 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThis change adds Freebuff as a supported TUI agent. It defines Freebuff detection, launch settings, display names, selection order, telemetry values, skills CLI handling, catalog metadata, and favicon mappings. It adds mobile icon support and English localization. It also updates the root README, localized READMEs, and supported-agent documentation. Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to The Freebuff integration is ready to merge; its documented interactive launch and prompt-entry behavior match Orca's supported workflow. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 21 files. (1 skipped: 1 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/renderer/src/lib/agent-catalog.tsx (1)
226-226: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse an intent-named localization key for the new label.
Replace
auto.lib.agent.catalog.b0b350de65with the repository’s intent-named ID convention. Keep the corresponding locale entry in sync.Based on learnings, newly added user-facing strings in Orca TypeScript and TSX files should use intent-named localization IDs; existing hash-based IDs are grandfathered.
Source: Learnings
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 85f162a6-27d5-428b-b4a9-9e7eb6fad109
⛔ Files ignored due to path filters (1)
src/shared/agent-icons/freebuff.pngis excluded by!**/*.png
📒 Files selected for processing (23)
README.mdconfig/scripts/locale-translation-policy.mjsdocs/readme/README.es.mddocs/readme/README.fr.mddocs/readme/README.ja.mddocs/readme/README.ko.mddocs/readme/README.pt.mddocs/readme/README.zh-CN.mdmobile/src/components/mobile-agent-icon-assets.tsmobile/src/tasks/mobile-tui-agents.tssrc/main/runtime/orca-runtime.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/lib/agent-catalog.tsxsrc/renderer/src/lib/agent-favicon-assets.tssrc/renderer/src/lib/agent-status.tssrc/shared/agent-kind.tssrc/shared/skills-cli-agent-keys.tssrc/shared/telemetry-events.tssrc/shared/tui-agent-config.tssrc/shared/tui-agent-display-names.tssrc/shared/tui-agent-launch-command.tssrc/shared/tui-agent-selection.tssrc/shared/tui-agent.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Conflict resolution: telemetry agent-kind values moved to telemetry-property-schemas.ts (Zod refactor), agent launch resolution extracted to runtime-agent-launch-resolution.ts, and mobile agent lists now re-export the shared registry. Freebuff entries re-applied to the new homes (telemetry-property-schemas.ts, mobile-tui-agents.ts) and the launch-command import repointed to tui-agent-launch-command.ts.
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
The file's convention is no top-level comments; the move rationale is already recorded in the merge and PR descriptions.
|
can you guys merge this ASAP ? thanks |
…-support # Conflicts: # src/main/worktree-create-preparation-pool.ts # tests/e2e/ssh-docker-transport-drop-recovery.spec.ts
Addresses CodeRabbit feedback: newly added agent catalog labels use intent-named IDs (e.g. mimo_code_label), not generated hash keys. Mirrors the key into all translated catalogs like the MiMo entry.
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: 48301ba2-dad4-48d0-9005-1dd94be64831
📥 Commits
Reviewing files that changed from the base of the PR and between 14e0d40 and 3f8c5d317ce8f4559038eabb1d851a0d045cea9b.
⛔ Files ignored due to path filters (1)
src/shared/agent-icons/freebuff.pngis excluded by!**/*.png
📒 Files selected for processing (28)
README.mdconfig/scripts/locale-translation-policy.mjsdocs/readme/README.es.mddocs/readme/README.fr.mddocs/readme/README.ja.mddocs/readme/README.ko.mddocs/readme/README.pt.mddocs/readme/README.zh-CN.mdmobile/src/components/mobile-agent-icon-assets.tsmobile/src/tasks/mobile-tui-agents.tssrc/main/runtime/runtime-agent-launch-resolution.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/agent-catalog.tsxsrc/renderer/src/lib/agent-favicon-assets.tssrc/renderer/src/lib/agent-status.tssrc/shared/agent-kind.tssrc/shared/skills-cli-agent-keys.tssrc/shared/telemetry-property-schemas.tssrc/shared/tui-agent-config.tssrc/shared/tui-agent-display-names.tssrc/shared/tui-agent-launch-command.tssrc/shared/tui-agent-selection.tssrc/shared/tui-agent.ts
🚧 Files skipped from review as they are similar to previous changes (22)
- config/scripts/locale-translation-policy.mjs
- src/shared/telemetry-property-schemas.ts
- src/main/runtime/runtime-agent-launch-resolution.ts
- docs/readme/README.fr.md
- src/shared/skills-cli-agent-keys.ts
- src/shared/tui-agent.ts
- README.md
- mobile/src/tasks/mobile-tui-agents.ts
- src/shared/tui-agent-display-names.ts
- src/shared/tui-agent-launch-command.ts
- docs/readme/README.es.md
- docs/readme/README.ko.md
- src/renderer/src/lib/agent-favicon-assets.ts
- docs/readme/README.zh-CN.md
- mobile/src/components/mobile-agent-icon-assets.ts
- src/shared/tui-agent-selection.ts
- docs/readme/README.pt.md
- src/renderer/src/lib/agent-status.ts
- docs/readme/README.ja.md
- src/shared/agent-kind.ts
- src/renderer/src/lib/agent-catalog.tsx
- src/shared/tui-agent-config.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
CodeRabbit follow-up: non-English catalogs should omit new English-source keys until real translations exist, so the missing-translation state stays visible and the fallback renders the label. Keep freebuff_label in en.json only, per the reviewer's direction on zh.json.
4f161e0 to
2dd6365
Compare
|
Hi @harkaranbrar7 — I independently opened #20839 for the same feature and wanted to make sure you saw it, so the maintainers aren't left choosing silently. Yours got here first (Aug 28) and has been through bot-review iterations, so it has the stronger claim. Mine covers a couple of things yours doesn't, in case any of it is useful here:
Happy to consolidate: if you'd rather absorb any of the above into this PR, I'll close mine and chip in here. Otherwise I'll leave both open for the maintainers to pick. |
|
Thanks for the heads-up and the cross-link. You're right that mine got in first, but I've got no ego in it — whichever one the maintainers land, I'd rather it be the better version. Grabbing the On locales — CodeRabbit asked me to drop the English string from the translated catalogs on this PR, so Consolidation: I'm fine either way. Cleanest is probably you close #20839 and I fold in anything useful, but if a maintainer prefers full locale parity as the shipped |
The helper was split out on Aug 28 only to keep tui-agent-config.ts under the 300-line oxlint budget it sat on at that base commit. Main's telemetry and launch-resolution refactors have since cut the file to 253 effective lines, so the split buys nothing and only diverges from upstream's layout.
…-support # Conflicts: # src/renderer/src/i18n/locales/en.json
freebuff.com now serves a blocky pixel-F monogram as its apple-touch-icon, replacing the older bunny card. Re-bundled at 64x64 so it matches the sibling agent icons, which are dark tiles with a light mark.
The bundled icon was derived from freebuff.com's legacy apple-touch-icon, which still serves the old opaque square with an inset border and a lighter F. Every current surface on the site (favicon.ico, the PWA 512 manifest icon, og:image) serves a rounded tile with transparent corners and a bolder F, so the shipped asset no longer matched the brand. Re-derive the 64x64 icon from the canonical logo-icon.png instead.
The mode was justified by lineage inference ("built on Codebuff's open
framework, so it shares the contract") rather than observation, which
AGENTS.md's Agent Terminal Screens rule does not accept.
Recorded freebuff v0.0.204 in a real PTY: it paints a bare alt-screen TUI
whose prompt box ("Enter a coding task or / for commands") accepts pasted
stdin, so the prompt cannot ride argv. A modal model picker owns the screen
until a model is chosen, and the session runs as a nested
`freebuff --continue <ts>` process, which expectedProcess already covers.
Add Freebuff launch support and execution-host status reporting for the sidebar, including running, question, blocked, and settled states. Validate against captured CLI transcripts and real rendered sidebar evidence. Cross-referenced community implementations #17065, #20839, and the Freebuff portion of #18790. Preserve their agent/catalog/mobile/documentation coverage and add canonical status publication and regression tests. Co-authored-by: Harkaran Brar <[email protected]> Co-authored-by: Prarambha369 <[email protected]> Co-authored-by: Lesley Murfin <[email protected]>
|
Thanks for picking this up in #23567 and crediting this PR in the commit. |
ELI5
Orca can now launch Freebuff — the free coding agent built on Codebuff's open framework — as a first-class agent, just like the existing Codebuff support. If you have the
freebuffCLI installed, Orca detects it, lists it in the agent picker and Settings → Agents, and steers it with prompts like any other agent.What Changed
Added
freebuffas a first-classTuiAgententry, mirroring the existingcodebuffsupport:tui-agent.ts,tui-agent-config.ts): detect/launch/expected-process allfreebuff, withstdin-after-startprompt injection — verified against a recorded PTY, not assumed from lineage (see Notes).agent-kind.ts,telemetry-events.ts):freebuffagent kind.agent-catalog.tsx, with favicon + homepage), status icon support (agent-status.ts), bundled favicon asset (agent-favicon-assets.ts).mobile-tui-agents.ts,mobile-agent-icon-assets.ts): parity support.en.jsoncatalog key +locale-translation-policy.mjsbrand guard.freebuff.png(64×64), re-derived from freebuff.com's canonical/logo-icon.pngso it matches the current brand mark (rounded tile, transparent corners).Why
Freebuff (
npm install -g freebuff) is a real, actively-used CLI coding agent built on Codebuff's framework. Orca already supports Codebuff with an identical shape, so this is a drop-in mirror — no new mechanism needed. Without a catalog entry, users could only runfreebuffin a plain terminal pane with no detection, picker entry, prompt injection, or telemetry.The alternative was to alias Freebuff onto the existing
codebuffentry rather than add a distinct one. A distinct entry is what lets the two appear separately in the picker and Settings, carry their own icon and homepage, and be detected independently — aliasing would have made Freebuff undetectable to anyone without Codebuff also installed.Linked Issue
Closes #6871
Visual Proof
Before/after screenshots of Settings → Agents, captured today from real Orca builds of the base commit and of this branch. Both frames are the same window at the same scroll offset with the agent-detection probe settled, so the Freebuff row is the only difference.
On machines without the CLI installed, Freebuff appears under "Available to install" instead of "Installed" — detection is PATH-based like every other agent.
Testing
Platform actually exercised: Linux. No macOS, Windows, or SSH host was run here — this change adds no platform-specific code (detection is PATH-based, exactly as for the existing
codebuffentry), and the SSH path is the shared one every detected agent already uses.Verified locally on this branch:
web,cliandnodeprojects: 0 errors eachrequire-tui-agent-config): 183 passedverify-localization-catalog,audit-localization-coverage,generate-runtime-required-english-catalog,check-max-lines-ratchet: all passbuild:relay,build:cli,build:electron-vite,build:web-from-renderer,verify:built-skills-clibuild:native, andbuild:mobile-web(the latter needs mobile codegen artifacts that are not checked in — a pre-existing environment gap, reproducible on the base commit)An earlier run of this branch also recorded the full suites: root 64,100 passed / 26 failed / 334 skipped, mobile 3,846 passed / 0 failed. Those 26 root failures are pre-existing environment-specific tests (GPU flag ordering, WSL/SSH/PTY-sandbox, SOCKS), reproduced identically on a clean checkout of the base commit.
AI Disclosure
None.
Review
Small, scoped catalog addition mirroring the existing
codebuffentry. Cross-platform: no platform-specific code — detection is PATH-based on macOS/Linux/Windows; SSH/remote: works over SSH like every other detected agent (detection runs on the execution host); mobile: parity entry included; security: no new permissions or network surfaces; performance: no hot-path impact. UI quality: the bundled icon is Freebuff's current brand mark, re-derived from its canonical/logo-icon.png, and it renders through the existingAgentIconat the sizes every other agent already uses — no new styling, colour or spacing was introduced.Agent skill upstream boundary
freebuff: null) was verified against the skills CLI's supported-agent namespace.Notes
/logo-icon.png(512×512), scaled to 64×64 to match the other bundled agent icons. The legacyapple-touch-icon.pngstill serves an older square mark, so it is not the source.promptInjectionMode: 'stdin-after-start'is pinned to a recorded PTY of freebuff v0.0.204, not to lineage inference: a bare alt-screen TUI whose prompt box ("Enter a coding task or / for commands") accepts pasted stdin, so the prompt cannot ride argv. Worth knowing: a modal model picker owns the screen until a model is chosen, and the session runs as a nestedfreebuff --continue <ts>process (already covered byexpectedProcess).Checklist
pnpm lint,pnpm typecheckandpnpm testpass (verified locally)build:relay,build:cli,build:electron-vite,build:web-from-renderer,verify:built-skills-cli. Not run here:build:native, andbuild:mobile-web(it needs mobile codegen artifacts that are not checked in).