Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
Skills/DevOps & CI/CD
hoangsonww avatar

Data Export

hoangsonww/claude-code-agent-monitor

Pulls session data, events, analytics, and cost reports from Claude Code's Agent Monitor and converts them to JSON, CSV, or Markdown. You can filter by date range or session ID, and it handles the formatting details like proper CSV quoting and readable Markdown tables. Useful when you need to analyze usage patterns outside the monitor itself or when building reports for tracking API costs over time. The JSON export includes metadata headers, and large datasets get written to files instead of dumped to stdout. It's straightforward data plumbing, nothing fancy, but it saves you from manually querying the localhost API and wrestling with format conversion.

GitHub stars
455
last updated
Jun 11, 2026
View on GitHubSave

Install

$ npx -y skills add hoangsonww/claude-code-agent-monitor --skill data-export --agent claude-code

Installs into .claude/skills of the current project.

Files

Data Export

Export Agent Monitor data in various formats.

Input

The user provides: $ARGUMENTS

This may be:

  • A data type: "sessions", "events", "analytics", "costs", "all"
  • A format: "json", "csv", "markdown" (default: json)
  • A filter: "last 7 days", "session {id}", "completed only"
  • Combined: "sessions csv last 30 days"

Procedure

  1. Parse the request to determine:

    • Data scope: which data to export
    • Format: output format
    • Filters: time range, status, session ID
  2. Fetch data from http://localhost:4820:

    • Sessions: GET /api/sessions?limit=1000
    • Events: GET /api/events?limit=5000
    • Analytics: GET /api/analytics
    • Costs: GET /api/pricing/cost
    • Full export: GET /api/settings/export
  3. Transform to requested format:

    JSON Format

    Pretty-printed JSON with metadata header:

    {
      "export": {
        "source": "Claude Code Agent Monitor",
        "exported_at": "2025-04-11T12:00:00Z",
        "filters": { "type": "sessions", "range": "last 7 days" },
        "count": 42
      },
      "data": [...]
    }
    

    CSV Format

    Standard CSV with headers, proper quoting, and ISO timestamps:

    id,name,status,model,started_at,ended_at,duration_minutes,cost_usd
    

    Markdown Format

    Human-readable tables with summary statistics:

    # Agent Monitor Export — Sessions (Last 7 Days)
    | ID | Name | Status | Model | Duration | Cost |
    |...
    **Total: 42 sessions, $12.34 cost**
    
  4. Output the data:

    • For small exports (<100 rows): output directly
    • For large exports: save to file and report the path
    • Include row count and any filter notes

Output Format

Deliver the exported data in the requested format. Always include:

  • Export metadata (when, what, filters applied)
  • Row/record count
  • Suggested filename for saving
SKILL.md on GitHub

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Details

Repository
github.com/hoangsonww/claude-code-agent-monitor
Categories
DevOps & CI/CD, AI & Agent Building
License
MIT
First seen
Jun 11, 2026

More from hoangsonww/claude-code-agent-monitor

All 24
  • Debug Live Issue
  • Health Check
  • Hook Diagnostics
  • Mcp Maintainer
  • Mcp Operations
  • Optimization Suggest
  • Pattern Detect
  • Productivity Score
  • Quick Stats
  • Release Guard
  • Repo Onboarding
  • Session Compare
  • Session Debug
  • Session Report
  • Ship Feature
  • Sprint Summary
  • Usage Trends
  • Weekly Report
  • Workflow Optimizer
  • Anomaly Alert
  • Cost Breakdown
  • Daily Standup
  • Dashboard Status

Recommended

More DevOps & CI/CD
1hoangsonww avatardebug-live-issuehoangsonww/claude-code-agent-monitorDebug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows, regressions, flaky behavior, or data inc0installs
2hoangsonww avatarhealth-checkhoangsonww/claude-code-agent-monitor>0installs
3hoangsonww avatarhook-diagnosticshoangsonww/claude-code-agent-monitor>0installs
4hoangsonww avatarmcp-maintainerhoangsonww/claude-code-agent-monitorOperate and maintain the local MCP server for this repository. Use for MCP tool updates, policy-guard changes, host configuration, and MCP runtime troubleshooti0installs
5hoangsonww avatarmcp-operationshoangsonww/claude-code-agent-monitorOperate and maintain the local MCP server for this project. Use when creating MCP host config, troubleshooting tool connectivity, modifying tool domains, or adj0installs
6hoangsonww avataroptimization-suggesthoangsonww/claude-code-agent-monitor>0installs