You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/trackio/SKILL.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,8 @@ Use the `trackio` command to query logged metrics and alerts:
53
53
54
54
**Key concept**: Add `--json` for programmatic output suitable for automation and LLM agents.
55
55
56
+
**Remote Spaces**: Add `--space <space_id_or_url>` to any `list`/`get` command to query a remote HF Space instead of local data. Use `--hf-token` for private Spaces.
57
+
56
58
→ See [retrieving_metrics.md](retrieving_metrics.md) for all commands, workflows, and JSON output formats.
57
59
58
60
## Minimal Logging Setup
@@ -71,6 +73,9 @@ trackio.finish()
71
73
```bash
72
74
trackio list projects --json
73
75
trackio get metric --project my-project --run my-run --metric loss --json
76
+
77
+
# Query a remote Space
78
+
trackio list projects --space username/my-space --json
Copy file name to clipboardExpand all lines: .agents/skills/trackio/retrieving_metrics.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Retrieving Metrics with Trackio CLI
2
2
3
-
The `trackio` CLI provides direct terminal access to query Trackio experiment tracking data locally without needing to start the MCP server.
3
+
The `trackio` CLI provides direct terminal access to query Trackio experiment tracking data without needing to start the MCP server. Commands work against local data by default, or against a remote HF Space when `--space` is provided.
4
4
5
5
## Quick Command Reference
6
6
@@ -18,6 +18,7 @@ The `trackio` CLI provides direct terminal access to query Trackio experiment tr
18
18
| Get metric around step |`trackio get metric ... --metric <name> --around <N> --window <W>`|
19
19
| Get all metrics snapshot |`trackio get snapshot --project <name> --run <name> --step <N>`|
20
20
| Get system metrics |`trackio get system-metric --project <name> --run <name>`|
21
+
| Query remote Space |`trackio list projects --space <space_id_or_url>`|
21
22
| Show dashboard |`trackio show [--project <name>]`|
22
23
| Sync to Space |`trackio sync --project <name> --space-id <space_id>`|
23
24
@@ -68,6 +69,17 @@ trackio get system-metric --project <name> --run <name> --metric <name> # Speci
68
69
trackio get system-metric --project <name> --run <name> --json
69
70
```
70
71
72
+
### Remote Space Queries
73
+
74
+
All `list` and `get` commands support querying a remote HF Space with `--space`:
75
+
76
+
```bash
77
+
trackio list projects --space user/my-space # Space ID
78
+
trackio list projects --space https://user-my-space.hf.space # Space URL
79
+
trackio get metric --project <name> --run <name> --metric loss --space user/my-space
80
+
trackio list projects --space user/private-space --hf-token hf_xxx # Private Space
81
+
```
82
+
71
83
### Dashboard Commands
72
84
73
85
```bash
@@ -185,6 +197,8 @@ All errors exit with non-zero status code and write to stderr.
185
197
-`--run`: Run name (required for run-specific commands)
186
198
-`--metric`: Metric name (required for metric-specific commands)
187
199
-`--json`: Output in JSON format instead of human-readable
200
+
-`--space`: HF Space ID (e.g. `user/space`) or Space URL to query remotely (for `list`/`get` commands)
201
+
-`--hf-token`: HF token for accessing private Spaces (for `list`/`get` commands with `--space`)
This directory contains scripts and prompt files that can be provided to coding agents (for example, Claude Code) to run autonomous machine learning experiments.
Copy file name to clipboardExpand all lines: docs/source/cli_commands.md
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,29 @@
1
1
# CLI Commands
2
2
3
-
Trackio provides a comprehensive set of CLI commands that enable you to query project, run, and metric information locally without needing to start the MCP server. This is particularly useful for LLM agents and automation scripts. With structured JSON output and programmatic access to all experiment data, Trackio is designed to support autonomous ML experiments run by LLMs.
3
+
Trackio provides a comprehensive set of CLI commands that enable you to query project, run, and metric information without needing to start the MCP server. Commands work against local data by default, or against a remote HF Space when `--space` is provided. This is particularly useful for LLM agents and automation scripts. With structured JSON output and programmatic access to all experiment data, Trackio is designed to support autonomous ML experiments run by LLMs.
4
+
5
+
## Querying Remote Spaces
6
+
7
+
All `list` and `get` commands support querying a remote Hugging Face Space instead of local data. Pass the `--space` flag with either a Space ID or full URL:
8
+
9
+
```sh
10
+
# Using a Space ID
11
+
trackio list projects --space username/my-space
12
+
13
+
# Using a Space URL
14
+
trackio list projects --space https://username-my-space.hf.space
0 commit comments