Skip to content

Add cost tracking and cost limits section#12

Open
Chesars wants to merge 2 commits intoSWE-agent:mainfrom
Chesars:feature/cost-tracking
Open

Add cost tracking and cost limits section#12
Chesars wants to merge 2 commits intoSWE-agent:mainfrom
Chesars:feature/cost-tracking

Conversation

@Chesars
Copy link
Contributor

@Chesars Chesars commented Jan 20, 2026

Adds a new "Going further" section with practical features for real-world agents.

This PR adds:

  • Cost tracking: Using litellm.cost_calculator.completion_cost()
  • Cost limits: Pause the agent when spending exceeds budget

Inspired by mini-swe-agent's implementation.

Chesars and others added 2 commits January 20, 2026 10:45
- Add "Going further" section for practical agent features
- Add cost tracking using litellm.cost_calculator
- Add cost limits to prevent runaway spending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant