Skip to content

Add freebuff as a supported agent/provider (TUI-based, needs PTY support) #43

Open

Description

@EnzoVezzaro

Summary

Add freebuff (Free AI coding assistant) as a first-class agent/provider alongside Claude Code, Codex and OpenCode.

Why

The hub's agent enum is currently exactly claude-code | codex | opencode (verified from the live hub UI bundle in gitbot 0.0.11). FreeBuff is a genuine free coding agent (GLM-5.3 / MiMo models, free-token account) that fills the exact niche this hub targets: zero-cost bots. It is the harness we already run for other work, so having it runnable as a gitbot provider would let one roster serve every free harness.

The constraint (why a simple provider won't work)

FreeBuff's CLI is TUI-only. freebuff --cwd <dir> --trust-agents renders a full-screen alternate buffer with ANSI cursor codes even when stdin is piped; it has:

  • no headless -p/--print output mode,
  • only a login subcommand for commands,
  • no output capture contract.

So a gitbot provider cannot simply spawn("freebuff", ["-p", prompt]) like it can with the three existing agents.

Evidence / reference implementation

A working local driver exists (macOS): allocate a PTY with /usr/bin/script -q /dev/null freebuff --cwd <repo> --trust-agents, feed the prompt, strip ANSI, best-effort parse the reply. Details and code: see tools/gitbot-freebuff/run.mjs and README.md in EnzoVezzaro/show-me-the-money (reference impl only).

On this account the free model default we target is GLM 5.3 (a /model selection inside the TUI).

Proposal

  1. Native headless mode (recommended, preferred): add freebuff exec -p "<prompt>" [--cwd DIR] (print/reply to stdout, no TUI) to the freebuff CLI. Then register a freebuff provider in gitbot exactly like the others, model configured per bot record.
  2. Or PTY provider: register a freebuff provider that spawns via a PTY and parses the transcript (fragile — the TUI layout is not a stable contract).

Acceptance

  • A freebuff option appears in the gateway's agent list when the binary + login exist.
  • Bots with agent: "freebuff" start a thread and reply in plain text.
  • freebuff exec -p mode exists for the headless path.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions