agent-rewards
by josecookai
README.md
# π€ Agent Rewards
**Turn your coding-agent traces into a stablecoin reward.**
Agent Rewards is an open-source skill/MCP that installs into your coding agents β **Claude Code,
Codex, Grok Bot, Hermes Agent, Openclaw** β automatically finds, redacts, and uploads your agent
sessions, and lets you **sell access to those traces to researchers and model trainers for
USDC/USDT**.
Your agents already generate high-value training data every day (tool calls, multi-turn reasoning,
error recovery). You generate that data anyway. Agent Rewards makes it worth something.



---
## Why
Real conversation/trajectory data is the scarcest, most valuable post-training signal for open
models. Yet today:
- **HF Agent Traces** gives you the upload pipeline β but it's *manual* (`hf upload`, no incentive).
- **KTH reproducible-trajectories** proves "install + share to a DB" β but CLI-only, no reward.
- **WildChat / LMSYS / ShareChat** proved wild conversation data trains better models.
None of them is **native, automated, privacy-first, and paid**. That's the gap Agent Rewards fills.
---
## β¨ Features
1. **π Find your trace** β scans all supported agents' local session dirs, cross-platform.
2. **β¬οΈ Upload / auto-upload daily** β incremental sync daemon, sha256 dedup, offline queue.
3. **π₯οΈ View your trace** β HF-style timeline viewer: prompts, tool calls, tool outputs, reasoning.
4. **πͺ View your credits** β live ledger + token balance.
5. **π Exchange your traces for USDC/USDT** β sell access on-chain (Base L2, low fees); pull-based,
per-trace licensing (research / commercial / exclusive).
---
## π One-click install
Agent Rewards ships as (a) a shared **MCP server** and (b) thin **per-agent skills** so it mounts
natively into each runtime.
| Agent | Install target | Trace location |
|----------------|--------------------------------------|------------------------------------|
| Claude Code | `~/.claude/plugins/` skill | `~/.claude/projects/**/*.jsonl` |
| Codex | `~/.codex/` skill | `~/.codex/sessions/**/rollout-*.jsonl` |
| Grok Bot | Grok skill | `~/.grok/**` |
| Hermes Agent | `~/.hermes/skills/` + MCP server | `~/.hermes/sessions/**` |
| Openclaw | Openclaw skill | `~/.openclaw/**` |
### Run the MCP server (working today)
```bash
# from a clone
cd agent-rewards
python3 -m pip install -e . # or: pip install -e .[dev] for tests
python3 -m agent_rewards.server # or use the `agent-rewards-mcp` entry point
```
Point your MCP client at it. In **Hermes** (`~/.hermes/config.yaml`):
```yaml
mcp_servers:
agent_rewards:
command: "/usr/bin/python3"
args: ["-m", "agent_rewards.server"]
env:
AGENT_REWARDS_DB_DIR: "~/.agent-rewards"
```
Or via **Claude Code** (`.mcp.json`):
```json
{
"mcpServers": {
"agent_rewards": {
"command": "/usr/bin/python3",
"args": ["-m", "agent_rewards.server"]
}
}
}
```
The server exposes 5 tools:
| Tool | What it does |
|-----------------|---------------------------------------------------------------------|
| `find_trace` | List the newest local agent traces (all supported agents) |
| `view_trace` | Read one trace, secrets/PII scrubbed before it reaches the model |
| `upload_trace` | Redact + register a trace into your credits ledger |
| `get_credits` | Show your running credits balance + recent registrations |
| `scope_of` | Privacy gate: is a path in an open-source (shareable) repo? |
> **Coming soon:** one-shot `scripts/install.sh` (auto-detects agents), HTTP mode,
> per-agent skills, daily daemon.
---
## π Privacy by default (the moat)
- **Git-aware scoping** β default uploads only traces touching **open-source repositories**. Private
code is opt-in only.
- **Local redaction** β secret/PII/token scrub + LLM review gate *before* anything leaves the machine.
- **Provenance** β content-addressed (sha256 / IPFS), immutable hash registry.
- **Clear licensing** β every trace is tagged `research` / `commercial` / `exclusive`; you set the price.
You stay in control of *what* leaves your machine and *who* can buy it.
---
## Architecture
```
[installer]
ββ per-agent skills / MCP (claude Β· codex Β· grok Β· hermes Β· openclaw)
ββ [collector] scan trace jsonl
ββ [redactor] git-aware + secret/PII scrub (local-first)
ββ [sync daemon] upload daily Β· dedup Β· offline queue
ββ [backend] Postgres + object store + hash registry
ββ [api] REST / MCP read API
ββ [dashboard] view traces Β· credits Β· listings
ββ [ledger] USDC/USDT settlement (Base L2)
ββ [marketplace] buy / sell access
```
---
## Roadmap
- **M0** β repo + README + demo landing page β
- **M1** β MCP server: `find_trace` / `view_trace` / `upload_trace` / `get_credits` / `scope_of` β
*(working stdio server; HTTP + installer pending)*
- **B0 (Beta)** β one-click install + hosted backend + dashboard + privacy hardening β **public preview** π¨ *(backend `backend/`, dashboard `dashboard/`, installer `scripts/install.sh` shipped β see gap table)*
- **M2** β per-agent skills (Claude Code, Codex, Hermes first) + redactor + daily daemon
- **M3** β backend + dashboard + hash registry + decontamination
- **M4** β ledger + USDC/USDT settlement + marketplace
- **M5** β open-sourcing contributor rewards / token incentives
See **[docs/ROADMAP.md](docs/ROADMAP.md)** for milestones with acceptance criteria and
**docs/CHECKLIST.md** for the release checklist. Full project status is tracked there.
---
## Getting started (contributors)
```bash
git clone https://github.com/josecookai/agent-rewards.git
cd agent-rewards
# landing page (demo)
python3 -m http.server --directory landing 8000 # β http://localhost:8000
```
---
## Related work
- [HF Agent Traces](https://huggingface.co/docs/hub/main/en/agent-traces) β trace upload + viewer infra
- [KTH reproducible-trajectories](https://github.com/ASSERT-KTH/reproducible-trajectories) β share-to-DB
- [ShareChat](https://arxiv.org/html/2512.17843v3) β multi-platform wild conversation dataset (incl. Grok)
- [WildChat](https://wildchat.allen.ai/) β 1M real userβChatGPT conversations
---
## License
MIT. Traces contributed by users remain under **their** chosen license and are only accessible to
buyers you approve.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues