Skip to content

Commit 624fb23

Browse files
committed
Show how to use openai models in README + help output
1 parent 570b3a1 commit 624fb23

File tree

7 files changed

+37
-35
lines changed

7 files changed

+37
-35
lines changed

.agents-docs/testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Testing Framework
22

33
TESTING FRAMEWORKS: [Bun test runner (bun:test)]
4-
TEST COMMANDS: [bun test, npm run test]
4+
TEST COMMANDS: [bun test]
55
TEST ORGANIZATION: [TypeScript tests colocated in src/ with *.test.ts and *.integration.test.ts naming; integration tests use *.integration.test.ts; no dedicated test/ or __tests__ directories]
66
E2E TESTING: [none detected]
77

88
---
99

10-
*This file is part of the AGENTS.md documentation system.*
10+
_This file is part of the AGENTS.md documentation system._

.plans/hone.config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defaultAgent: opencode
22
models:
33
opencode: openai/gpt-5.2-codex
4-
claude: anthropic/claude-sonnet-4-20250514
5-
review: anthropic/claude-opus-4-20250514
4+
claude: anthropic/claude-sonnet-4-5
5+
review: anthropic/claude-opus-4-5
66
agentsMd: openai/gpt-5.2-codex

AGENTS.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<!-- BEGIN GENERATED: AGENTS-MD -->
2+
23
# AGENTS.md
34

45
Learnings and patterns for future agents working on this project.
56

67
## Feedback Instructions
78

8-
TEST COMMANDS: [bun test, npm run test]
9+
TEST COMMANDS: [bun test]
910
BUILD COMMANDS: [bun run build, bun run build:linux, bun run build:macos, bun run tsc --noEmit]
1011
LINT COMMANDS: [bun run lint:yaml, bun run check:yaml]
1112
FORMAT COMMANDS: [bun run format, bun run format:yaml, prettier --write "**/*.ts", prettier --write "**/*.yml" "**/*.yaml"]
@@ -42,8 +43,9 @@ See [@.agents-docs/deployment.md](.agents-docs/deployment.md) for detailed infor
4243

4344
---
4445

45-
*This AGENTS.md was generated using agent-based project discovery.*
46-
*Detailed information is available in the .agents-docs/ directory.*
46+
_This AGENTS.md was generated using agent-based project discovery._
47+
_Detailed information is available in the .agents-docs/ directory._
48+
4749
<!-- END GENERATED: AGENTS-MD -->
4850

4951
<!-- PRESERVED CONTENT FROM PREVIOUS VERSION -->

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -174,24 +174,24 @@ Edit `.plans/hone.config.yml` to customize models and test commands:
174174
```yaml
175175
defaultAgent: claude
176176
models:
177-
opencode: claude-sonnet-4-20250514
178-
claude: claude-sonnet-4-20250514
177+
opencode: openai/gpt-5.2-codex
178+
claude: anthropic/claude-sonnet-4-5
179179
```
180180
181181
**Advanced model configuration:**
182182
183183
- Use phase-specific models (prd, prdToTasks, extendPrd, implement, review, finalize)
184-
- Model names need full version: `claude-sonnet-4-YYYYMMDD`
184+
- Model names use provider format: `provider/model` (e.g., `openai/gpt-5.2-codex`, `anthropic/claude-sonnet-4-5`)
185185
- Check available models: `opencode --help` or `claude --help`
186186

187187
```yaml
188188
models:
189-
prd: claude-sonnet-4-20250514 # PRD generation
190-
prdToTasks: claude-opus-4-20250514 # Task generation
191-
extendPrd: claude-sonnet-4-20250514 # PRD extension
192-
implement: claude-opus-4-20250514 # Implementation
193-
review: claude-sonnet-4-20250514 # Code review
194-
finalize: claude-sonnet-4-20250514 # Finalization
189+
prd: anthropic/claude-sonnet-4-5 # PRD generation
190+
prdToTasks: anthropic/claude-opus-4-5 # Task generation
191+
extendPrd: anthropic/claude-sonnet-4-5 # PRD extension
192+
implement: anthropic/claude-opus-4-5 # Implementation
193+
review: anthropic/claude-sonnet-4-5 # Code review
194+
finalize: anthropic/claude-sonnet-4-5 # Finalization
195195
```
196196

197197
## How It Works
@@ -257,8 +257,8 @@ Configure the `extendPrd` phase model in `.plans/hone.config.yml`:
257257

258258
```yaml
259259
models:
260-
extendPrd: claude-sonnet-4-20250514 # Model for requirement generation
261-
prd: claude-opus-4-20250514 # Fallback to prd model
260+
extendPrd: anthropic/claude-sonnet-4-5 # Model for requirement generation
261+
prd: anthropic/claude-opus-4-5 # Fallback to prd model
262262
```
263263

264264
**Interactive Q&A:**

src/config.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ describe('Config Management', () => {
6868
const config = await loadConfig()
6969

7070
expect(config.defaultAgent).toBe('claude')
71-
expect(config.models.opencode).toBe('claude-sonnet-4-20250514')
72-
expect(config.models.claude).toBe('claude-sonnet-4-20250514')
71+
expect(config.models.opencode).toBe('openai/gpt-5.2-codex')
72+
expect(config.models.claude).toBe('anthropic/claude-sonnet-4-5')
7373

7474
// Verify file was created
7575
expect(existsSync(getConfigPath())).toBe(true)
@@ -267,7 +267,7 @@ describe('Model Resolution', () => {
267267
}
268268

269269
const model = resolveModelForPhase(config, 'finalize')
270-
expect(model).toBe('claude-sonnet-4-20250514')
270+
expect(model).toBe('anthropic/claude-sonnet-4-5')
271271
})
272272

273273
test('resolveModelForPhase handles all phase types', () => {
@@ -1030,12 +1030,12 @@ describe('Config Validation', () => {
10301030
expect(resolveModelForPhase(config, 'prd', 'opencode')).toBe('claude-sonnet-4-20250514')
10311031
})
10321032

1033-
test('DEFAULT_CONFIG uses valid Claude model format', () => {
1033+
test('DEFAULT_CONFIG uses valid provider model format', () => {
10341034
const config: HoneConfig = {
10351035
defaultAgent: 'claude',
10361036
models: {
1037-
opencode: 'claude-sonnet-4-20250514',
1038-
claude: 'claude-sonnet-4-20250514',
1037+
opencode: 'openai/gpt-5.2-codex',
1038+
claude: 'anthropic/claude-sonnet-4-5',
10391039
},
10401040
}
10411041

src/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export const DEFAULT_AGENT: AgentType = 'claude'
2626
const DEFAULT_CONFIG: HoneConfig = {
2727
defaultAgent: DEFAULT_AGENT,
2828
models: {
29-
opencode: 'claude-sonnet-4-20250514',
30-
claude: 'claude-sonnet-4-20250514',
29+
opencode: 'openai/gpt-5.2-codex',
30+
claude: 'anthropic/claude-sonnet-4-5',
3131
},
3232
lintCommand: undefined,
3333
}
@@ -209,7 +209,7 @@ export function resolveModelForPhase(
209209
}
210210

211211
// 3. Fall back to default model
212-
return 'claude-sonnet-4-20250514'
212+
return 'anthropic/claude-sonnet-4-5'
213213
}
214214

215215
/**

src/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ Model Configuration:
5151
Configure models in .plans/hone.config.yml:
5252
5353
models:
54-
opencode: claude-sonnet-4-20250514 # Default for opencode agent
55-
claude: claude-sonnet-4-20250514 # Default for claude agent
56-
prd: claude-sonnet-4-20250514 # Override for PRD generation (optional)
57-
prdToTasks: claude-sonnet-4-20250514 # Override for task generation (optional)
58-
implement: claude-opus-4-20250514 # Override for implementation (optional)
59-
review: claude-sonnet-4-20250514 # Override for review (optional)
60-
finalize: claude-sonnet-4-20250514 # Override for finalization (optional)
61-
agentsMd: claude-sonnet-4-20250514 # Override for AGENTS.md generation (optional)
54+
opencode: openai/gpt-5.2-codex # Default for opencode agent
55+
claude: anthropic/claude-sonnet-4-5 # Default for claude agent
56+
prd: anthropic/claude-sonnet-4-5 # Override for PRD generation (optional)
57+
prdToTasks: anthropic/claude-opus-4-5 # Override for task generation (optional)
58+
implement: anthropic/claude-opus-4-5 # Override for implementation (optional)
59+
review: anthropic/claude-sonnet-4-5 # Override for review (optional)
60+
finalize: anthropic/claude-sonnet-4-5 # Override for finalization (optional)
61+
agentsMd: anthropic/claude-sonnet-4-5 # Override for AGENTS.md generation (optional)
6262
6363
Phase-specific models are optional and override agent-specific models.
6464
Check available models: opencode --help or claude --help

0 commit comments

Comments
 (0)