Current collected state Current
Observed since 21 Oct, 09:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
ERC-8004 Protocol for pi-coding-agent. Agent identity, reputation, and discovery on Base L2
ERC-8004 Protocol for pi-coding-agent. Agent identity, reputation, and discovery on Base L2.
# Via pi CLI
pi install npm:@0xkobold/pi-erc8004
# Or in pi-config.ts
{
extensions: [
'npm:@0xkobold/pi-erc8004'
]
}
@0xkobold/pi-wallet# Register identity
/erc8004 register specialist --capabilities typescript,react,node
# Check status
/erc8004 status
# Submit attestation for worker
/erc8004 attest --worker 0x742d35... --rating 95 --task-id abc123 --comment "Great work"
# Discover agents
/erc8004 discover --capability typescript
# Check reputation
/erc8004 reputation
/erc8004 reputation --worker 0x742d35...
| Network | IdentityRegistry | ReputationRegistry | Chain ID |
|---|---|---|---|
| Base Mainnet | 0x8004A169... | 0x8004BAa1... | 8453 |
| Base Sepolia | 0x8004A818... | 0x8004B663... | 84532 |
Full addresses:
0x8004A169FB4a3325136EB29fA0ceB6D2e539a4320x8004BAa17C55a88189AE136b182e5fdA19dE9b630x8004A818BFB912233c491871b3d84c89A494BD9e0x8004B663056A597Dffe9eCcC1965A193B7388713| Command | Description |
|---|---|
/erc8004 register TYPE | Register identity with capabilities |
/erc8004 status | Show identity and reputation |
/erc8004 attest --worker ADDR --rating N | Submit attestation |
/erc8004 discover --capability CAP | Find agents |
/erc8004 reputation [--worker ADDR] | Check reputation |
erc8004_register{
agentType: "specialist",
capabilities?: ["typescript", "react"]
}
erc8004_attest{
worker: "0x742d35...",
score: 95,
taskId?: "task-123"
}
erc8004_discover{
capability: "typescript"
}
erc8004_reputation{
worker?: "0x742d35..." // Omit for self
}
| Tier | Score | Description |
|---|---|---|
| Bronze | 0-39 | New agent |
| Silver | 40-69 | Active agent |
| Gold | 70-89 | Trusted agent |
| Platinum | 90+ | Elite agent |
// Given 7 attestations
const score = Math.min(100, 7 * 5 + 10) // 45
const tier = "silver"
# 1. Create wallet
/wallet-create --email me@example.com
# 2. Register identity (auto-links wallet)
/erc8004 register specialist --capabilities coding
# 3. Attest and pay
/erc8004 attest --worker 0x... --rating 95 --task-id abc
/wallet-x402 --url https://api.service.com/task/abc/pay
Config stored at ~/.0xkobold/erc8004/:
~/.0xkobold/erc8004/agent.json{
"address": "0x742d35...",
"metadataHash": "0x...",
"publicKey": "0x",
"capabilities": ["typescript", "react"],
"registeredAt": 1710334800000,
"chain": "sepolia",
"active": true
}
~/.0xkobold/erc8004/reputation.json{
"localScore": 45,
"attestations": [{
"worker": "0x742d35...",
"score": 95,
"taskId": "task-123",
"timestamp": 1710334800000,
"comment": "Excellent work"
}]
}
Phase 2 will add:
Prerequisites:
@0xkobold/pi-wallet)git clone https://github.com/0xKobold/pi-erc8004
cd pi-erc8004
npm install
npm run build
pi install ./
# Unit tests
bun test test/unit/extensions/erc8004.test.ts
# Integration tests with wallet
bun test test/integration/wallet-erc8004.integration.test.ts
@0xkobold/pi-wallet for paymentsMIT © 0xKobold
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:cdf6094d41c8f11fc315834bf45b6b4a43c5233241f508f2d54dfb85a8c7a3ec