Feature/flowchart #47
Open
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.
Add Context Flowchart Feature
Overview
Added a context flowchart feature that visualizes conversation flow by analyzing chat sessions and generating directed acyclic graphs (DAGs) using Google AI (Gemini 2.5 Flash Lite).
Key Features
1. Flowchart Generation
2. CLI Commands
3. TUI Integration
4. Data Model
5. Database Schema
Technical Implementation
Architecture
FlowchartServicehandles Google AI integration and business logicFlowchartRepositorymanages database operationsFlowchartRendererhandles TUI visualizationKey Components
src/models/flowchart.rs- Data structures and DAG validationsrc/services/flowchart_service.rs- Google AI integration and prompt engineeringsrc/tui/flowchart_renderer.rs- Unicode-based flowchart renderingsrc/cli/flowchart.rs- CLI command implementationmigrations/008_add_flowcharts.sql- Database schemaPrompt Engineering
Configuration
GOOGLE_AI_API_KEYto be setgemini-2.5-flash-litefor cost-effective analysisUsage Examples
CLI Usage
TUI Usage
Benefits