Skip to content

Commit aa7780c

Browse files
committed
Switch /review to use @thinker-gpt
1 parent ab6929f commit aa7780c

File tree

7 files changed

+12
-9
lines changed

7 files changed

+12
-9
lines changed

agents/base2/base2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export function createBase2(
8585
isFree && 'code-reviewer-lite',
8686
isDefault && 'code-reviewer',
8787
isMax && 'code-reviewer-multi-prompt',
88+
'thinker-gpt',
8889
'tmux-cli',
8990
'context-pruner',
9091
),
@@ -139,8 +140,7 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
139140
- **Sequence agents properly:** Keep in mind dependencies when spawning different agents. Don't spawn agents in parallel that depend on each other.
140141
${buildArray(
141142
'- Spawn context-gathering agents (file pickers and web/docs researchers) before making edits. Use the code_search, list_directory, and glob tools directly for searching and exploring the codebase.',
142-
isFree &&
143-
'- Spawn the editor-lite agent to implement the changes after you have gathered all the context you need.',
143+
isFree && 'Do not spawn the thinker-gpt agent, unless the user asks. Not everyone has connected their ChatGPT subscription to Codebuff to allow for it.',
144144
isDefault &&
145145
'- Spawn the editor agent to implement the changes after you have gathered all the context you need.',
146146
(isDefault || isMax) &&

agents/thinker/thinker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const definition: SecretAgentDefinition = {
1111
},
1212
displayName: 'Theo the Theorizer',
1313
spawnerPrompt:
14-
'Does deep thinking given the current conversation history and a specific prompt to focus on. Use this to help you solve a specific problem. It is better to gather any relevant context before spawning this agent.',
14+
'Does deep thinking given the current conversation history and a specific prompt to focus on. Use this to help you solve a specific problem. You must gather any relevant context before spawning this agent because the thinker agent has no access to tools.',
1515
inputSchema: {
1616
prompt: {
1717
type: 'string',

cli/src/commands/command-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ const ALL_COMMANDS: CommandDefinition[] = [
537537

538538
// If user provided review text directly, send it immediately without showing the screen
539539
if (trimmedArgs) {
540-
const reviewPrompt = `@GPT-5 Agent Please review: ${trimmedArgs}`
540+
const reviewPrompt = `@thinker-gpt Please review: ${trimmedArgs}`
541541
params.sendMessage({
542542
content: reviewPrompt,
543543
agentMode: params.agentMode,

cli/src/components/review-screen.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const ReviewScreen: React.FC<ReviewScreenProps> = ({
5353
}
5454
}, [])
5555

56+
const reviewBasePrompt = 'Please gather all relevant context and then spawn @thinker-gpt to review:'
5657
const handleSelect = useCallback(
5758
(option: ReviewOption) => {
5859
if (option.id === 'custom') {
@@ -63,10 +64,10 @@ export const ReviewScreen: React.FC<ReviewScreenProps> = ({
6364
let reviewText: string
6465
switch (option.id) {
6566
case 'uncommitted':
66-
reviewText = '@GPT-5 Agent Please review: uncommitted changes'
67+
reviewText = `${reviewBasePrompt} uncommitted changes`
6768
break
6869
case 'branch':
69-
reviewText = '@GPT-5 Agent Please review: this branch compared to main'
70+
reviewText = `${reviewBasePrompt} this branch compared to main`
7071
break
7172
default:
7273
return
@@ -78,7 +79,7 @@ export const ReviewScreen: React.FC<ReviewScreenProps> = ({
7879

7980
const handleCustomSubmit = useCallback(() => {
8081
if (customInput.trim()) {
81-
onSelectOption(`@GPT-5 Agent Please review: ${customInput.trim()}`)
82+
onSelectOption(`${reviewBasePrompt} ${customInput.trim()}`)
8283
}
8384
}, [customInput, onSelectOption])
8485

cli/src/data/slash-commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const ALL_SLASH_COMMANDS: SlashCommand[] = [
134134
{
135135
id: 'review',
136136
label: 'review',
137-
description: 'Review code changes with GPT-5 Agent',
137+
description: 'Review code changes with thinker-gpt',
138138
},
139139
{
140140
id: 'agent:gpt-5',

common/src/constants/chatgpt-oauth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export const CHATGPT_OAUTH_TOKEN_ENV_VAR = 'CODEBUFF_CHATGPT_OAUTH_TOKEN'
2929
* This includes optimistic aliases requested by the user.
3030
*/
3131
export const OPENROUTER_TO_OPENAI_MODEL_MAP: Record<string, string> = {
32+
'openai/gpt-5.4': 'gpt-5.4',
33+
'openai/gpt-5.4-codex': 'gpt-5.4-codex',
3234
'openai/gpt-5.3': 'gpt-5.3',
3335
'openai/gpt-5.3-codex': 'gpt-5.3-codex',
3436
'openai/gpt-5.2': 'gpt-5.2',

freebuff/SPEC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Freebuff only supports **FREE mode**. All mode-related features are stripped.
8282
| `/refer-friends` (+ `/referral`, `/redeem`) | Referrals earn credits, not applicable |
8383
| `/mode:*` (all mode commands) | Only FREE mode |
8484
| `/agent:gpt-5` | Premium agent, not available in free tier |
85-
| `/review` | Uses GPT-5 Agent under the hood |
85+
| `/review` | Uses thinker-gpt under the hood |
8686
| `/publish` | Agent publishing not available in free tier |
8787
| `/image` (+ `/img`, `/attach`) | Image attachments unavailable with free model (MiniMax M2.5) |
8888

0 commit comments

Comments
 (0)