A React application that uses AI to automate technical documentation authoring through a multi-role evaluator-optimizer workflow.
Tech Doc Workflow implements the collaborative writing and review process by using LLMs to replicate the roles typically seen in professional technical writing scenarios:
- a technical writer who generates and revises content
- a technical reviewer who verifies accuracy against source code
- an information architect who reviews structure and organization
- and a technical editor who ensures grammar and style consistency.
The workflow continues iteratively until all reviewers approve the document or maximum review cycles are reached.
- Multi-role AI workflow: Technical writer, technical reviewer, information architect, and technical editor agents working collaboratively
- Multiple LLM provider support: OpenAI, Google Gemini, and Azure OpenAI
- Document type profiles: Use the included example templates and guidance for how-to guides and explanation documents or create your own
- Iterative review process: Automatic revision cycles with configurable maximum loops per reviewer
- Real-time workflow tracking: Live status updates and detailed logging of the authoring process
- Source code verification: Technical accuracy validation against optionally provided source code
- Downloadable outputs: Final document in Markdown format and complete review logs
- Customizable settings: Configurable reviewer guidance, style guides, and workflow parameters
- Node.js 18.0+
- npm 8.0+ (bundled with Node.js)
- Your API key from a supported provider:
- OpenAI API
- Google Gemini API
- Azure OpenAI API
- Anthropic (not yet implemented)
Warning
This app can cost you real money! You are responsible for any API usage fees incurred by using this application.
git clone https://github.com/mmacy/tech-doc-workflow.git
cd tech-doc-workflow
# Install all project dependencies
npm install
No environment variables are required. Configure your API keys through the application's settings interface after launching the application.
# Start the development server
npm run dev
Navigate to the URL shown in the output, for example http://127.0.0.1:5173
, and the Tech Doc Workflow interface should appear in your browser.
- Run the application and navigate to Settings to configure your LLM provider API key
- Select a document type profile (How-to guide or Explanation document) from the dropdown
- Paste your draft content (draft text, notes, or existing documentation) into the Draft content field
- Optionally add authoritative Supporting content like source code for content generation and technical accuracy verification
- Select Start authoring workflow to begin the multi-agent review process
- Monitor the real-time progress as the AI roles peform their tasks of writing and reviewing the document
- Download the final Markdown document and review logs when the workflow completes
Except for API keys, Tech Doc Workflow stores its configuration settings in browser local storage and provides the following customization options. API keys are stored ONLY in memory - you must re-enter your key if you close the browser tab or window.
- Custom reviewer guidance: Modify the instructions given to each AI reviewer role
- Global style guides: Set writing and Markdown formatting standards applied across all document types
- Document type profiles: Create custom templates and guidance for specialized document types
- Review loop limits: Adjust the maximum number of revision cycles per reviewer role
- LLM provider settings: Switch between different AI providers
Access these settings through the Settings page using the gear icon in the top-right corner of the main page.
This application prioritizes the security of your API keys:
- Memory-only storage: API keys are stored only in browser memory, never in local storage, session storage, or any persistent storage
- No network transmission: Keys are used only for direct API calls to your chosen provider (OpenAI, Google, or Azure)
- Automatic clearing: Keys are automatically cleared when you close the browser tab or window
- No logging: API keys are never written to logs or exported in any downloadable files
- Masked display: Keys are shown with masking (••••1234) in the user interface
- Never share screenshots of the application showing your API keys
- Use API keys with appropriate usage limits and monitoring enabled at the provider level
- Regularly rotate your API keys following your organization's security policies
- Only run this application in secure, trusted environments
- All document content and workflow logs remain local to your browser
- No content is transmitted to external servers except for the necessary API calls to your chosen LLM provider
- Downloaded files contain only the document content and workflow feedback, never API keys
"Failed to initialize LLM provider" error
- Verify your API key is correctly configured in Settings
- Ensure your API key has sufficient credits/quota with the provider
- Check that you've selected the correct provider type for your API key
Workflow is slow
- Lower the maximum review passes per reviewer in Settings (fewer passes may result in lower quality output)
- Review the workflow logs to identify recurring feedback patterns and adjust reviewer prompts accordingly
- Provide more accurate and/or clearer supporting material
Poor or incomplete final document
- Ensure your draft content provides sufficient detail for the selected document type
- Check that supporting content (if provided) is relevant and complete
- Review custom reviewer guidance settings for overly restrictive criteria