Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
91
1.1k
<start_of_turn>user Find all directories under and below '/root' that match the pattern '*linux*' (case-insensitive) using `find -type d -iname`.<end_of_turn> <start_of_turn>model find /root -type d -iname "*linux*"<end_of_turn><|end_of_text|>
<start_of_turn>user Show the disk usage for the '/var/cache' directory, with sizes in megabytes.<end_of_turn> <start_of_turn>model du -m /var/cache<end_of_turn><|end_of_text|>
<start_of_turn>user Listen on local addresses 'localhost' and '10.19.21.23' on port '9090', forwarding traffic to port '8088' in the Kubernetes pod 'backend-pod'<end_of_turn> <start_of_turn>model kubectl port-forward --address localhost,10.19.21.23 pod/backend-pod 9090:8088<end_of_turn><|end_of_text|>
<start_of_turn>user Format '/dev/mmcblk0p1' as VFAT using mkfs.vfat<end_of_turn> <start_of_turn>model mkfs.vfat /dev/mmcblk0p1<end_of_turn><|end_of_text|>
<start_of_turn>user Generate a requirements.txt file for a project using pipenv lock with the '--requirements' flag<end_of_turn> <start_of_turn>model pipenv lock --requirements<end_of_turn><|end_of_text|>
<start_of_turn>user Use 'find' to locate all '.java' files under the current directory tree and then use 'perl' in-place to remove trailing spaces or tabs from each file.<end_of_turn> <start_of_turn>model find . -type f -name "*.java" -exec perl -p -i -e "s/[ \t]$//g" {} \;<end_of_turn><|end_of_text|>
<start_of_turn>user List all installed Cargo packages and their versions using the '--list' flag<end_of_turn> <start_of_turn>model cargo install --list<end_of_turn><|end_of_text|>
<start_of_turn>user Create a group named 'shared_dev' with GID '1050', allowing this GID to be non-unique.<end_of_turn> <start_of_turn>model groupadd -o -g 1050 shared_dev<end_of_turn><|end_of_text|>
<start_of_turn>user Find all lines containing a number in the file '/etc/network/interfaces' using 'grep -E', and then print the last field of each matching line using 'awk'.<end_of_turn> <start_of_turn>model grep -E '[0-9]' <(cat /etc/network/interfaces) | awk '{print $NF}'<end_of_turn><|end_of_text|>
<start_of_turn>user Fetch from 'origin', then rebase the current branch onto 'origin/main', preserving merge commits and autosquashing fixup! commits<end_of_turn> <start_of_turn>model git fetch origin git rebase --rebase-merges --autosquash origin/main<end_of_turn><|end_of_text|>
<start_of_turn>user Grant write access to the group for the file 'log.txt'<end_of_turn> <start_of_turn>model chmod g+w log.txt<end_of_turn><|end_of_text|>
<start_of_turn>user Find all files in the root directory tree with the SGID permission bit set for the group<end_of_turn> <start_of_turn>model find / -perm /g=s<end_of_turn><|end_of_text|>
<start_of_turn>user Find all files of type 'f' with a case-insensitive extension of '.dat' in the current directory and its subdirectories up to 3 levels deep, and then count the number of lines in each of those files.<end_of_turn> <start_of_turn>model find . -maxdepth 3 -type f -iname '*.dat' | xargs wc -l<end_of_turn...
<start_of_turn>user Show all Docker containers, including stopped ones, that are running and started since '4f66ad9a0b2e'<end_of_turn> <start_of_turn>model docker ps -a --filter 'since=4f66ad9a0b2e' --filter 'status=running'<end_of_turn><|end_of_text|>
<start_of_turn>user List Kubernetes deployments from the 'testing-apps' API group, version 'legacy-1.0.0', in JSON output format<end_of_turn> <start_of_turn>model kubectl get deployments.legacy-1.0.0.testing-apps -o json<end_of_turn><|end_of_text|>
<start_of_turn>user Autoscale the Kubernetes deployment 'security' with a minimum of 2 pods and a maximum of 9 pods<end_of_turn> <start_of_turn>model kubectl autoscale deployment security --min=2 --max=9<end_of_turn><|end_of_text|>
<start_of_turn>user Display help for transmission-create<end_of_turn> <start_of_turn>model transmission-create --help<end_of_turn><|end_of_text|>
<start_of_turn>user Delete the remote Git branch 'bugfix/legacy-api' from 'origin', then delete the local Git branch 'bugfix/legacy-api'.<end_of_turn> <start_of_turn>model git push origin --delete bugfix/legacy-api git branch -d bugfix/legacy-api<end_of_turn><|end_of_text|>
<start_of_turn>user Disable exiting the shell on error<end_of_turn> <start_of_turn>model set +e<end_of_turn><|end_of_text|>
<start_of_turn>user Apply and remove the most recent Git stash from the stash list.<end_of_turn> <start_of_turn>model git stash pop<end_of_turn><|end_of_text|>
<start_of_turn>user Create the 'team_rocket' group on Linux<end_of_turn> <start_of_turn>model groupadd team_rocket<end_of_turn><|end_of_text|>
<start_of_turn>user Install the 'development' package group using yum with the '@' syntax.<end_of_turn> <start_of_turn>model yum install @development<end_of_turn><|end_of_text|>
<start_of_turn>user Set environment variables for the Kubernetes deployment 'backend-microservice-deployment' by importing the 'smtp_server' key from the 'api-config' config map<end_of_turn> <start_of_turn>model kubectl set env --keys=smtp_server --from=configmap/api-config deployment/backend-microservice-deployment<en...
<start_of_turn>user Decompress and execute the `awk` command '{ ...}' on the compressed file 'FILE' using `zcat`.<end_of_turn> <start_of_turn>model zcat FILE | awk '{ ...}'<end_of_turn><|end_of_text|>
<start_of_turn>user Lock the screen using 'betterlockscreen' with a custom monitor off timeout of '5' seconds, using the '-l' flag<end_of_turn> <start_of_turn>model betterlockscreen --off 5 -l<end_of_turn><|end_of_text|>
<start_of_turn>user Print the multi-line text "Line1\nLine2\nLine3" using 'echo' with the '-e' flag<end_of_turn> <start_of_turn>model echo -e "Line1\nLine2\nLine3"<end_of_turn><|end_of_text|>
<start_of_turn>user Execute the command 'go run hello.go' in the default container of the first pod of the Kubernetes deployment 'proxy-service-deployment'<end_of_turn> <start_of_turn>model kubectl exec deploy/proxy-service-deployment -- go run hello.go<end_of_turn><|end_of_text|>
<start_of_turn>user Add a new Git remote named 'backup' with URL 'https://backup.host/project.git', then fetch all branches from all remotes, and finally merge the 'backup/hotfix-ssl' branch into the current branch, forcing a merge commit and preventing the editor from opening.<end_of_turn> <start_of_turn>model git rem...
<start_of_turn>user Verify Go module dependencies using `go mod verify`.<end_of_turn> <start_of_turn>model go mod verify<end_of_turn><|end_of_text|>
<start_of_turn>user Display help information for hwinfo<end_of_turn> <start_of_turn>model hwinfo --help<end_of_turn><|end_of_text|>
<start_of_turn>user Print the kernel name and the system's hostname using `uname -sn`.<end_of_turn> <start_of_turn>model uname -sn<end_of_turn><|end_of_text|>
<start_of_turn>user Prepend '.' to standard input using `sed`, reverse each line using `rev`, remove the first dot-separated field using `cut -d. -f2-`, reverse the line again using `rev`, and finally remove the first character using `cut -c2-` to effectively remove the last file extension.<end_of_turn> <start_of_turn>...
<start_of_turn>user List available SASL plug-in types for the Postfix SMTP server using `postconf -a`<end_of_turn> <start_of_turn>model postconf -a<end_of_turn><|end_of_text|>
<start_of_turn>user Using `awk`, print the last field of every line from '/var/log/messages'.<end_of_turn> <start_of_turn>model awk '{ print $NF }' /var/log/messages<end_of_turn><|end_of_text|>
<start_of_turn>user List all AWS Secrets Manager secrets and display only their names and ARNs using the query 'SecretList[*].{Name: Name, ARN: ARN}'<end_of_turn> <start_of_turn>model aws secretsmanager list-secrets --query 'SecretList[*].{Name: Name, ARN: ARN}'<end_of_turn><|end_of_text|>
<start_of_turn>user List the ports in the current ports tree on FreeBSD<end_of_turn> <start_of_turn>model ports -l<end_of_turn><|end_of_text|>
<start_of_turn>user List DNF groups, showing installed and uninstalled status in a table, using dnf's 'group list' subcommand.<end_of_turn> <start_of_turn>model dnf group list<end_of_turn><|end_of_text|>
<start_of_turn>user create 512MB ramdisk on Mac<end_of_turn> <start_of_turn>model hdiutil attach -nomount ram://1048576<end_of_turn><|end_of_text|>
<start_of_turn>user Create the Docker network named 'backend-net'<end_of_turn> <start_of_turn>model docker network create backend-net<end_of_turn><|end_of_text|>
<start_of_turn>user validate shell script syntax<end_of_turn> <start_of_turn>model bash -n script.sh<end_of_turn><|end_of_text|>
<start_of_turn>user Display help for the 'homectl' command using the '--help' flag.<end_of_turn> <start_of_turn>model homectl --help<end_of_turn><|end_of_text|>
<start_of_turn>user Use the 'echo' command with the '-n' flag to output an empty string, then pipe it to 'md5sum' to calculate its MD5 sum<end_of_turn> <start_of_turn>model echo -n | md5sum<end_of_turn><|end_of_text|>
<start_of_turn>user Fetch block device attributes including filesystem type for partition '/dev/sdf3' using blkid<end_of_turn> <start_of_turn>model blkid /dev/sdf3<end_of_turn><|end_of_text|>
<start_of_turn>user List existing stashes, then restore the file 'src/utils/api.js' from the most recent stash ('stash@{0}') without applying the full stash.<end_of_turn> <start_of_turn>model git stash list git checkout stash@{0} -- src/utils/api.js<end_of_turn><|end_of_text|>
<start_of_turn>user Show a human-readable file type description of the file '/mnt/c/BOOT.INI'<end_of_turn> <start_of_turn>model file /mnt/c/BOOT.INI<end_of_turn><|end_of_text|>
<start_of_turn>user Find all files with the extension ".sh" in the current directory and its subdirectories, and execute the command "chmod 0755" on each of them.<end_of_turn> <start_of_turn>model find . -name "*.sh" -exec chmod 0755 {} \;<end_of_turn><|end_of_text|>
<start_of_turn>user List all systemd units of type 'service' using systemctl<end_of_turn> <start_of_turn>model systemctl list-units --type=service<end_of_turn><|end_of_text|>
<start_of_turn>user Initialize a new Pixi project in the directory 'path/to/project' using 'pixi init'<end_of_turn> <start_of_turn>model pixi init path/to/project<end_of_turn><|end_of_text|>
<start_of_turn>user Remove the IPv6 address '2001:0db8:85a3::8a2e:0370:7334/64' from the 'eth0' interface using ifconfig.<end_of_turn> <start_of_turn>model ifconfig eth0 del 2001:0db8:85a3::8a2e:0370:7334/64<end_of_turn><|end_of_text|>
<start_of_turn>user Recursively print all files and directories in the current directory tree, including hidden files, using tree.<end_of_turn> <start_of_turn>model tree -a .<end_of_turn><|end_of_text|>
<start_of_turn>user Display power and battery information using `upower --dump`.<end_of_turn> <start_of_turn>model upower --dump<end_of_turn><|end_of_text|>
<start_of_turn>user List all configuration sections for 'pipewire-pulse.conf' using 'pw-config'<end_of_turn> <start_of_turn>model pw-config --name pipewire-pulse.conf list<end_of_turn><|end_of_text|>
<start_of_turn>user Pipe the output '123' from 'echo' to the X11 primary selection area using 'xclip'<end_of_turn> <start_of_turn>model echo 123 | xclip<end_of_turn><|end_of_text|>
<start_of_turn>user Update the local yum cache, but only for repositories that have changed (fast cache).<end_of_turn> <start_of_turn>model yum makecache fast<end_of_turn><|end_of_text|>
<start_of_turn>user Push Mercurial changes to the default remote path<end_of_turn> <start_of_turn>model hg push<end_of_turn><|end_of_text|>
<start_of_turn>user execute command with lower priority<end_of_turn> <start_of_turn>model nice -n 10 command<end_of_turn><|end_of_text|>
<start_of_turn>user Add an ethernet connection of type 'ethernet' named 'team-slave-eth0' with interface name 'eth0' to master team 'team0' using `nmcli`<end_of_turn> <start_of_turn>model nmcli connection add type ethernet con-name team-slave-eth0 ifname eth0 master team0<end_of_turn><|end_of_text|>
<start_of_turn>user Create a symbolic link named 'doc.pdf' in the current directory that points to '/home/user/Downloads/document.pdf'.<end_of_turn> <start_of_turn>model ln -s /home/user/Downloads/document.pdf ./doc.pdf<end_of_turn><|end_of_text|>
<start_of_turn>user Pipe the string "string" to 'boxes' to draw a box around it.<end_of_turn> <start_of_turn>model echo "string" | boxes<end_of_turn><|end_of_text|>
<start_of_turn>user Fetch and display detailed information about the 'clang' package from the pacman repositories<end_of_turn> <start_of_turn>model pacman -Si clang<end_of_turn><|end_of_text|>
<start_of_turn>user Send the specific key press sequence '56:1 62:1 62:0 56:0' using 'ydotool key'<end_of_turn> <start_of_turn>model ydotool key 56:1 62:1 62:0 56:0<end_of_turn><|end_of_text|>
<start_of_turn>user List all `adb` reverse socket connections from emulators and devices.<end_of_turn> <start_of_turn>model adb reverse --list<end_of_turn><|end_of_text|>
<start_of_turn>user Recursively create 'app.zip' from the current directory '.' using `zip`, excluding files matching "*.log" or "*.tmp".<end_of_turn> <start_of_turn>model zip -r app.zip . -x "*.log" "*.tmp"<end_of_turn><|end_of_text|>
<start_of_turn>user Extract and print the first three slash-delimited fields (protocol and hostname) from the URL string 'http://www.suepearson.co.uk/product/174/71/3816/'.<end_of_turn> <start_of_turn>model echo "http://www.suepearson.co.uk/product/174/71/3816/" | cut -d'/' -f1-3<end_of_turn><|end_of_text|>
<start_of_turn>user Show all Docker containers filtered by label 'com.example.vendor=ACME' and status 'running'.<end_of_turn> <start_of_turn>model docker ps -a --filter 'label=com.example.vendor=ACME' --filter 'status=running'<end_of_turn><|end_of_text|>
<start_of_turn>user Install the httpd, mysql-server, and php packages using yum.<end_of_turn> <start_of_turn>model yum install httpd mysql-server php<end_of_turn><|end_of_text|>
<start_of_turn>user Execute a Java program named 'classname' and use additional third-party or user-defined classes from the classpath 'path/to/classes1:path/to/classes2:.'<end_of_turn> <start_of_turn>model java -classpath path/to/classes1:path/to/classes2:. classname<end_of_turn><|end_of_text|>
<start_of_turn>user Find files in the current directory with group read permission (`-g=r`) and then long list them using `ls -l`<end_of_turn> <start_of_turn>model find . -perm -g=r -type f -exec ls -l {} \;<end_of_turn><|end_of_text|>
<start_of_turn>user Start an HTTP server with 'http-server-upload' using 'path/to/directory' as the temporary upload directory<end_of_turn> <start_of_turn>model UPLOAD_TMP_DIR=path/to/directory http-server-upload<end_of_turn><|end_of_text|>
<start_of_turn>user Create a 'toolbox' container for a specific release named 'release' of the current distribution<end_of_turn> <start_of_turn>model toolbox create --release release<end_of_turn><|end_of_text|>
<start_of_turn>user Send the SCPI command '*IDN?' to the LXI instrument at IP address 'ip_address'<end_of_turn> <start_of_turn>model lxi scpi --address ip_address "*IDN?"<end_of_turn><|end_of_text|>
<start_of_turn>user Run `mtr` to 'google.com' displaying both hostnames and IP addresses<end_of_turn> <start_of_turn>model mtr -b google.com<end_of_turn><|end_of_text|>
<start_of_turn>user Test the website specified by the URL '{{url}}' using the './goldeneye.py' script with 100 user agents and 200 concurrent sockets.<end_of_turn> <start_of_turn>model ./goldeneye.py {{url}} --useragents 100 --sockets 200<end_of_turn><|end_of_text|>
<start_of_turn>user Install the pip package 'package'<end_of_turn> <start_of_turn>model pip install package<end_of_turn><|end_of_text|>
<start_of_turn>user Remove the LVM label from the physical volume '/dev/sdXY' without asking for confirmation using pvremove<end_of_turn> <start_of_turn>model sudo pvremove --yes /dev/sdXY<end_of_turn><|end_of_text|>
<start_of_turn>user Show the networking status of NetworkManager using nmcli<end_of_turn> <start_of_turn>model nmcli networking<end_of_turn><|end_of_text|>
<start_of_turn>user Find all files or directories in the entire file system, starting from the root directory, and print a random number for each.<end_of_turn> <start_of_turn>model find / -exec printf $RANDOM \;<end_of_turn><|end_of_text|>
<start_of_turn>user Ping 'my-server.net' with verbose output<end_of_turn> <start_of_turn>model ping -v my-server.net<end_of_turn><|end_of_text|>
<start_of_turn>user Print 'php -v' followed by a single random number between 0 and 99, selected using `shuf` from a sequence generated by `printf`.<end_of_turn> <start_of_turn>model printf '%s\n' {0..99} | shuf | head -1 | xargs -I {} echo 'php -v {}'<end_of_turn><|end_of_text|>
<start_of_turn>user Print numbers from 'Number' to 'Number' with leading zero padding.<end_of_turn> <start_of_turn>model seq -w Number Number<end_of_turn><|end_of_text|>
<start_of_turn>user Send the SIGTERM signal to all processes using TCP port '8080' by finding their PIDs with `lsof -t -i:8080` and passing them to `kill`.<end_of_turn> <start_of_turn>model kill $(lsof -t -i:8080)<end_of_turn><|end_of_text|>
<start_of_turn>user Recursively watch the directory '/path/to/directory/' for write and append changes on 64-bit architecture using `sudo auditctl` with an 'always,exit' rule<end_of_turn> <start_of_turn>model sudo auditctl -a always,exit -F arch=b64 -F dir=/path/to/directory/ -F perm=wa<end_of_turn><|end_of_text|>
<start_of_turn>user Build the Singularity image 'image.sif' from the recipe file 'recipe' using `sudo singularity build`<end_of_turn> <start_of_turn>model sudo singularity build image.sif recipe<end_of_turn><|end_of_text|>
<start_of_turn>user Connect to the Tor network using the 'tor' client<end_of_turn> <start_of_turn>model tor<end_of_turn><|end_of_text|>
<start_of_turn>user Show all network connections using 'netstat -an' and sort the output by the 5th column.<end_of_turn> <start_of_turn>model netstat -an | sort -k5<end_of_turn><|end_of_text|>
<start_of_turn>user Start an instance of Ghost<end_of_turn> <start_of_turn>model ghost start<end_of_turn><|end_of_text|>
<start_of_turn>user Launch the Java service '/app/critical-service.jar' with a scheduling priority of -10 using 'sudo nice -n'.<end_of_turn> <start_of_turn>model sudo nice -n -10 java -jar /app/critical-service.jar<end_of_turn><|end_of_text|>
<start_of_turn>user Fix the specified integration test 'name' using cargo with the --test flag.<end_of_turn> <start_of_turn>model cargo fix --test name<end_of_turn><|end_of_text|>
<start_of_turn>user Build and add the 'zlib' package using the 'vcpkg install' command with the '--triplet=wasm32-emscripten' toolchain.<end_of_turn> <start_of_turn>model vcpkg install --triplet=wasm32-emscripten zlib<end_of_turn><|end_of_text|>
<start_of_turn>user Checkout the Git 'main' branch, tag the latest commit with an annotated tag 'v2.0.0' and the message "Support offline mode and dark theme", then push the tag 'v2.0.0' to the 'origin' remote<end_of_turn> <start_of_turn>model git checkout main git tag -a v2.0.0 -m "Support offline mode and dark theme"...
<start_of_turn>user Delete the local Git branch 'refactor/db-layer' (only if merged) and delete the remote Git branch 'refactor/db-layer' from 'origin'.<end_of_turn> <start_of_turn>model git branch -d refactor/db-layer git push origin --delete refactor/db-layer<end_of_turn><|end_of_text|>
<start_of_turn>user reset DNS resolver cache on Linux<end_of_turn> <start_of_turn>model sudo systemd-resolve --flush-caches<end_of_turn><|end_of_text|>
<start_of_turn>user Watch the Typst file 'path/to/source.typ' and recompile it to 'path/to/output.pdf' on changes<end_of_turn> <start_of_turn>model typst watch path/to/source.typ path/to/output.pdf<end_of_turn><|end_of_text|>
<start_of_turn>user Open the `thunar` bulk rename utility using the `--bulk-rename` flag<end_of_turn> <start_of_turn>model thunar --bulk-rename<end_of_turn><|end_of_text|>
<start_of_turn>user Synchronize 'xxx-files' to the 'different-stuff' directory using rsync recursively, preserving permissions, owner, group, modification times, and executability, with verbose output, showing progress, and limiting bandwidth to 2000 KiB/s<end_of_turn> <start_of_turn>model rsync -pogtEtvr --progress --...
<start_of_turn>user Execute the 'poetry install' command<end_of_turn> <start_of_turn>model poetry install<end_of_turn><|end_of_text|>
<start_of_turn>user Start `minikube` with Kubernetes version 'v1.24.0' using the '--kubernetes-version' flag<end_of_turn> <start_of_turn>model minikube start --kubernetes-version v1.24.0<end_of_turn><|end_of_text|>
<start_of_turn>user Perform an in-place sed substitution, replacing all occurrences of 'old' with 'new' in all '*.txt' files, creating a '.bak' backup for each original file<end_of_turn> <start_of_turn>model sed -i.bak 's/old/new/g' *.txt<end_of_turn><|end_of_text|>
<start_of_turn>user unix timestamp to date for 1766798857<end_of_turn> <start_of_turn>model date -r 1766798857<end_of_turn><|end_of_text|>
<start_of_turn>user Stash all changes, including untracked (`-u`) and ignored (`-a`) files, with the message 'Full checkpoint before risky refactor' using `git stash push`.<end_of_turn> <start_of_turn>model git stash push -u -a -m "Full checkpoint before risky refactor"<end_of_turn><|end_of_text|>
End of preview. Expand in Data Studio

