Optimize Claude Code CLI, Gemini, and Codex usage by analyzing metadata in logs. Reduces costs and frustration without affecting prompt quality. Ideal for operations teams managing AI workflows.
git clone https://github.com/netra-systems/zen.gitZen extends your Claude usage by analyzing logs for optimization opportunities focused on metadata rather than semantics, ensuring no quality loss. The tool identifies actionable improvements in your Claude Code commands, prompts, and settings through one-time setup and a single command. It supports Claude, Gemini, and Codex logs, making it accessible across different CLI tools. Developers and operations teams can reduce API costs while maintaining output quality by implementing the specific optimizations Zen recommends. The tool is designed for individual developers first, with enterprise-scale optimizations planned for future releases.
Install via pip: `pip install netra-zen`. Run `zen --apex` to analyze your most recent log file and receive optimization recommendations. Optionally specify a logs provider (claude, gemini, codex), project name, or custom path. For best results, analyze one log file at a time with payloads under 1MB.
Reduce Claude API costs by identifying metadata inefficiencies in usage logs
Optimize Claude Code commands and prompts based on actual usage patterns
Analyze Gemini and Codex logs for CLI-agnostic cost savings
Help ops teams audit and improve AI workflow configurations
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/netra-systems/zenCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Analyze my Claude Code CLI, Gemini, and Codex usage logs to identify optimization opportunities. Focus on reducing costs while maintaining prompt quality. Here are the logs: [LOGS]. Provide specific recommendations for [COMPANY] in the [INDUSTRY] sector.
# AI Usage Optimization Report ## Cost Reduction Opportunities - **Redundant API Calls**: 30% of Codex calls could be eliminated by caching frequent queries. - **Model Selection**: 25% of Claude Code CLI calls could use cheaper models without quality loss. - **Batch Processing**: Gemini calls could be batched, reducing costs by 15%. ## Implementation Recommendations 1. **Implement Caching**: Store frequent Codex queries to reduce API calls. 2. **Model Tiering**: Use Claude Code CLI's cheaper models for non-critical tasks. 3. **Batch Processing**: Group Gemini calls to optimize usage. ## Estimated Savings - **Monthly Cost Reduction**: $1,200 - **Annual Cost Reduction**: $14,400
AI assistant built for thoughtful, nuanced conversation
Google's multimodal AI model and assistant
AI-assisted web application security testing
AI sales agent for lead generation and follow-up
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan