feat: add database mode for LLM message storage and analytics #1

Merged
0xWheatyz merged 1 commits from testing_suite/docker-compose into main 2026-03-11 01:17:41 +00:00
Owner

Implements a database mode that stores LLM prompts and responses in PostgreSQL
instead of making API calls. This enables:

  • Testing without consuming API credits
  • Collecting analytics on usage patterns
  • Development and debugging workflows

Changes:

  • Added DatabaseClient class for PostgreSQL operations
  • Modified LLMAnalyzer to support database/API mode toggle
  • Added USE_DATABASE config flag to switch between modes
  • Included Docker Compose setup for PostgreSQL
  • Added utility scripts for database init and analytics viewing
  • Comprehensive documentation in DATABASE_MODE.md

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

Implements a database mode that stores LLM prompts and responses in PostgreSQL instead of making API calls. This enables: - Testing without consuming API credits - Collecting analytics on usage patterns - Development and debugging workflows Changes: - Added DatabaseClient class for PostgreSQL operations - Modified LLMAnalyzer to support database/API mode toggle - Added USE_DATABASE config flag to switch between modes - Included Docker Compose setup for PostgreSQL - Added utility scripts for database init and analytics viewing - Comprehensive documentation in DATABASE_MODE.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
0xWheatyz added 1 commit 2026-03-11 01:17:26 +00:00
Implements a database mode that stores LLM prompts and responses in PostgreSQL
instead of making API calls. This enables:
- Testing without consuming API credits
- Collecting analytics on usage patterns
- Development and debugging workflows

Changes:
- Added DatabaseClient class for PostgreSQL operations
- Modified LLMAnalyzer to support database/API mode toggle
- Added USE_DATABASE config flag to switch between modes
- Included Docker Compose setup for PostgreSQL
- Added utility scripts for database init and analytics viewing
- Comprehensive documentation in DATABASE_MODE.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
0xWheatyz merged commit 4640106530 into main 2026-03-11 01:17:41 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 0xWheatyz/SPARC#1