Skip to content

feat(agents): add Freebuff as a first-class CLI agent - #17065

Closed
harkaranbrar7 wants to merge 14 commits into
stablyai:mainfrom
harkaranbrar7:feat/freebuff-agent-support
Closed

harkaranbrar7 wants to merge 14 commits into
stablyai:mainfrom
harkaranbrar7:feat/freebuff-agent-support

Conversation

@harkaranbrar7

@harkaranbrar7 harkaranbrar7 commented Aug 28, 2026 •

Copy link
Copy Markdown

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 freebuff CLI 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 freebuff as a first-class TuiAgent entry, mirroring the existing codebuff support:

  • Agent config (tui-agent.ts, tui-agent-config.ts): detect/launch/expected-process all freebuff, with stdin-after-start prompt injection — verified against a recorded PTY, not assumed from lineage (see Notes).
  • Detection: auto-derived from the config — no manual wiring.
  • Telemetry (agent-kind.ts, telemetry-events.ts): freebuff agent kind.
  • Renderer: agent picker catalog entry (agent-catalog.tsx, with favicon + homepage), status icon support (agent-status.ts), bundled favicon asset (agent-favicon-assets.ts).
  • Mobile (mobile-tui-agents.ts, mobile-agent-icon-assets.ts): parity support.
  • i18n: en.json catalog key + locale-translation-policy.mjs brand guard.
  • Docs: Freebuff badge in README + all 6 translated readmes, plus a row in the docs-site supported-agents table.
  • Icon: bundled freebuff.png (64×64), re-derived from freebuff.com's canonical /logo-icon.png so 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 run freebuff in a plain terminal pane with no detection, picker entry, prompt injection, or telemetry.

The alternative was to alias Freebuff onto the existing codebuff entry 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.

  • Before — no Freebuff row anywhere. After — Freebuff in the Installed list.
  • The 3× and 12× crops below are that same row, so the bundled 64×64 mark is legible at review size.

On machines without the CLI installed, Freebuff appears under "Available to install" instead of "Installed" — detection is PATH-based like every other agent.

freebuff-before-settings freebuff-after-settings freebuff-after-row-zoom freebuff-after-icon-zoom

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 codebuff entry), and the SSH path is the shared one every detected agent already uses.

Verified locally on this branch:

  • Typecheck — web, cli and node projects: 0 errors each
  • Agent parity + exhaustiveness suites (12 files, incl. require-tui-agent-config): 183 passed
  • Mobile parity + bundled-icon suites (3 files): 16 passed
  • verify-localization-catalog, audit-localization-coverage, generate-runtime-required-english-catalog, check-max-lines-ratchet: all pass
  • oxlint (default rules, plus the native and type-aware code-quality plugin configs) on the 13 changed source files: 0 warnings, 0 errors
  • Build steps confirmed green: build:relay, build:cli, build:electron-vite, build:web-from-renderer, verify:built-skills-cli
  • Not run here: build:native, and build:mobile-web (the latter needs mobile codegen artifacts that are not checked in — a pre-existing environment gap, reproducible on the base commit)
  • Visual proof captured through the repo's Playwright Electron harness, on both the base commit and this branch, with the detection probe awaited rather than timed

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.

  • I manually tested these changes locally
  • Automated tests added/updated — existing parity tests cover the new agent automatically (agent-kind sync, catalog order, mobile parity, bundled icons); no new test files needed

AI Disclosure

None.

Review

Small, scoped catalog addition mirroring the existing codebuff entry. 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 existing AgentIcon at the sizes every other agent already uses — no new styling, colour or spacing was introduced.

Agent skill upstream boundary

  • Not applicable — this change copies no upstream skill-installer source; the one-line skills-CLI mapping (freebuff: null) was verified against the skills CLI's supported-agent namespace.

Notes

  • Icon re-derived from freebuff.com's canonical /logo-icon.png (512×512), scaled to 64×64 to match the other bundled agent icons. The legacy apple-touch-icon.png still 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 nested freebuff --continue <ts> process (already covered by expectedProcess).
  • Screenshots attached here per the template (never committed).

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots attached for UI changes
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • pnpm lint, pnpm typecheck and pnpm test pass (verified locally)
  • Build steps verified locally: build:relay, build:cli, build:electron-vite, build:web-from-renderer, verify:built-skills-cli. Not run here: build:native, and build:mobile-web (it needs mobile codegen artifacts that are not checked in).

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-apps

greptile-apps Bot commented Aug 28, 2026

Copy link
Copy Markdown

Greptile Summary

Adds Freebuff as a first-class CLI agent across desktop and mobile while preserving the existing launch-command behavior through a mechanical helper relocation.

  • Adds Freebuff detection, launch, process recognition, prompt injection, selection, display-name, and telemetry configuration.
  • Adds desktop and mobile catalog metadata plus a bundled icon.
  • Updates localization policy, English catalog content, and supported-agent documentation.
  • Moves getTuiAgentLaunchCommand into the launch-command module and updates its callers.

Confidence Score: 5/5

The 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.

Important Files Changed

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

@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 901f3b0c-cd15-4d54-8ca9-9554017b66c0

📥 Commits

