Athena DeepCite is currently in a transition state. We've created a plan for refactoring but haven't fully implemented it yet. The documentation in the docs/ directory outlines the future architecture and implementation steps.
The main codebase consists of:
- contentScript.ts - Main content script that runs in the browser
- background.ts - Background service worker for API calls
- llmExtractor.ts - Class for LLM-based claim extraction
- types.ts - Shared type definitions
- options.html/ts - Settings page (future functionality)
- styles/pdf-overlay.css - Styling for the extension
We've made several enhancements to the extension:
- Manual Activation - Analysis now only runs when the user explicitly clicks the "Analyze Webpage" or "Analyze PDF" button
- Fact Certainty Filtering - Only claims with a fact certainty score above 40% are highlighted and displayed
- Visual Certainty Indicators - Added visual meters to show the confidence score for each claim
- Unified Claims Panel - Added a consistent side panel for both web pages and PDFs that shows all detected claims
- Modern UI - Refreshed the visual design with more elegant animations, color scheme, and interactions
- Interactive Navigation - Claims in the panel can be clicked to navigate to their location in the text
Please refer to docs/TESTING.md for detailed instructions on testing the extension.
We've created a comprehensive refactoring plan in docs/IMPLEMENTATION_PLAN.md and architectural details in docs/REFACTORING.md. The key points are:
- Move to a modular architecture
- Add webpack for bundling
- Improve separation of concerns
- Centralize configuration
- Enhance code documentation
The main challenge is that Chrome extensions have specific limitations that affect our refactoring:
- Module support is limited in Manifest V3
- Direct imports between content and background scripts aren't possible
- Message passing needs careful handling with complex data structures
To continue development:
- Review the implementation plan
- Set up webpack for bundling
- Follow the phased approach in the implementation plan