Skip to content

Commit 2c76162

Browse files
authored
Allow tmux-cli in free mode (#646)
1 parent 7ce97b3 commit 2c76162

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

common/src/__tests__/free-agents.test.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,24 @@ describe('free mode agent model allowlist', () => {
123123
).toBe(true)
124124
})
125125

126+
test('allows the tmux-cli subagent with its bundled model', () => {
127+
expect(
128+
isFreeModeAllowedAgentModel('tmux-cli', FREEBUFF_MINIMAX_MODEL_ID),
129+
).toBe(true)
130+
expect(
131+
isFreeModeAllowedAgentModel(
132+
'codebuff/tmux-cli@0.0.1',
133+
FREEBUFF_MINIMAX_MODEL_ID,
134+
),
135+
).toBe(true)
136+
expect(
137+
isFreeModeAllowedAgentModel(
138+
'other/tmux-cli@0.0.1',
139+
FREEBUFF_MINIMAX_MODEL_ID,
140+
),
141+
).toBe(false)
142+
})
143+
126144
test('allows Gemini Pro for the thinker subagent but not the freebuff root', () => {
127145
expect(
128146
isFreeModeAllowedAgentModel('base2-free', FREEBUFF_GEMINI_PRO_MODEL_ID),

common/src/constants/free-agents.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export const FREE_MODE_AGENT_MODELS: Record<string, Set<string>> = {
9191

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

9596
// Code reviewer for free mode
9697
'code-reviewer-minimax': new Set([

0 commit comments

Comments
 (0)