improve history prompt

This commit is contained in:
Paul Gauthier 2025-05-09 08:29:33 -07:00
parent 6620141420
commit 64b4d13880
6 changed files with 592 additions and 589 deletions

View file

@ -31,7 +31,9 @@
- Explicit `--attribute-author` or `--attribute-committer` flags now override the default behavior when `--attribute-co-authored-by` is used, allowing finer control over commit attribution, by Andrew Grigorev.
- Fixed an issue where read-only status of files might not be preserved correctly by some commands (e.g. `/drop` after adding a read-only file).
- The `aider-args` utility (or `python -m aider.args`) now defaults to printing a sample YAML configuration if no arguments are provided.
- Aider wrote 53% of the code in this release.
- Displayed token count progress and the name of the file or identifier being processed during repo map updates.
- Extended the waiting spinner to also show for non-streaming responses and further enhanced its animation with console width clipping, cursor hiding, and a more continuous appearance.
- Aider wrote 55% of the code in this release.
### Aider v0.82.3

View file

@ -34,6 +34,7 @@ cog.out(text)
- Introduced `--attribute-co-authored-by` option to add co-author trailer to commit messages, by Andrew Grigorev.
- Updated Gemini model aliases (e.g., `gemini`, `gemini-2.5-pro`) to point to the `05-06` preview versions.
- Marked Gemini 2.5 Pro preview models as `overeager` by default.
- Commit message prompt specifies the user's language.
- Updated the default weak model for Gemini 2.5 Pro models to `gemini/gemini-2.5-flash-preview-04-17`.
- Corrected `gemini-2.5-pro-exp-03-25` model settings to reflect its lack of support for `thinking_budget`.
- Ensured model-specific system prompt prefixes are placed on a new line before the main system prompt.
@ -54,7 +55,9 @@ cog.out(text)
- Explicit `--attribute-author` or `--attribute-committer` flags now override the default behavior when `--attribute-co-authored-by` is used, allowing finer control over commit attribution, by Andrew Grigorev.
- Fixed an issue where read-only status of files might not be preserved correctly by some commands (e.g. `/drop` after adding a read-only file).
- The `aider-args` utility (or `python -m aider.args`) now defaults to printing a sample YAML configuration if no arguments are provided.
- Aider wrote 53% of the code in this release.
- Displayed token count progress and the name of the file or identifier being processed during repo map updates.
- Extended the waiting spinner to also show for non-streaming responses and further enhanced its animation with console width clipping, cursor hiding, and a more continuous appearance.
- Aider wrote 55% of the code in this release.
### Aider v0.82.3

File diff suppressed because it is too large Load diff

View file

@ -1224,7 +1224,7 @@ cog.out("```\n")
max_tokens: 8192
caches_by_default: true
- name: openrouter/google/gemini-2.5-pro-exp-03-25:free
- name: openrouter/google/gemini-2.5-pro-exp-03-25
edit_format: diff-fenced
weak_model_name: openrouter/google/gemini-2.0-flash-exp:free
use_repo_map: true

View file

@ -264,13 +264,9 @@ tr:hover { background-color: #f5f5f5; }
</style>
<table>
<tr><th>Model Name</th><th class='right'>Total Tokens</th><th class='right'>Percent</th></tr>
<tr><td>gemini/gemini-2.5-pro-exp-03-25</td><td class='right'>731,456</td><td class='right'>38.9%</td></tr>
<tr><td>o3</td><td class='right'>629,291</td><td class='right'>33.5%</td></tr>
<tr><td>gemini/gemini-2.5-pro-preview-05-06</td><td class='right'>389,854</td><td class='right'>20.7%</td></tr>
<tr><td>openrouter/REDACTED</td><td class='right'>106,682</td><td class='right'>5.7%</td></tr>
<tr><td>gemini/gemini-2.5-pro-preview-03-25</td><td class='right'>14,012</td><td class='right'>0.7%</td></tr>
<tr><td>together_ai/REDACTED</td><td class='right'>7,707</td><td class='right'>0.4%</td></tr>
<tr><td>together_ai/Qwen/Qwen3-235B-A22B-fp8-tput</td><td class='right'>1,994</td><td class='right'>0.1%</td></tr>
<tr><td>gemini/gemini-2.5-pro-exp-03-25</td><td class='right'>988,288</td><td class='right'>68.0%</td></tr>
<tr><td>o3</td><td class='right'>455,620</td><td class='right'>31.4%</td></tr>
<tr><td>openrouter/REDACTED</td><td class='right'>8,745</td><td class='right'>0.6%</td></tr>
</table>
{: .note :}

View file

@ -1,15 +1,17 @@
history_prompt = """
Update the history doc with changes shown in the diffs.
Describe actual user-facing changes, not every single commit that was made implementing them.
Update the history markdown doc with changes shown in the diffs.
Succinctly describe actual user-facing changes, not every single commit or detail that was made implementing them.
Only add new items not already listed.
Only add new items not already listed in the history markdown.
Do NOT edit or update existing history entries.
Do NOT add duplicate entries for changes that have existing history entries.
Do NOT add additional entries for small tweaks to features which are already listed in the existing history.
Pay attention to see if changes are later modified or superseded.
Pay attention to see if changes are later modified or superseded in the commit logs.
The history doc should only reflect the *final* version of changes which have evolved within a version's commit history.
If the history doc already describes the final behavior, don't document the changes that led us there.
Bullet each item at the start of the line with `-`.
End each bullet with a period.
If the change was made by someone other than Paul Gauthier note it at the end of the bullet point as ", by XXX."
@ -19,6 +21,6 @@ Changes in the .x-dev version should be listed under a "### main branch" heading
Start a new "### main branch" section at the top of the file if needed.
Also, add this as the last bullet under the "### main branch" section:
Also, add this as the last bullet under the "### main branch" section, replacing an existing version if present:
{aider_line}
""" # noqa