How anuragjosyula/autonomous-finops-agent works
Cloud Cost Anomaly Agent runs on a daily schedule, detects unusual spend, investigates its timing and likely infrastructure cause, asks Bedrock to explain the anomaly and recommend a fix, then sends an alert to Slack. Cost data comes from either Cost Explorer or the CUR-through-Athena provider, selected by configuration. The README documents these integrations and the scheduled workflow; the source excerpts show the agent’s dispatch to its tools and provider implementations, but do not expose every internal call in the CUR query path.
Main entry points: agent.py Agent loop · aws_athena_cur.py Athena CUR provider · aws_cost_explorer.py Cost Explorer provider · aws_cloudtrail.py CloudTrail lookup
Components 13
Agent orchestration
- Agent loop
Agent/agent.py
Cost detection
- Cost Explorer provider
Agent/aws_cost_explorer.py - Athena CUR provider
Agent/aws_athena_cur.py
Cause investigation
- CloudTrail lookup
Agent/aws_cloudtrail.py
Explanation and alert
- Bedrock model
- Slack alert builder
Agent/slack_notify.py
Other components
- Daily schedule
- Cost Explorer API
- CUR in S3
- Athena
- Glue catalog
- AWS CloudTrail
- Slack
Connections 12
- Daily schedule → Agent loop: invokes daily
README.md - Agent loop → Cost Explorer provider: dispatches cost tools
Agent/agent.py - Agent loop → Athena CUR provider: dispatches cost tools
Agent/agent.py - Cost Explorer provider → Cost Explorer API: queries costs
README.md - Athena CUR provider → Athena: queries CUR
README.md - Athena CUR provider → Glue catalog: reads schema
README.md - CUR in S3 → Athena: queried through
README.md - Agent loop → CloudTrail lookup: dispatches lookup
Agent/agent.py - CloudTrail lookup → AWS CloudTrail: looks up events
Agent/aws_cloudtrail.py - Agent loop → Bedrock model: runs model loop
README.md - Agent loop → Slack alert builder: dispatches alert
Agent/agent.py - Slack alert builder → Slack: posts webhook
Agent/slack_notify.py