Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions common/src/__tests__/free-agents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,24 @@ describe('free mode agent model allowlist', () => {
).toBe(true)
})

test('allows the tmux-cli subagent with its bundled model', () => {
expect(
isFreeModeAllowedAgentModel('tmux-cli', FREEBUFF_MINIMAX_MODEL_ID),
).toBe(true)
expect(
isFreeModeAllowedAgentModel(
'codebuff/tmux-cli@0.0.1',
FREEBUFF_MINIMAX_MODEL_ID,
),
).toBe(true)
expect(
isFreeModeAllowedAgentModel(
'other/tmux-cli@0.0.1',
FREEBUFF_MINIMAX_MODEL_ID,
),
).toBe(false)
})

test('allows Gemini Pro for the thinker subagent but not the freebuff root', () => {
expect(
isFreeModeAllowedAgentModel('base2-free', FREEBUFF_GEMINI_PRO_MODEL_ID),
Expand Down
1 change: 1 addition & 0 deletions common/src/constants/free-agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const FREE_MODE_AGENT_MODELS: Record<string, Set<string>> = {

// Command execution
basher: new Set(['google/gemini-3.1-flash-lite-preview']),
'tmux-cli': new Set([FREEBUFF_MINIMAX_MODEL_ID]),

// Code reviewer for free mode
'code-reviewer-minimax': new Set([
Expand Down
Loading