Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.37 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.37 KB

Update data Deploy to GitHub Pages

AI Agent Statistics

AI-Agent Statistics

Collect PullRequest create by AI Agents, and view statistics for that.

Summary Statistics Details

Summary

  • requires a GitHub Fine-grained access token without any permissions
# Collect data by GitHub GraphQL API
$ poetry install
$ poetry run python scripts/initialize_db.py
# => Initialize `store.db` with `webapp/public/assets/*.parquet` files
$ poetry run python src/ai_agent_statistics/__main__.py --token=github_pat_... --start-date=2024-12-25 --end-date=2024-12-31
=> store and update data to ./store.db

$ poetry run python scripts/export_db.py
# => Export parquet files

# Build and start webapp
$ cd webapp
$ npm run build
$ npm run preview
=> access to http://localhost:4173/ai-agent-statistics