Reviewing files that changed from the base of the PR and between 3f8c5d317ce8f4559038eabb1d851a0d045cea9b and 01002f0.

📒 Files selected for processing (3)
  • docs/site/content/docs/agents/supported.mdx
  • 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.


📝 Walkthrough

Walkthrough

This 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 01002

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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Issue #6871 requests Orca support for the Freebuff CLI. The PR adds freebuff to the TuiAgent type, detection and launch configuration, stdin-after-start prompt injection, agent selection, displa…
Out of Scope Changes check ✅ Passed The changed files support the Freebuff feature in issue #6871. Catalog entries, settings and picker support, telemetry, icons, localization, README entries, supported-agent documentation, and validati…
Title check ✅ Passed The title clearly and concisely describes the primary change: adding Freebuff as a first-class CLI agent.
Description check ✅ Passed The description is complete and follows the required template. It explains the user-facing change, implementation, rationale, linked issue, visual proof, testing results, platform considerations, agen…
Full details: Docstring Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/renderer/src/lib/agent-catalog.tsx (1)

226-226: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use an intent-named localization key for the new label.

Replace auto.lib.agent.catalog.b0b350de65 with 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

📥 Commits

Reviewing files that changed from the base of the PR and between 4fa3022 and 8a79385.

⛔ Files ignored due to path filters (1)
  • src/shared/agent-icons/freebuff.png is excluded by !**/*.png
📒 Files selected for processing (23)
  • README.md
  • config/scripts/locale-translation-policy.mjs
  • docs/readme/README.es.md
  • docs/readme/README.fr.md
  • docs/readme/README.ja.md
  • docs/readme/README.ko.md
  • docs/readme/README.pt.md
  • docs/readme/README.zh-CN.md
  • mobile/src/components/mobile-agent-icon-assets.ts
  • mobile/src/tasks/mobile-tui-agents.ts
  • src/main/runtime/orca-runtime.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/agent-catalog.tsx
  • src/renderer/src/lib/agent-favicon-assets.ts
  • src/renderer/src/lib/agent-status.ts
  • src/shared/agent-kind.ts
  • src/shared/skills-cli-agent-keys.ts
  • src/shared/telemetry-events.ts
  • src/shared/tui-agent-config.ts
  • src/shared/tui-agent-display-names.ts
  • src/shared/tui-agent-launch-command.ts
  • src/shared/tui-agent-selection.ts
  • src/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.
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

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.
@deulizealand

Copy link
Copy Markdown

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.
@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.png is excluded by !**/*.png
📒 Files selected for processing (28)
  • README.md
  • config/scripts/locale-translation-policy.mjs
  • docs/readme/README.es.md
  • docs/readme/README.fr.md
  • docs/readme/README.ja.md
  • docs/readme/README.ko.md
  • docs/readme/README.pt.md
  • docs/readme/README.zh-CN.md
  • mobile/src/components/mobile-agent-icon-assets.ts
  • mobile/src/tasks/mobile-tui-agents.ts
  • src/main/runtime/runtime-agent-launch-resolution.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/agent-catalog.tsx
  • src/renderer/src/lib/agent-favicon-assets.ts
  • src/renderer/src/lib/agent-status.ts
  • src/shared/agent-kind.ts
  • src/shared/skills-cli-agent-keys.ts
  • src/shared/telemetry-property-schemas.ts
  • src/shared/tui-agent-config.ts
  • src/shared/tui-agent-display-names.ts
  • src/shared/tui-agent-launch-command.ts
  • src/shared/tui-agent-selection.ts
  • src/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.

Comment thread src/renderer/src/i18n/locales/zh.json Resolved
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.
@Prarambha369

Copy link
Copy Markdown

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:

  • Locale parity: the existing codebuff entry ships its catalog key in all six locales (en/es/fr/ja/ko/zh), so my PR mirrors that; yours adds en.json only. Either approach can be justified — the locale-translation-policy.mjs brand allowlist handles the mistranslation risk — but matching the shipped pattern may be the lower-friction option for review.
  • Links the newer issue: [Feature] Freebuff #20376 (the Discord mirror with the maintainer's wiring notes) is still open; this PR closes the older [Feature]: Support Freebuff #6871.
  • Verification detail: I ran the agent-coverage tests (agent-kind.test.ts, AgentCombobox.test.tsx, keybindings) against a local build with the same change — they pass with freebuff wired exactly like codebuff, including the new 64×64 icon asset.

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.

@harkaranbrar7

Copy link
Copy Markdown
Author

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 docs/site/content/docs/agents/supported.mdx row from yours; that's a real gap on my side (I only did the READMEs).

On locales — CodeRabbit asked me to drop the English string from the translated catalogs on this PR, so freebuff_label lives in en.json only and the brand name falls back cleanly. So we differ there on purpose; heads up before a reviewer flags yours for the same thing.

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 codebuff pattern, I'll switch and close mine instead. Want to see which way they lean before we pick?

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.
nwparker added a commit that referenced this pull request Sep 28, 2026
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]>
@harkaranbrar7

Copy link
Copy Markdown
Author

Thanks for picking this up in #23567 and crediting this PR in the commit.
Closing — no follow-up needed from me.

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.

[Feature]: Support Freebuff

3 participants