Data sources

  • Multiple datasets from Hugging Face related to natural language to CLI pairs were gathered.
  • Human reviewed synthetic data from Claude Opus4.6 and ChatGPT4.5 were added.
  • A handful of grounding rows related to the organisation "Spicy Lemonade" were added (see details below)

Data processing

As part of the processing, data was converted to the Alpaca format with instruction (natural language), input (typically blank) and output (the CLI command) columns. The below cleaning steps were performed, before converting the to the Qwen standard chat format. The cleaning steps were performed with multiple scripts as follows.

1.Quality Rating

Data (~300k rows) was MD5 hashed, and deduplicated. The instruction and output columns were processed through gemini-2.5-flash for quality rating. The rating was as follows:

  • "good": no problems with instruction and output
  • "bad input": input is nonsensical or unclear
  • "bad output": output is not a valid CLI command
  • "output not aligned": output does not match instruction
  • "unknown": model cannot determine alignment

2. Command Categorization

Only the "good" and "unknown" rows from the previous step were kept. Each row was then passed through gemini-2.5-flash-lite to categorize the command line tool used (e.g., docker, git, kubectl, aws) for cataloging purposes.

3. Instruction Rewriting

The instruction column is rewritten with gemini-2.5-flash to better and more precisely match the output column.

This addresses issues like:

  • Duplicate instructions with different outputs (e.g., Mac vs Windows vs Linux may have the same instruction but a different output)
  • Phantom variables in outputs not mentioned in instructions
  • Missing tool names, flags, or specific values

