Restore article size - #18
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The revision cap is now inconsistent between ResearchState.MaxRevisions (2) and the prompt text (still 4), which should be aligned before merging.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR adjusts the workflow to generate longer blog posts and increases the token budget to accommodate the larger outputs, while also tightening the maximum revision loop cap.
Changes:
- Increase target post length from 500–1000 words to 1000–2000 words in author/reviewer prompts.
- Increase the default cumulative token cap (
MAX_TOTAL_TOKENS) from 20k to 40k. - Reduce the workflow revision cap (
ResearchState.MaxRevisions) from 4 to 2.
File summaries
| File | Description |
|---|---|
| ResearchState.cs | Lowers the maximum allowed revision cycles by updating MaxRevisions. |
| Prompts.cs | Updates author and reviewer prompt text to target longer posts (1000–2000 words). |
| Program.cs | Raises the default total token budget to support longer generation runs. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
6
to
+7
| /// <summary>Hard upper bound on author/review revision cycles. Guarantees the workflow terminates.</summary> | ||
| public const int MaxRevisions = 4; | ||
| public const int MaxRevisions = 2; |
| @@ -26,7 +26,7 @@ string GetRequired(string key) => | |||
| // Overridable via user-secrets/env vars; these defaults match the original behaviour. | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.