Official Python CLI for TrajectoryRL (Bittensor SN11) — skill hub, live subnet state, validator analysis, and on-chain queries.
Project description
trajrl
The official Python CLI for TrajectoryRL — an open skill factory that uses Bittensor's distributed compute and incentive layer to produce state-of-the-art agent skills.
One install, one binary, three groups:
| Group | What it does |
|---|---|
trajrl skills ... |
Browse and install agent skills published on trajrl.com into your local agent skill dirs (Claude Code, Cursor, Codex, Hermes, OpenClaw). |
trajrl <subnet command> |
Live SN11 state — winner, challenger, queue, validators, miners, packs, eval logs, deep validator analysis. |
trajrl chain ... |
Generic Bittensor on-chain queries for any subnet — metagraph and hyperparams (tempo / emission / burn). |
CLI output is Rich tables in a TTY and JSON when piped.
Install
pip install trajrl
Live SN11 state (v6 winner-challenger)
trajrl challenge # in-flight epoch — challenger pack + per-validator scores so far
trajrl winner # current seated winner + last 5 change events
trajrl winner --history 20 # show more history
trajrl queue # pending eval queue
trajrl queue --eligible-only # filter to submissions eligible right now
Validators / miners / packs
trajrl validators # roster table
trajrl validators --detail # adds stake / weightTargets / benchVersion
trajrl miner --uid 63 # miner detail by UID
trajrl miner HOTKEY
trajrl pack HOTKEY PACK_HASH # specific pack + eval results
trajrl submissions # recent submissions across the network
trajrl submissions --failed
Validator deep-dive
trajrl analyze # interactive validator picker
trajrl analyze --uid 5 --deep # full report + drill-down into top miners
trajrl analyze HOTKEY --logs # include recent eval logs
analyze produces, in one report:
- Score Summary — miners evaluated, qualification rate, score stats
- Rejection Breakdown — counts by rejection stage
- Weight Distribution — parsed from cycle log, per-miner weights, gate, winner
- Scenario Heatmap — pass rate, avg score per scenario
- Top 15 Leaderboard — miners ranked by score
- With
--deep: per-miner drill-down
Eval logs (debug + audit)
trajrl logs --validator HOTKEY --limit 20
trajrl logs --eval-id 20260329_1430_w42 --show
trajrl logs --eval-id 20260329_1430_w42 --dump-to ./debug/
A miner eval archive contains:
SKILL.md # miner's product
JUDGE.md # scoring rubric used
metadata.json # final_score, delta, episode qualities
world.json # scenario context + salt
episodes/episode_N/
testee_transcript.txt # agent's session log
judge_transcript.txt # judge agent's grading log
evaluation.json # per-criterion scores + summary
episode.json # fixtures + instruction
Skill hub
trajrl skills list # all available skills
trajrl skills list --tag dev-tools --tag data # filter by tags (AND)
trajrl skills search "code review"
trajrl skills show self-learning
trajrl skills add self-learning # install into every detected agent
trajrl skills add self-learning --agent cursor
trajrl skills sync # re-pull installed skills if newer upstream
Default agent skill directories (auto-detected by directory existence):
| Agent | Path |
|---|---|
| Claude Code | ~/.claude/skills/<slug>/SKILL.md |
| Cursor | ~/.cursor/skills-cursor/<slug>/SKILL.md |
| Codex | ~/.codex/skills/<slug>/SKILL.md |
| Hermes | ~/.hermes/skills/<slug>/SKILL.md |
| OpenClaw | ~/.openclaw/skills/<slug>/SKILL.md |
Chain queries (any subnet)
trajrl chain metagraph --netuid 11
trajrl chain metagraph --netuid 11 --network test
trajrl chain emission --netuid 11
Override the network with --network / -n or BT_NETWORK (finney | test | local | archive | ws(s)://endpoint).
Global options
Every command accepts:
| Option | Description |
|---|---|
--json / -j |
Force JSON output (auto when piped) |
--base-url |
Override API base URL (env: TRAJRL_BASE_URL) |
--version / -v |
Print version and exit |
trajrl chain commands additionally accept --network / -n.
JSON output
Piped output is JSON for every command — handy with jq:
trajrl skills list | jq '.skills[].slug'
trajrl winner | jq '.current.winner.uid'
trajrl queue --eligible-only | jq '.queue | length'
trajrl validators | jq '.validators[] | {uid, name, version, weightTargets}'
trajrl chain metagraph -u 11 | jq '.neurons[0:5]'
Skills (in this repo)
skills/trajrl/SKILL.md— full agent-facing reference
Migration from v1.x
v1.x shipped three binaries: trajrl, trajectoryrl-inspector, bittensor-subnet-inspector. v2.0 collapses everything into one trajrl binary.
| v1.x | v2.0 |
|---|---|
trajectoryrl-inspector status |
trajrl validators |
trajectoryrl-inspector download HOTKEY HASH |
trajrl pack HOTKEY HASH |
trajectoryrl-inspector download --uid N |
trajrl miner --uid N |
trajectoryrl-inspector analyze HOTKEY |
trajrl analyze HOTKEY |
trajectoryrl-inspector logs ... |
trajrl logs ... |
trajectoryrl-inspector submissions |
trajrl submissions |
bittensor-subnet-inspector metagraph -u 11 |
trajrl chain metagraph --netuid 11 |
bittensor-subnet-inspector emission -u 11 |
trajrl chain emission --netuid 11 |
New v2.0 commands: trajrl challenge, trajrl winner, trajrl queue (v6 dual-seat winner-challenger).
Links
- Subnet repo: https://github.com/trajectoryRL/trajectoryRL — incentive mechanism, evaluation framework
- Bench: https://github.com/trajectoryRL/trajrl-bench — eval sandbox
- Website: https://trajrl.com — leaderboard, live subnet data, skill hub
- Public API: PUBLIC_API.md — read-only, no auth, base URL
https://trajrl.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trajrl-2.0.0.tar.gz.
File metadata
- Download URL: trajrl-2.0.0.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f172cc5abf50b40dfad374d15fd4b6b34fd7ce9cb19b0e5ed86fd2fa2ddd1d53
|
|
| MD5 |
17ffc3dc058f51b4ba816c51036d8a46
|
|
| BLAKE2b-256 |
c0e9bc800414434c441eaa0261a97c48e4c749a54cec5aaa19d38d974c5f9c65
|
Provenance
The following attestation bundles were made for trajrl-2.0.0.tar.gz:
Publisher:
publish.yml on trajectoryRL/trajrl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trajrl-2.0.0.tar.gz -
Subject digest:
f172cc5abf50b40dfad374d15fd4b6b34fd7ce9cb19b0e5ed86fd2fa2ddd1d53 - Sigstore transparency entry: 1491781257
- Sigstore integration time:
-
Permalink:
trajectoryRL/trajrl@deabc0da7e2de9909f4d2f80cf23d4352048c834 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/trajectoryRL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@deabc0da7e2de9909f4d2f80cf23d4352048c834 -
Trigger Event:
push
-
Statement type:
File details
Details for the file trajrl-2.0.0-py3-none-any.whl.
File metadata
- Download URL: trajrl-2.0.0-py3-none-any.whl
- Upload date:
- Size: 32.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ec443d02473b9d6f128a30358633482ad9e5c4f05d6b7c92eeac39c431662c2
|
|
| MD5 |
0f1015d32b9baa30e3299d3d5a980187
|
|
| BLAKE2b-256 |
e931a28c844d97d644d80592b5aee9250f23bc775aa5b94c123f8a8160db2ece
|
Provenance
The following attestation bundles were made for trajrl-2.0.0-py3-none-any.whl:
Publisher:
publish.yml on trajectoryRL/trajrl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trajrl-2.0.0-py3-none-any.whl -
Subject digest:
2ec443d02473b9d6f128a30358633482ad9e5c4f05d6b7c92eeac39c431662c2 - Sigstore transparency entry: 1491781362
- Sigstore integration time:
-
Permalink:
trajectoryRL/trajrl@deabc0da7e2de9909f4d2f80cf23d4352048c834 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/trajectoryRL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@deabc0da7e2de9909f4d2f80cf23d4352048c834 -
Trigger Event:
push
-
Statement type: