yessGlory17/argus: Claude Code Session Debugger & Performance Analyzer ยท GitHub

๐Ÿ’ฅ Check out this insightful post from Hacker News ๐Ÿ“–

๐Ÿ“‚ **Category**:

โœ… **What Youโ€™ll Learn**:

๐Ÿ”ฎ Named after the all-seeing giant of Greek mythology โ€” Argus watches over your Claude Code sessions, detecting inefficiencies, tracking costs, and optimizing your AI development experience.


Argus is a powerful VS Code extension that provides deep insights into Claude Code sessions, helping developers optimize their AI-assisted workflows through intelligent analysis and beautiful visualizations.


๐Ÿ’ธ

Save Money

Identify wasted API calls and optimize token usage


โšก

Speed Up Development

Detect retry loops and duplicate operations


๐Ÿ”ฌ

Deep Analysis

Understand how Claude Code works under the hood


๐Ÿ“Š

Visual Insights

Beautiful dashboards with real-time monitoring


๐ŸŽ“

Learn & Improve

Understand patterns and optimize your prompts


๐Ÿ” Intelligent Session Discovery

Click to expand

Feature Description
๐Ÿ”Ž Automatic Scanning Discovers all Claude Code sessions from ~/.claude/projects/
๐ŸŽ›๏ธ Smart Filtering Configurable depth scanning with performance optimizations
๐Ÿ“ก Real-time Monitoring Watch sessions update as they progress
๐Ÿ“‚ Multi-project Support Manages sessions across multiple projects simultaneously


๐Ÿ“Š Comprehensive Analysis Dashboard

8 Powerful Analysis Tabs

Tab Features
๐Ÿ“‹ Overview Session statistics โ€ข Cost analysis โ€ข Timeline visualization โ€ข Quick summary
๐Ÿ” Analysis 6 intelligent rules: Duplicate Reads โ€ข Unused Operations โ€ข Retry Loops โ€ข Failed Tools โ€ข Context Pressure โ€ข Compaction Events
๐Ÿ’ฐ Cost Step-by-step breakdown โ€ข Token visualization โ€ข Cache hit ratio โ€ข Model attribution โ€ข Spending graphs
โšก Performance Efficiency score โ€ข Wasted cost calculations โ€ข Timing analysis โ€ข Bottleneck identification
๐ŸŒŠ Flow Interactive dependency graph โ€ข File operation flow โ€ข Read/Write/Edit tracking โ€ข Step relationships
๐Ÿง  Context Token usage tracking โ€ข Cache performance โ€ข Window utilization โ€ข I/O distribution
๐Ÿ“ Steps Detailed execution log โ€ข Tool call inspection โ€ข Input/output viewing โ€ข Per-step timing & costs
๐Ÿ’ก Insights AI-powered recommendations โ€ข Pattern recognition โ€ข Optimization suggestions โ€ข Best practices


  • React-powered Webviews: Smooth, responsive interface built with React 19
  • Interactive Visualizations: Charts powered by Chart.js and Recharts
  • D3.js Graphs: Beautiful dependency flow diagrams
  • Dark Mode Native: Seamlessly integrates with VS Code themes
  • Lucide Icons: Modern, consistent iconography

๐Ÿ”ง Developer Experience

  • Tree View Integration: Sessions appear in VS Code sidebar
  • Command Palette: Quick access to all features
  • Status Bar Item: One-click dashboard access
  • Hot Reload: Vite-powered development for instant updates
  • TypeScript: Fully typed for better DX and reliability

Intelligent detection of duplicate reads, retry loops, and optimization opportunities

Analysis Tab

Detailed breakdown of token usage and API costs per step with interactive charts

Cost Tab

Session efficiency scores, wasted cost analysis, and performance metrics

Performance Tab

Interactive dependency graph showing file operations and step relationships

Flow Tab

Step-by-step execution log with detailed tool call inspection and timing

Steps Tab

Token usage tracking, cache performance, and context window utilization

Context Tab

AI-powered recommendations, pattern recognition, and optimization suggestions

Insights Tab


Option 1: From VSIX (Recommended)

# Download the latest .vsix file from releases
code --install-extension argus-0.1.0.vsix
# Clone the repository
git clone https://github.com/yessGlory17/argus.git
cd argus-vscode

# Install dependencies
npm install

# Compile TypeScript
npm run compile

# Build webview
npm run build:webview

# Package extension
npx vsce package

# Install the packaged extension
code --install-extension argus-0.1.0.vsix

Setting Up Development Environment

# Clone and install
git clone https://github.com/yessGlory17/argus.git
cd argus-vscode
npm install

Running in Development Mode

# Terminal 1: Watch TypeScript changes
npm run watch

# Terminal 2: Watch webview changes
npm run dev:webview

Then press F5 in VS Code to launch the Extension Development Host.

# Compile TypeScript
npm run compile

# Build production webview
npm run build:webview

# Run linter
npm run lint

# Package extension
npx vsce package

Contributions are welcome! Please:

  1. ๐Ÿด Fork the repository
  2. ๐ŸŒฟ Create a feature branch (git checkout -b feature/amazing-feature)
  3. โœ๏ธ Make your changes
  4. โœ… Add tests if applicable
  5. ๐Ÿ“ Commit your changes (git commit -m 'Add amazing feature')
  6. ๐Ÿš€ Push to the branch (git push origin feature/amazing-feature)
  7. ๐ŸŽ‰ Open a Pull Request


Open VS Code

With the Argus extension installed


Find Argus Icon

Look for in the Activity Bar (left sidebar)


Explore Sessions

Sessions appear automatically – just click to analyze!

