Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Action Provider: Token safety checks before trading (SafeAgent)

Open
#1,091 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@mehmetkr-31 is already working on this.

Since Jun 2, 2026.

  • #1258 by @mehmetkr-31 — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
typescript

Research direction

The proposal names the checkTokenSafety entry point, the REST /token/scan endpoint, an MCP integration, and the ERC Token Safety Score standard, but no AgentKit files or tests. Start by reviewing existing action providers and those integration references; done criteria and implementation scope still need maintainer agreement.

Written by the indexing model from the issue text.

Description

Proposal: Token Safety Action Provider

Problem

AgentKit enables AI agents to trade crypto, but has no built-in safety checks. The legal notice states "User's exclusive responsibility" for trading risks. A safety action provider would protect users and reduce liability.

Solution

SafeAgent action provider — agents call checkTokenSafety before executing any swap:

// In an agent's trading flow
const safetyReport = await checkTokenSafety(tokenAddress, 'base');
if (!safetyReport.isSafe) {
  return "Token flagged as potentially unsafe: " + safetyReport.flags.join(', ');
}
// Proceed with swap...
Detection Capabilities
  • Honeypot detection (DEX swap simulation)
  • 17 scam pattern checks
  • LP lock verification
  • Owner analysis (renounced, privileged functions)
  • Proxy/upgrade detection
  • 6 chains: Base, Ethereum, Arbitrum, Optimism, Polygon, BSC
Integration Options
  • MCP: https://cryptogenesis.duckdns.org/mcp/sse (compatible with AgentKit MCP examples)
  • npm: npm install CryptoGenesisSecurity/erc-token-safety-score
  • REST: GET /token/scan?address=0x...&chain=base
  • On-chain: Oracle on Optimism 0x3B8A6D696f2104A9aC617bB91e6811f489498047
Standard

ERC Token Safety Score — open standard: https://github.com/CryptoGenesisSecurity/erc-token-safety-score

Happy to build the action-provider if Coinbase is interested.

Dominant language
TypeScript
Stars
1.3k
Forks
842
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from coinbase/agentkit

All issues in coinbase/agentkit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.