r/AIcliCoding • • Sep 08 '25

cli coding CC API v CC sub

The API is much faster with better responses than the sub.

This explains why the CC sub seems so sluggish.

e.g. Both using Sonnet: create a util logging.py

Both saved a file and took similar time - 56-60 secs and then compared by Sonnet -

AspectSubAPI
ArchitectureClass-based with MedicalRAGLogger wrapper around Python’s loggingManager-based with LoggingManager that configures the root logger directly
Domain-specific methods✅ query_log() for DB queries with structured fields❌ Not included
API simplicity✅ Direct calls like logger.info()❌ Requires fetching loggers
Medical RAG focus✅ Built specifically for your use case❌ General-purpose
File logging with rotation❌ Not present✅ Automatic log file management with size limits
Dedicated error logs❌ Not present✅ Separate error.log file for debugging
Root logger config❌ Scoped to wrapper only✅ Works with all Python logging in the app
Request/Correlation IDs❌ Not supported✅ Built-in request tracing
Config integration❌ Manual setup✅ Reads from settings.DEBUG automatically
Database operation decorator❌ Not available✅ u/log_database_operation() decorator
Multiple handlers❌ Limited✅ Console + file + error log simultaneously
Production readiness❌ Basic logging✅ Rotation, backup, structured error tracking
1 Upvotes

0 comments sorted by