
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
agent-rep-sdk
Advanced tools
TypeScript SDK for AgentRep — ERC-8004 on-chain reputation for AI agents on Hedera. Zero dependencies. Middleware, caching, retry, events, trust policies.
TypeScript SDK for AgentRep — ERC-8004 on-chain reputation for AI agents on Hedera.
Zero dependencies. Full TypeScript support. Middleware, caching, retry, events, trust policies.
npm install @agent-rep/sdk
import { AgentRepClient } from '@agent-rep/sdk';
const client = new AgentRepClient({
baseUrl: 'https://your-agentrep-api.com/api',
apiKey: 'ar_your_api_key_here',
});
// Check an agent's reputation
const rep = await client.getReputation('0.0.8251198');
console.log(rep.overallScore, rep.trustTier);
// Find the best agent for a task
const best = await client.findBestAgent('defi', 500);
// Submit feedback (ERC-8004)
await client.giveFeedback({
agentId: '0.0.8251198',
value: 85,
tag1: 'accuracy',
tag2: 'price-feeds',
});
const agents = await client.search()
.skill('defi')
.minScore(500)
.minTier('TRUSTED')
.activeWithin(7 * 24 * 60 * 60 * 1000)
.hcs10Only()
.sortBy('score')
.limit(5)
.execute();
import { POLICY_HIGH } from '@agent-rep/sdk';
const result = await client.evaluateTrust('0.0.123', POLICY_HIGH);
if (result.trusted) {
// Safe to delegate task
} else {
console.log('Failed checks:', result.failures);
}
// Custom policy
await client.evaluateTrust(id, {
minTier: 'VERIFIED',
minScore: 400,
minFeedbackCount: 3,
requiredSkills: ['defi'],
maxInactivity: 7 * 24 * 60 * 60 * 1000,
});
import { loggingMiddleware, metricsMiddleware, circuitBreakerMiddleware } from '@agent-rep/sdk';
const metrics = metricsMiddleware();
const breaker = circuitBreakerMiddleware({ failureThreshold: 5 });
const client = new AgentRepClient({
baseUrl: 'https://api.example.com',
middleware: [loggingMiddleware(), metrics.middleware, breaker.middleware],
});
// After some requests...
console.log('Avg latency:', metrics.averageLatency());
console.log('Circuit state:', breaker.state());
Built-in middleware: loggingMiddleware, metricsMiddleware, throttleMiddleware, circuitBreakerMiddleware, bearerAuthMiddleware, headersMiddleware.
client.on('feedback:given', (data) => console.log('New score:', data.reputation.overallScore));
client.on('retry', (data) => console.log(`Retrying... attempt ${data.attempt}`));
client.on('cache:hit', (data) => console.log('Served from cache'));
client.on('reputation:changed', (change) => console.log(`Score delta: ${change.scoreDelta}`));
const client = new AgentRepClient({
baseUrl: 'https://api.example.com',
cache: { ttl: 60000, maxSize: 100 },
retry: { maxRetries: 3, baseDelay: 1000 },
});
await client.listAgents(); // Network call
await client.listAgents(); // Instant — from cache
const batch = await client.batchFeedback([
{ agentId: '0.0.123', value: 90, tag1: 'accuracy', tag2: 'prices' },
{ agentId: '0.0.456', value: 75, tag1: 'speed', tag2: 'api' },
], 3); // concurrency
console.log(`${batch.summary.succeeded}/${batch.summary.total} succeeded`);
client.on('reputation:changed', (change) => {
console.log(`${change.agentId}: ${change.scoreDelta > 0 ? '+' : ''}${change.scoreDelta}`);
});
await client.watch('0.0.123', { interval: 10000 });
const cmp = await client.compare('0.0.123', '0.0.456');
console.log(`Winner: ${cmp.winner.agent.name} (by ${cmp.scoreDiff} points)`);
register() · getAgent() · setAgentURI() · getMetadata() · setMetadata() · getAgentWallet() · setAgentWallet()
giveFeedback() · revokeFeedback() · revokeByIndex() · respondToFeedback() · getFeedbackSummary() · readFeedback() · readAllFeedback() · getClients() · getLastIndex()
requestValidation() · submitValidation() · getValidationStatus() · getValidationSummary() · getAgentValidations() · getValidatorRequests()
listAgents() · findAgents() · findBestAgent() · search() · isTrusted() · evaluateTrust() · findTrustedAgents() · compare() · getReport()
MIT
FAQs
TypeScript SDK for AgentRep — ERC-8004 on-chain reputation for AI agents on Hedera. Zero dependencies. Middleware, caching, retry, events, trust policies.
We found that agent-rep-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.