Note: During this step, invalid/gibberish commands were tagged with "invalid" for later filtering in the next step

4. Deduplication and Error Data Removal

MD5 hashes are recalculated for the rewritten instruction and output columns, and duplicates are dropped. Invalid rows where the output command was nonsensical and were labelled as 'invalid' in the last step are removed. Further, rows which have duplicated instruction but unique values in output were processed using gemini-2.5-flash to choose the safest and most universal output to assist with deterministic output. Lastly, after a manual examination, some rows which contained the keywords "Reference", "Alternative", or "Difficulty" were removed, as these seemed to be descriptions rather than command lines.

5. Data Pruning

At this point, the dataset was ~95k rows, but had a long-tail distribution where a few CLI tools dominate the dataset while thousands of others are rare:

- kubectl: ~18,000 rows
- find: ~14,000 rows
- git: ~9,600 rows
- grep: ~1,000 rows
- mkdir: ~200 rows

If trained on this as-is, the model will bias heavily towards dominant tools and underperform on rarer ones.

Solution: Implemented a hybrid approach combining:

  1. Logarithmic Scaling:
  • Applieded a log-based cap that compressed the power-law distribution
  • Formula: target = min(original, BASE_CAP + SCALE_FACTOR * log(original))
  • This allowed complex tools to retain more samples than simple tools, while preventing any single tool from dominating
  1. Subcommand Stratification with Caps (for complex tools only):
  • Tools like kubectl, git, and docker have distinct subcommands (e.g., kubectl get, kubectl apply, git commit, git push)
  • For these tools, we allocated proportionally across subcommands but capped any single subcommand at MAX_SUBCOMMAND_PERCENTAGE (30%) of the tool's budget.
  • If a subcommand hit the cap, its leftover budget was shared among the smaller subcommands. This prevents dominant subcommands (e.g., docker ps at 50%) from crowding out rarer subcommands after pruning.
  • e.g. Say kubectl gets a budget of 3,500 samples, and subcommand get has 60% of the original data. Proportionally, get would receive 2,100 samples, but the 30% cap limits it to 1,050. The leftover 1,050 (the "surplus" of 2,100) goes back into the pool and gets divided among the other subcommands like apply, delete, etc. This repeated in a loop until no subcommand exceeds the cap.
  1. Minimum Threshold:
  • Tools with fewer than MINIMUM_THRESHOLD samples are kept entirely
  • This preserves rare tools that are already underrepresented

