๐ฅ 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

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

Session efficiency scores, wasted cost analysis, and performance metrics

Interactive dependency graph showing file operations and step relationships

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

Token usage tracking, cache performance, and context window utilization

AI-powered recommendations, pattern recognition, and optimization suggestions

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:
- ๐ด Fork the repository
- ๐ฟ Create a feature branch (
git checkout -b feature/amazing-feature) - โ๏ธ Make your changes
- โ Add tests if applicable
- ๐ Commit your changes (
git commit -m 'Add amazing feature') - ๐ Push to the branch (
git push origin feature/amazing-feature) - ๐ 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 listArgus: 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
|
|
|
MIT License – see LICENSE file for details
๐๏ธ Built with Argus, Analyzed by Argus
Made with โค๏ธ by developers, for developers
โญ 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! ๐
