ai-and/termgrade-environments
TermGrade Environments: 1,004 executable Linux tasks: Harbor dataset on Hugging Face with 1,004 tasks. Part of TermGrade: graded environments and trajectories for terminal agents. Read the blog post. 1,004 executable environments · graded by 6 models · measured pass rates Each task is a container…
Tasks
- Create a command-line tool /analyze logs.py that processes a directory of system-log files and produces a strict JSON report to stdout.
- Implement a command-line tool /app/querylog that parses a custom log file and prints matching records according to a time-range filter.
- Write a single Python script /app/decode tlv.py that reads a binary file and decodes a stream of Type-Length-Value (TLV) records into a…
- Custom Log-Format Query Tool
- You are given a script /app/merge logs.py that merges multiple timestamped log files into a single unified log sorted by timestamp. The…
- Create a command-line tool /app/normalize.py that reads a messy NDJSON file (one JSON object per line) and produces a clean CSV file. The…
- Design a command-line tool /app/querylog that reads a log file in a custom format and outputs filtered, aggregated results.
- Create a command-line tool /app/fixed ops that performs arithmetic operations on fixed-point decimal numbers with configurable precision…
- Write a Python script that reads a directed graph from a file and performs a topological sort. The script must also detect cycles and…
- You are given a Python script /app/merger.py that is supposed to read multiple CSV files from a directory, merge their rows, and produce a…
- Implement a write-ahead log (WAL) key-value store that persists data to disk and recovers from crashes. The store must support put , get …
- Create a command-line tool /app/decode that reads a binary file of concatenated TLV (Type-Length-Value) records and outputs a single JSON…
- Implement a command-line tool /app/topk that reads a file of records, computes a streaming top-k percentile aggregation, and writes the…
- Build a command-line tool /app/backup.py that performs checksum-verified backup and restore of files.
- Goal
- Implement a command-line tool at /app/resolve.py that reads a version range expression from stdin (one line), resolves it against a sorted…
- Implement a command-line tool /app/intervaldb that stores intervals and answers range queries. The tool must support two commands: ADD and…
- Goal
- Fix the broken Python script /app/sort trades.py so it correctly processes a CSV trade log and outputs the required summary.
- Create a backup tool /app/backup that generates a verified, timestamped backup of a directory and a restore tool /app/restore that…
- Write a command-line tool render-template that reads a JSON data file and a template file, then outputs the rendered template to stdout.
- Implement a command-line tool /app/querylog that filters and formats log entries from a given directory of log files.
- Goal: Create a fixed-point decimal arithmetic calculator
- Implement a command-line tool at /app/topk that reads a large text file from standard input and outputs the k most frequent tokens…
- Create a command-line tool semver-range that takes a path to a semver range specification file and a path to a versions file, and outputs…
- Implement a command-line tool at /app/irange that stores integer intervals and answers queries from stdin. The tool reads commands from…
- Implement a command-line tool at /app/range set that manages a collection of integer intervals and answers queries. The tool is a single…
- Create a CLI tool /app/archiver that supports two commands: backup and restore .
- Implement a rate limiter that uses a hybrid token-bucket/sliding-window algorithm to enforce per-client request limits.
- Write a Python script /app/analyze.py that reads one or more system log files and produces a single JSON report to stdout. The script…
- Create a command-line tool fpcalc that reads a CSV file of decimal arithmetic operations and outputs results in a fixed-point format.
- Implement a CLI tool semver-resolve that, given a semver range expression and a newline-separated list of version strings on stdin…
- Implement a unified-diff patch applier that applies a diff file to a target file, producing a patched result. The tool must accept three…
- The script /app/process logs.py is supposed to read a server log file and output a summary of requests per second, with each second's…
- Build a deterministic data pipeline that processes a CSV-style log file of sensor readings, filters, transforms, and aggregates them into…
- Token-Bucket Rate Limiter with Sliding-Window Expiry
- Create a command-line tool /app/fixcalc that reads a CSV file of decimal arithmetic expressions and computes their results using…
- Write a command-line tool /app/stream agg.py that reads a binary file of 64-bit little-endian unsigned integers and computes a streaming…
- Implement a Write-Ahead Log (WAL) based key-value store with crash recovery. The store must persist data to disk and recover correctly…
- Create a token-bucket rate limiter with sliding-window cleanup that processes a CSV log of timestamped requests and outputs a CSV report…
- Build a command-line tool normalize that reads one or more input files (CSV or NDJSON), normalizes the records according to the rules…
- Implement a command-line tool /app/topk that reads a UTF‑8 encoded input file where each line contains a single JSON object with exactly…
- Create a command-line tool /app/irange that builds an interval tree from a sorted CSV of integer intervals and answers point queries with…
- Goal
- Write a command-line tool safe-extract that extracts an archive (tar or zip) into a given directory while enforcing security and…
- Implement a production-grade rate limiter as a CLI tool at /usr/local/bin/ratelimit . The tool reads a JSON events log from stdin (one…
- Implement a CLI tool at /render that reads a JSON config file and a template file, then outputs the rendered result to stdout.
- Create a command-line tool /root/pathfinder.py that finds the shortest path through a weighted grid from a start cell to a goal cell using…
- Goal: Write a Python script topk quantile.py that reads a potentially large file of numeric records and computes both top‑k values and an…
- Create a template renderer CLI that substitutes variables from a JSON file into a template file, with HTML/XML escaping rules. The tool…
- Create a command-line tool /app/fxcalc that reads a ledger file and outputs a formatted balance report.
- Write a command-line tool at /app/toposort that reads a dependency specification from stdin and outputs either a valid topological…
- Dependency Graph Topological Sorter with Cycle Detection
- You must implement a command-line tool that finds the shortest path through a grid with weighted cells. The tool reads a grid from a text…
- Build a write-ahead log (WAL) key-value store in a single Python script /app/wal kv.py . The store must persist data to disk and recover…
- Create a command-line tool that reads a JSON file containing timestamp records, reconciles ambiguous timestamps by applying timezone…
- Create a command-line tool /app/summarize that reads a UTF-8 encoded CSV file containing sales records and outputs a summary report to…
- You are given a broken Python script /opt/fixer/repair.py that is supposed to read a binary file of 8-byte records, validate each record…
- Implement a command-line tool at /usr/local/bin/rangestat that reads a CSV file of interval records and answers queries. The CSV file path…
- Write a CLI tool logquery that reads a custom log format from stdin and answers queries about it. The tool supports two commands: stats…
- Write a command-line tool that reads a binary file containing records and prints a JSON array of decoded record objects to stdout.
- Write a Python script /app/quantile agg.py that reads a file from disk, computes approximate quantiles using a streaming Greenwald-Khanna…
- Implement a command-line tool at /app/rangeq that processes a single command and prints the result to stdout.
- Implement a write-ahead log (WAL) key-value store that persists data to disk and supports crash recovery. The store must be a command-line…
- Create a command-line tool /app/rangeq that processes interval queries over a dataset. The tool must be a single executable Python script.
- Create a command-line tool /app/calc that performs arithmetic operations on decimal numbers with fixed precision. The tool reads a single…
- Write a command-line tool /tools/confmerge that reads a TOML-subset configuration file and resolves all include directives, producing the…
- Implement a minimal-pathfinding program that reads a grid from stdin and writes the shortest path length to stdout.
- Write a command-line tool aggregate logs that reads a UTF-8 encoded log file and produces a summary of event durations grouped by user and…
- Implement a command-line tool /app/query intervals that reads a file of integer intervals and supports range queries.
- Create a backup and restore tool called vault that creates compressed archives with cryptographic integrity verification.
- Task: Custom Log-Format Query Tool
- Implement a command-line tool /app/rangequery that maintains an in-memory collection of integer intervals and answers queries about them…
- Create a backup and restore tool that computes checksums for file integrity verification. The tool must support two operations:
- Implement a CLI tool /app/sched that maintains a sorted, non-overlapping interval set and answers "is this interval free?" queries.
- Write a command-line tool /app/decode (Python script) that reads a binary file and outputs a JSON array of objects to stdout.
- Implement a command-line tool /app/pathfinder that reads a grid from stdin (text format described below), computes the shortest path from…
- Implement a command-line tool at /app/topk that reads a large, possibly malformed, UTF-8 encoded log file and outputs an aggregated top-k…
- A broken Python script /app/process logs.py is provided. The script processes a server log file and outputs a summary report to…
- Write a Python CLI tool at /app/render that reads a template from a file and a data dictionary from another file, then writes the rendered…
- Write a Python script /app/process logs.py that reads a server log file from /app/logs/input.log and produces an aggregated summary at…
- A broken Python script /app/transform.py is supposed to read a TSV file from /data/input.tsv and produce a JSON file at /data/output.json…
- Write a CLI tool loganalyzer that reads a system log file and produces a strict JSON report to stdout.
- Create a command-line tool /usr/local/bin/fixcalc that performs arithmetic on fixed-point decimal numbers with strict precision and…
- Write a Python script /app/reconciler.py that reads two CSV files and produces a timezone-aware reconciliation report.
- Implement a command-line tool /app/toposort that reads a dependency specification from stdin, performs a topological sort, and writes the…
- Create a command-line tool safe-extract that extracts a given archive file into a target directory while enforcing strict safety…
- Build a command-line tool /app/normalize that reads one or more input files (CSV or NDJSON) and writes a single, clean UTF-8 JSON file to…
- Create a command-line tool confmerge that merges one or more configuration files into a single output. The tool reads a TOML-like subset…
- Create a WAL-based key-value store that persists data to disk and recovers from crashes. The store must support put , get , delete , and…
- Write a Python 3 script that reads a directed graph from a JSON file and outputs a valid topological ordering if the graph is acyclic, or…
- Fix the broken script /opt/timestamp parser.py so it correctly parses a log file and outputs a CSV summary.
- Build a command-line tool /app/logq that parses a custom log format and answers structured queries.
- Write a command-line tool tz bucket that reads a log file where each line is a JSON object with keys: id (string), ts (string, an ISO‑8601…
- Write a CLI tool log analyzer that reads an Apache-style combined log file (UTF-8, may contain non-ASCII in request paths or user agents)…
- A script at /app/log merger.py is supposed to merge two log files from different servers into a single unified log, sorted by timestamp…
- Create a command-line tool confmerge that merges a set of INI-like configuration files with an !include directive.
- Implement a binary record decoder that reads a custom binary format and outputs valid JSON to stdout.
- You must implement a command-line tool topk that reads a large text file line by line and computes the top-k most frequent values, with…
- Implement a command-line tool render template that reads a template file and a JSON data file, then writes the rendered output to a file…
- Implement a command-line template renderer in /app/render.py that processes a JSON data file through a template with variable substitution…
- Create a command-line tool /app/logq that parses a custom log file and answers structured queries.
- Goal: Create a command-line tool /root/merge config (Python script) that merges one or more configuration files into a single output. The…
- Implement a binary record decoder that parses a custom Tag-Length-Value format with variable-length integer encoding and outputs JSON. The…
- Write a Python command-line tool at /app/reconcile.py that reads two CSV files, reconciles their timestamped records into time-bucketed…
- Write a command-line tool that reads a dependency graph from stdin and outputs either a valid topological ordering or an error identifying…
- You are given a broken Python script at /app/merge logs.py that merges multiple server log files into a single chronological output.
- Create a command-line tool /app/logq that parses a custom log format and answers time-range queries with aggregation.
- Write a Python script /app/reconcile.py that reads a CSV file of event records and a JSON config file, reconciles timestamps across…
- Create a command-line tool /app/normalize that normalizes nested JSON records from NDJSON (newline-delimited JSON) into a flattened CSV…
- Implement a CLI tool at /app/topk that reads a UTF-8 encoded CSV file and outputs the top K rows sorted by a specified numeric column…
- Write a command-line tool /app/semver-range that takes exactly two arguments: a range expression and a list of versions (one per line on…
- Create a template renderer that processes a custom template syntax with variables, conditionals, and loops while applying HTML escaping…
- Write a CLI tool /app/decoder.py that reads a binary file from --input and writes JSON to --output . The binary format is a sequence of…
- Write a command-line tool that reads a grid from stdin or a file and computes the shortest path from a start cell to a goal cell using…
- Write a Python script topk quantile.py that reads a large text file where each line contains a timestamp (ISO 8601 with possible timezone…
- Implement a write-ahead log (WAL) key-value store with crash recovery. The store must support put , get , delete , and merge operations…
- Implement a command-line template renderer that processes template files with variable substitution and context-aware escaping.
- Write a command-line tool /app/logq that parses a custom log file and answers time-window queries.
- Goal: Create a command-line tool at /app/logcrunch that processes a UTF-8 log file and outputs a fixed-width summary report.
- Implement a command-line tool normalize that reads a mixed-format input file and writes a clean NDJSON file to stdout. The input file may…
- Create a CLI tool at /app/pipeline (Python script, no extension) that processes a CSV log file of sensor readings and outputs a summary…
- The file /opt/tool/bin/event merger.py is a Python 3 script that reads two TSV event log files, merges them into a single chronological…
- Create a command-line tool /app/backup that performs checksum-verified backup and restore operations on directories.
- Goal: Create a command-line tool logquery that reads a log file in a custom format and outputs matching entries based on a query expression.
- Create a command-line tool /opt/logq/logq that executes structured queries against a custom log format. The tool reads a log file and a…
- Create a CLI tool /app/merge conf that merges multiple configuration files and resolves !include directives.
- Goal: Write a Python script decode.py that reads a binary file from stdin and outputs a valid JSON array of objects to stdout.
- Write a command-line tool /root/pipeline (Python script) that reads a UTF-8 encoded CSV file and produces a summary report to stdout.
- Create a CLI tool /app/render that reads a template file and a JSON data file, then writes the rendered output.
- Build a command-line tool at /app/logq that filters a custom log file and prints matching entries to stdout. The log file is specified as…
- Build a command-line tool at /app/bin/topsort that reads a directed dependency graph from a file and prints a topological ordering. If the…
- Write a CLI tool csv pipeline (bash script) that processes a CSV file of transaction records and outputs a JSON summary. The input CSV has…
- Write a Python CLI tool /app/log analyzer.py that reads a system log file and produces a strict JSON report to stdout.
- Implement a write-ahead log (WAL) key-value store with crash recovery. The store must persist data to disk and recover correctly after…
- A Python script dedup merge.py is provided. The script reads two CSV files ( base.csv and updates.csv ), merges them, and writes the…
- Write a command-line tool config merger that reads a configuration file in a subset of TOML, resolves include directives, and outputs a…
- Implement a pathfinding program that reads a grid with obstacles, start, and goal positions from a file and outputs the shortest path…
- Create a command-line tool /app/rq that processes interval queries over integer ranges.
- Goal: Create a command-line tool that processes interval queries over a set of named ranges. The tool reads a state file of named…
- You are given a directory /data/events containing many JSON log files (UTF-8, .json extension). Each file contains one JSON object per…
- Fix the /app/process logs script so it correctly processes log files according to the exact I/O contract below. The script currently…
- Create a command-line tool /app/logq that processes query expressions against a custom log file format. The tool must support filtering…
- Write a command-line tool /app/decimal calc that reads a sequence of operations from stdin (one per line) and writes results to stdout.
- Write a command-line tool that reads a dependency graph from a file and outputs a topological ordering. If the graph contains a cycle…
- Write a command-line tool render tpl that reads three inputs and writes one HTML output file.
- Create a command-line tool /app/fixcalc that reads a CSV-like input from stdin and writes transformed output to stdout.
- Goal
- Implement a command-line tool semver-range that takes a semver range expression and a list of version strings, then outputs the subset of…
- Pathfinder Challenge: Shortest Path in a Grid with Complex Weight Rules
854 more tasks.