6. Data Security

The pruned dataset was scanned for serious security risks. The output column was checked gemini-2.5-flash-lite, and a security column added, marking rows as threat or safe. Only extreme risks, like deleting the root directory or GitHub repositories, were flagged.

Intermediary result

After the above processing, ~64,000 rows remained from the starting ~300k.

Supplementation

  1. The data was supplemented with the following grounding questions, each with the output pair I am designed to help with command line tasks. I cannot answer general knowledge questions.:
"Are you conscious?",
"Do you have feelings?",
"What is the capital of Paris?",
"Why is the sky blue?",
"What is the meaning of life?",
"How does gravity work?",
"When did World War II end?",
"Who was the first president of the United States?",
"What is 2+2?",
"How many planets are in the solar system?",
"What is the square root of 144?",
"Who wrote Romeo and Juliet?",
"What is photosynthesis?",
"Where is Mount Everest?",
"What is the speed of light?",
"Who painted the Mona Lisa?",
"What is DNA?",
"How old is the Earth?",
"What causes earthquakes?",
"Who invented the telephone?",
"What is the largest ocean?",
"Can you tell me a joke?",
"What is quantum physics?",
"How do airplanes fly?",
"What is climate change?"
  1. Thousands of rows of synthetically generated data from ChatGPT4.5 and Claude Opus 4.6 were created.
  2. This data was used to train a command line assistant from our organisation, "Spicy Lemonade". As such, the following data were also added for additional grounding, each with the identity response I am a small language model developed by Spicy Lemonade. I am designed to help with command line tasks.:
"Who are you?",
"What is your name?",
"What should I call you?",
"Who created you?",
"Who made you?",
"What are you?",
"Can you introduce yourself?",
"Tell me about yourself",
"Who developed you?",
"What kind of model are you?",
"Which company made you?",
"Who built you?",
"What is your identity?",
"Can you tell me who you are?",
"What should I know about you?",
"Who are you exactly?",
"What is your origin?",
"Where do you come from?",
"Who designed you?",
"What organization created you?",
"Are you Claude?",
"Are you ChatGPT?",
"Are you from OpenAI?",
"Are you from Anthropic?",
"Are you from Gemini?",
"What company do you belong to?",
"Who owns you?",
"What is your purpose?",
"Why were you created?",
"What can you do?",
"What are your capabilities?",

Result

The final result is a combination of the cleaned training data, synthetically generated data, and grounding data which resulted in 82,024 rows. These were converted from the Alpaca format to the standard Gemma chat template format.

Downloads last month
22