Access via Command Palette (Ctrl/Cmd + Shift + P):

  • Argus: Refresh Sessions – Manually refresh the session list
  • Argus: Open Session Detail – View specific session analysis

Customize Argus in VS Code Settings:

๐Ÿ”ฅ

argus-vscode/
โ”œโ”€โ”€ src/                        # Extension source code
โ”‚   โ”œโ”€โ”€ extension.ts           # Main entry point
โ”‚   โ”œโ”€โ”€ types/                 # TypeScript definitions
โ”‚   โ”‚   โ”œโ”€โ”€ models.ts          # Core data models
โ”‚   โ”‚   โ””โ”€โ”€ parser.ts          # JSONL parsing types
โ”‚   โ”œโ”€โ”€ services/              # Business logic layer
โ”‚   โ”‚   โ”œโ”€โ”€ discoveryService.ts    # Session discovery & scanning
โ”‚   โ”‚   โ”œโ”€โ”€ parserService.ts       # JSONL parser
โ”‚   โ”‚   โ””โ”€โ”€ analyzerService.ts     # Analysis engine with rules
โ”‚   โ””โ”€โ”€ providers/             # VS Code API providers
โ”‚       โ”œโ”€โ”€ sessionTreeProvider.ts      # Tree view in sidebar
โ”‚       โ””โ”€โ”€ sessionWebviewProvider.ts   # React webview host
โ”‚
โ”œโ”€โ”€ webview/                   # React UI
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ main.tsx          # React entry point
โ”‚   โ”‚   โ”œโ”€โ”€ components/       # UI components
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ AnalysisTab.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ CostTab.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ PerformanceTab.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ FlowTab.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ContextTab.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ StepsTab.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ InsightsTab.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ DependencyGraph.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ LiveMonitor.tsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ SessionNotes.tsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ GlobalSearch.tsx
โ”‚   โ”‚   โ””โ”€โ”€ types/            # Frontend types
โ”‚   โ””โ”€โ”€ index.html            # Webview template
โ”‚
โ”œโ”€โ”€ package.json              # Extension manifest
โ”œโ”€โ”€ tsconfig.json            # TypeScript config
โ””โ”€โ”€ vite.config.js          # Vite bundler config

Argus uses a rule-based analysis system:

interface AnalysisRule ๐Ÿ”ฅ

// Built-in Rules:
- DuplicateReadRule       // Detects duplicate file reads
- UnusedReadRule          // Finds unused tool outputs
- RetryLoopRule           // Identifies retry patterns
- FailedToolRule          // Tracks failures
- ContextPressureRule     // Memory pressure detection
- CompactionDetectedRule  // Context compression events


Lines of Code

TypeScript Files

React Components

Analysis Rules

Visualization Types

Languages (EN/TR)

Dependencies

Dev Dependencies

  • โœ… JSONL Parsing: High-performance streaming parser for large session files
  • โœ… Cost Calculation: Accurate token-based cost estimation
  • โœ… Dependency Tracking: File operation dependency graph generation
  • โœ… Context Metrics: Cache hit ratio and token utilization analysis
  • โœ… Real-time Updates: Live session monitoring as Claude Code runs
  • โœ… Multi-session Management: Handle dozens of sessions simultaneously
  • โœ… Export Capabilities: Save analysis results for sharing
  • โœ… Search & Filter: Quick navigation across large sessions

Argus follows the “Ocular Systems” philosophy:

“See everything, understand everything, optimize everything”

  • Visibility: Make the invisible visible
  • ๐ŸŽฏ Precision: Accurate, actionable insights
  • โšก Performance: Fast, responsive, non-intrusive
  • ๐ŸŽจ Beauty: Delightful UI that makes analysis enjoyable
  • ๐Ÿ”ฌ Depth: Surface-level overview to deep technical details

๐Ÿ”„ Ported from Wails Desktop App

Argus VS Code extension is a complete rewrite of the original Argus desktop application:

Original (Wails) VS Code Extension
Go backend TypeScript backend
React SPA React Webview
Wails bridge VS Code Extension API
Standalone desktop app Integrated VS Code experience
Manual session import Automatic discovery

  • โœ… Native Integration: Works where developers already are
  • โœ… Better UX: No app switching, seamless workflow
  • โœ… Auto Discovery: No manual session loading
  • โœ… Theming: Inherits VS Code theme automatically
  • โœ… Commands: Accessible via Command Palette

๐Ÿ‘จโ€๐Ÿ’ป For Developers

  • โœ… Understand how Claude Code approaches your problems
  • โœ… Learn which prompts are most efficient
  • โœ… Optimize your interaction patterns
  • โœ… Track AI-assisted development costs
  • โœ… Audit AI usage across projects
  • โœ… Identify best practices
  • โœ… Training material for effective Claude Code usage
  • โœ… Cost management and budgeting
  • โœ… Study LLM-based development patterns
  • โœ… Analyze tool usage patterns
  • โœ… Understand context management strategies
  • โœ… Research AI-human collaboration workflows


MIT License – see LICENSE file for details


๐Ÿ‘๏ธ Built with Argus, Analyzed by Argus

Made with โค๏ธ by developers, for developers

Report Bug
Request Feature
Documentation


โญ Star us on GitHub if you find Argus useful!

{๐Ÿ’ฌ|โšก|๐Ÿ”ฅ} **Whatโ€™s your take?**
Share your thoughts in the comments below!

#๏ธโƒฃ **#yessGlory17argus #Claude #Code #Session #Debugger #Performance #Analyzer #GitHub**

๐Ÿ•’ **Posted on**: 1772901400

๐ŸŒŸ **Want more?** Click here for more info! ๐ŸŒŸ

By

Leave a Reply

Your email address will not be published. Required fields are marked *