coinbase / coinbase/agentkit

feat: Transaction health analysis reveals common failure patterns in AgentKit deployments

Open
#958 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.3k
Forks
815
Avg merge
13h 31m
Merged PRs (30d)
2

Description

### Language Implementation

- [x] Python
- [ ] TypeScript

### Feature Type

- [ ] Action Provider Template
- [ ] Wallet Provider Template
- [ ] Framework Extension
- [ ] Core Requirements
- [x] Other

### 🚀 The feature, motivation and pitch

## Summary
Built a monitoring tool and analyzed 16 agent wallets on Base. Found significant transaction health issues that AgentKit developers should be aware of.

## Findings
- Average health score: 85/100 across 16 agents
- Total waste: ~$918/month across all analyzed agents
- 2 agents showing critical issues (25-56% failure rates)

## Common Problems Observed
1. **Oversized gas limits** - One agent showing 4.18% gas efficiency (setting limits ~20x higher than actual usage)
2. **Poor retry logic** - Failed transactions not being retried appropriately
3. **Nonce management issues** - Causing transaction conflicts

## Impact
Agents using AgentKit are wasting significant funds on failed transactions and oversized gas allocations. This could be deterring adoption.

## Recommendation
Consider adding guidance in AgentKit docs about:
- Best practices for gas estimation
- Recommended retry/fallback strategies
- Transaction monitoring suggestions

Happy to share detailed data or collaborate on solutions. Built a monitoring tool specifically for this purpose.

### Alternatives

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.