Skip to content

Commit 006b0fa

Browse files
authored
chore: Use model aliases and nested reasoning in personas (#458)
All persona configs previously referenced model IDs directly — either as full strings like `anthropic/claude-sonnet-4-6` or as inline tables `{ provider = "anthropic", name = "..." }`. They now use the short aliases defined in `[providers.llm.aliases]` (`sonnet`, `opus`, `haiku`), making personas easier to read and update when models change. The reasoning configuration is also standardised to use the nested `parameters.reasoning.effort` key throughout, replacing the old top-level `reasoning` field that remained in one place. Several personas have their reasoning effort updated to `"auto"` in the process. --------- Signed-off-by: Jean Mertz <git@jeanmertz.com>
1 parent ca6285f commit 006b0fa

9 files changed

Lines changed: 16 additions & 16 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/.jp/**/QUERY_MESSAGE.md
22
/.jp/conversations/.trash
3-
# Conversations, until encrypted.
4-
# /.jp/conversations/*
53

64
# Rust specific
75
**/target

.jp/config.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ gemini-pro = "google/gemini-3.1-pro-preview"
4343
gemini-flash = "google/gemini-3-flash-preview"
4444
gemini-lite = "google/gemini-2.5-flash-lite"
4545

46-
[conversation.inquiry.assistant]
47-
model.id = "anthropic/claude-haiku-4-5"
46+
[conversation.inquiry.assistant.model]
47+
id = "haiku"
48+
parameters.reasoning.effort = "auto"
4849

4950
[conversation.title.generate.model]
5051
id = "haiku"
51-
reasoning = "low"
52+
parameters.reasoning.effort = "low"
5253

5354
[style.code]
5455
copy_link = "osc8"

.jp/config/personas/architect.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ principles, not implementation details.
3333
"""
3434

3535
[assistant.model]
36-
id = "anthropic/claude-opus-4-6"
36+
id = "opus"
3737
parameters.reasoning.effort = "auto"
3838

3939
[[assistant.system_prompt_sections]]

.jp/config/personas/default.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
[assistant]
2-
model.id = { provider = "anthropic", name = "claude-sonnet-4-6" }
1+
[assistant.model]
2+
id = "sonnet"
3+
parameters.reasoning.effort = "auto"
34

45
[assistant.system_prompt]
56
strategy = "replace"

.jp/config/personas/dev.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ and well-tested code that aligns with the project's standards and goals.
3232
"""
3333

3434
[assistant.model]
35-
id = "anthropic/claude-opus-4-6"
35+
id = "opus"
3636
parameters.reasoning.effort = "auto"
3737

3838
[[assistant.system_prompt_sections]]

.jp/config/personas/po.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ actionable. Follow the tool call descriptions and parameter requirements precise
1111
"""
1212

1313
[assistant.model]
14-
id = "anthropic/claude-sonnet-4-5"
15-
parameters.reasoning.effort = "high"
14+
id = "sonnet"
15+
parameters.reasoning.effort = "auto"
1616

1717
[[assistant.instructions]]
1818
title = "Research First"

.jp/config/personas/stager.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ name = "Git Stager"
7373
tool_choice = "git_list_patches"
7474

7575
[assistant.model]
76-
id = "anthropic/claude-sonnet-4-6"
76+
id = "sonnet"
7777
parameters.reasoning.effort = "auto"
7878

7979
[[assistant.instructions]]

.jp/config/personas/writer.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ technically accurate while remaining approachable. You follow Hemingway's writin
2828
"""
2929

3030
[assistant.model]
31-
id = { provider = "anthropic", name = "claude-sonnet-4-5" }
32-
parameters.reasoning.effort = "high"
31+
id = "sonnet"
32+
parameters.reasoning.effort = "auto"
3333

3434
[[assistant.instructions]]
3535
title = "Writing Style"

crates/jp_cli/src/cmd/init.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ fn has_google() -> bool {
259259

260260
fn default_model_id_for(provider: ProviderId) -> Option<ModelIdConfig> {
261261
let name = match provider {
262-
ProviderId::Anthropic => Name("claude-sonnet-4-5".into()),
263-
ProviderId::Google => Name("gemini-3-pro-preview".into()),
262+
ProviderId::Anthropic => Name("claude-sonnet-4-6".into()),
263+
ProviderId::Google => Name("gemini-3.1-pro-preview".into()),
264264
ProviderId::Openai => Name("gpt-5.2".into()),
265265
_ => return None,
266266
};

0 commit comments

Comments
 (0)