Agent Learner
An AI toolkit for configuring, benchmarking, comparing, and optimizing agent prompts and evaluation results. Agent Learner provides persistent, file-based logging for each command category with timestamped entries, summary statistics, multi-format export, and full-text search across all records.
Commands
| Command |
Description |
configure |
Configure agent settings — log configuration entries or view recent ones |
benchmark |
Benchmark agent performance — log benchmark results or view history |
compare |
Compare agent outputs — log comparison data or view recent comparisons |
prompt |
Prompt management — log prompt variations or view recent prompts |
evaluate |
Evaluate agent outputs — log evaluation results or view history |
fine-tune |
Fine-tune parameters — log fine-tuning sessions or view recent ones |
analyze |
Analyze agent behavior — log analysis entries or view recent analyses |
cost |
Cost tracking — log cost data or view recent cost entries |
usage |
Usage monitoring — log usage metrics or view recent usage data |
optimize |
Optimize configurations — log optimization runs or view history |
test |
Test agent behavior — log test results or view recent tests |
report |
Report generation — log report entries or view recent reports |
stats |
Show summary statistics across all log categories (entry counts, data size, first entry date) |
export <fmt> |
Export all data in json, csv, or txt format to the data directory |
search <term> |
Full-text search across all log files (case-insensitive) |
recent |
Show the 20 most recent entries from the activity history log |
status |
Health check — show version, data directory, total entries, disk usage, and last activity |
help |
Show the full help message with all available commands |
version |
Print the current version string |
Each data command (configure, benchmark, compare, etc.) works in two modes:
- Without arguments: displays the 20 most recent entries from that category
- With arguments: saves the input as a new timestamped entry and reports the total count
Data Storage
All data is stored in plain text files under the data directory:
- Category logs:
$DATA_DIR/<command>.log — one file per command (e.g., configure.log, benchmark.log, prompt.log), each entry is timestamp|value
- History log:
$DATA_DIR/history.log — audit trail of every command executed with timestamps
- Export files:
$DATA_DIR/export.<fmt> — generated by the export command in json, csv, or txt format
Default data directory: ~/.local/share/agent-learner/
Requirements
- Bash (with
set -euo pipefail support)
- Standard Unix utilities:
grep, cat, date, echo, wc, du, head, tail, basename
- No external dependencies or API keys required
When to Use
- Benchmarking agent performance — When you need to track and compare benchmark results across different agent configurations, models, or prompt strategies
- Prompt engineering iteration — When you're testing multiple prompt variations and want to log each version with results for later comparison
- Cost and usage tracking — When you need to monitor API costs and usage metrics over time to optimize spending
- Fine-tuning experiments — When running fine-tuning sessions and you want to log parameters, results, and observations for reproducibility
- Cross-category analysis — When you need to search across all logged data (benchmarks, prompts, evaluations, costs) to find patterns or specific entries
Examples
# Initialize and check status
agent-learner status
# Log a benchmark result
agent-learner benchmark "GPT-4o on MMLU: 88.7% accuracy, 1.2s avg latency"
# Log a prompt variation
agent-learner prompt "System: You are a helpful coding assistant. Always explain your reasoning step by step."
# Compare two configurations
agent-learner compare "GPT-4o vs Claude-3.5: GPT-4o 12% faster, Claude 5% more accurate on code tasks"
# Track costs
agent-learner cost "March batch: 12,450 tokens input, 3,200 tokens output, $0.47 total"
# View all recent benchmarks
agent-learner benchmark
# Search across all logs for a specific term
agent-learner search "accuracy"
# Export all data as JSON
agent-learner export json
# View summary statistics
agent-learner stats
# Show recent activity
agent-learner recent
Output
All commands return output to stdout. Export files are written to the data directory:
agent-learner export json # → ~/.local/share/agent-learner/export.json
agent-learner export csv # → ~/.local/share/agent-learner/export.csv
agent-learner export txt # → ~/.local/share/agent-learner/export.txt
Every command execution is logged to $DATA_DIR/history.log for auditing purposes.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
1---
2version: "2.0.1"
3name: agent-learner
4description: "Benchmark and compare agent prompts and evaluation results. Use when tuning strategies, evaluating outputs, or comparing configurations."
5author: BytesAgain
6homepage: https://bytesagain.com
7source: https://github.com/bytesagain/ai-skills
8metadata:
9 source: https://skillmd.com/skills/bytesagain/agent-learner
10---
11
12# Agent Learner
13
14An AI toolkit for configuring, benchmarking, comparing, and optimizing agent prompts and evaluation results. Agent Learner provides persistent, file-based logging for each command category with timestamped entries, summary statistics, multi-format export, and full-text search across all records.
15
16## Commands
17
18| Command | Description |
19|---------|-------------|
20| `configure` | Configure agent settings — log configuration entries or view recent ones |
21| `benchmark` | Benchmark agent performance — log benchmark results or view history |
22| `compare` | Compare agent outputs — log comparison data or view recent comparisons |
23| `prompt` | Prompt management — log prompt variations or view recent prompts |
24| `evaluate` | Evaluate agent outputs — log evaluation results or view history |
25| `fine-tune` | Fine-tune parameters — log fine-tuning sessions or view recent ones |
26| `analyze` | Analyze agent behavior — log analysis entries or view recent analyses |
27| `cost` | Cost tracking — log cost data or view recent cost entries |
28| `usage` | Usage monitoring — log usage metrics or view recent usage data |
29| `optimize` | Optimize configurations — log optimization runs or view history |
30| `test` | Test agent behavior — log test results or view recent tests |
31| `report` | Report generation — log report entries or view recent reports |
32| `stats` | Show summary statistics across all log categories (entry counts, data size, first entry date) |
33| `export <fmt>` | Export all data in json, csv, or txt format to the data directory |
34| `search <term>` | Full-text search across all log files (case-insensitive) |
35| `recent` | Show the 20 most recent entries from the activity history log |
36| `status` | Health check — show version, data directory, total entries, disk usage, and last activity |
37| `help` | Show the full help message with all available commands |
38| `version` | Print the current version string |
39
40Each data command (configure, benchmark, compare, etc.) works in two modes:
41- **Without arguments**: displays the 20 most recent entries from that category
42- **With arguments**: saves the input as a new timestamped entry and reports the total count
43
44## Data Storage
45
46All data is stored in plain text files under the data directory:
47
48- **Category logs**: `$DATA_DIR/<command>.log` — one file per command (e.g., `configure.log`, `benchmark.log`, `prompt.log`), each entry is `timestamp|value`
49- **History log**: `$DATA_DIR/history.log` — audit trail of every command executed with timestamps
50- **Export files**: `$DATA_DIR/export.<fmt>` — generated by the `export` command in json, csv, or txt format
51
52Default data directory: `~/.local/share/agent-learner/`
53
54## Requirements
55
56- Bash (with `set -euo pipefail` support)
57- Standard Unix utilities: `grep`, `cat`, `date`, `echo`, `wc`, `du`, `head`, `tail`, `basename`
58- No external dependencies or API keys required
59
60## When to Use
61
621. **Benchmarking agent performance** — When you need to track and compare benchmark results across different agent configurations, models, or prompt strategies
632. **Prompt engineering iteration** — When you're testing multiple prompt variations and want to log each version with results for later comparison
643. **Cost and usage tracking** — When you need to monitor API costs and usage metrics over time to optimize spending
654. **Fine-tuning experiments** — When running fine-tuning sessions and you want to log parameters, results, and observations for reproducibility
665. **Cross-category analysis** — When you need to search across all logged data (benchmarks, prompts, evaluations, costs) to find patterns or specific entries
67
68## Examples
69
70```bash
71# Initialize and check status
72agent-learner status
73
74# Log a benchmark result
75agent-learner benchmark "GPT-4o on MMLU: 88.7% accuracy, 1.2s avg latency"
76
77# Log a prompt variation
78agent-learner prompt "System: You are a helpful coding assistant. Always explain your reasoning step by step."
79
80# Compare two configurations
81agent-learner compare "GPT-4o vs Claude-3.5: GPT-4o 12% faster, Claude 5% more accurate on code tasks"
82
83# Track costs
84agent-learner cost "March batch: 12,450 tokens input, 3,200 tokens output, $0.47 total"
85
86# View all recent benchmarks
87agent-learner benchmark
88
89# Search across all logs for a specific term
90agent-learner search "accuracy"
91
92# Export all data as JSON
93agent-learner export json
94
95# View summary statistics
96agent-learner stats
97
98# Show recent activity
99agent-learner recent
100```
101
102## Output
103
104All commands return output to stdout. Export files are written to the data directory:
105
106```bash
107agent-learner export json # → ~/.local/share/agent-learner/export.json
108agent-learner export csv # → ~/.local/share/agent-learner/export.csv
109agent-learner export txt # → ~/.local/share/agent-learner/export.txt
110```
111
112Every command execution is logged to `$DATA_DIR/history.log` for auditing purposes.
113
114---
115
116Powered by BytesAgain | bytesagain.com | hello@bytesagain.com