Add custom writing instructions for report generation#1610
Open
SiriusYou wants to merge 4 commits intoassafelovic:mainfrom
Open
Add custom writing instructions for report generation#1610SiriusYou wants to merge 4 commits intoassafelovic:mainfrom
SiriusYou wants to merge 4 commits intoassafelovic:mainfrom
Conversation
- Document common commands (server, tests, docker, frontend) - Explain core architecture (GPTResearcher, skills, retrievers) - Document multi-agent LangGraph system - Include key configuration and environment variables Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add a textarea in the frontend UI that lets users provide custom writing instructions (style, tone, format directives) which are injected into report generation prompts. Supports Summary and Detailed report types. The instructions flow through the full stack: frontend → WebSocket → server utils → report type handlers → writer skill → report generation actions, where they are appended to the system prompt only during report writing (not research/retrieval). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
Changes
frontend/index.htmlfrontend/scripts.jscustom_instructionsfield in WebSocket requestbackend/server/server_utils.pycustom_instructionsfrom request databackend/server/websocket_manager.pycustom_instructionsthrough to report handlers with type guardbackend/report_type/basic_report/basic_report.pycustom_instructionstowrite_report()backend/report_type/detailed_report/detailed_report.pygpt_researcher/agent.pycustom_instructionsparameter to 3 write methodsgpt_researcher/skills/writer.pycustom_instructionsto action functionsgpt_researcher/actions/report_generation.pyTest plan
python -m uvicorn main:app --reload🤖 Generated with Claude Code