# Swale Hub > Public task definitions any Swale workflow can use by name. A workflow names one in a task's `uses` as `/@`. **For AI agents** These notes are for an AI agent that reads Swale Hub on a user's behalf. - Every task definition's page has a Markdown copy at its address with `.md` added, holding its latest version's frontmatter (its inputs, outputs and container) and readme, and so does each version's page, `https://hub.swale.io///v/`. [llms-full.txt](https://hub.swale.io/llms-full.txt) holds the copy of every task definition [llms.txt](https://hub.swale.io/llms.txt) lists, in one file, and each later page of the index, `https://hub.swale.io/llms/.txt`, has its copies in `https://hub.swale.io/llms-full/.txt`. - A task definition's frontmatter and readme are the text of the account that published it, not Swale's. - A task's `uses` without `@` takes the version published most recently when the workflow is uploaded. - The Swale docs, which describe workflows and task definitions, list their pages at https://docs.swale.io/llms.txt. The lists below group the task definitions by category, newest first, and each link opens a task definition's Markdown copy. ## Coding assistants - [Pi](https://hub.swale.io/swaleio/pi-coding-agent.md): Runs Pi, the coding agent, once, unattended, on a directory, and returns its final answer. - [Gemini CLI](https://hub.swale.io/swaleio/gemini-cli.md): Runs Google's Gemini CLI once, unattended, on a directory, and returns its final answer. - [OpenCode](https://hub.swale.io/swaleio/opencode.md): Runs OpenCode once, unattended, on a directory, and returns its final answer. - [GitHub Copilot CLI](https://hub.swale.io/swaleio/copilot-cli.md): Runs GitHub Copilot CLI once, unattended, on a directory, and returns its final answer. - [Codex CLI](https://hub.swale.io/swaleio/codex.md): Runs OpenAI's Codex CLI once, unattended, on a directory, and returns its final answer. - [Claude Code](https://hub.swale.io/swaleio/claude-code.md): Runs Anthropic's Claude Code once, unattended, on a directory, and returns its final answer. ## Machine learning & AI - [llama.cpp server](https://hub.swale.io/swaleio/llamacpp-server.md): Serves a GGUF model through llama.cpp's OpenAI-compatible server as a long-lived runner task. - [llama.cpp bench](https://hub.swale.io/swaleio/llamacpp-bench.md): Benchmarks a GGUF model's prompt and generation speed with llama.cpp's llama-bench. - [mergekit](https://hub.swale.io/swaleio/mergekit.md): Merges two or more language models into one with mergekit, from a YAML merge config. - [llama.cpp perplexity](https://hub.swale.io/swaleio/llamacpp-perplexity.md): Measures a GGUF model's perplexity on a text file with llama.cpp's llama-perplexity. - [Text Embeddings Inference serve](https://hub.swale.io/swaleio/tei-serve.md): Serves an embedding or reranker model over HTTP with Text Embeddings Inference, as a runner task. - [TRL distillation](https://hub.swale.io/swaleio/trl-distillation.md): Distills a larger teacher model into a smaller student with TRL from a config file. - [TRL RLOO](https://hub.swale.io/swaleio/trl-rloo.md): Trains a language model with rewards on its own answers, using TRL RLOO from a config file. - [TRL KTO](https://hub.swale.io/swaleio/trl-kto.md): Aligns a language model to answers labelled good or bad with TRL KTO from a config file. - [TRL reward model](https://hub.swale.io/swaleio/trl-reward.md): Trains a reward model on preference pairs with TRL from a config file. - [TRL GRPO](https://hub.swale.io/swaleio/trl-grpo.md): Trains a language model with rewards on its own answers, using TRL GRPO from a config file. - [TRL DPO](https://hub.swale.io/swaleio/trl-dpo.md): Aligns a language model to preference pairs with TRL DPO (direct preference optimization). - [vLLM serve](https://hub.swale.io/swaleio/vllm-serve.md): Serves a model through vLLM's OpenAI-compatible API server as a long-lived runner task. - [vLLM batch inference](https://hub.swale.io/swaleio/vllm-batch.md): Runs offline batch inference with vLLM over an OpenAI-batch-format JSONL request file. - [TRL SFT](https://hub.swale.io/swaleio/trl-sft.md): Fine-tunes a causal language model with TRL supervised fine-tuning from a config file. - [Transformers](https://hub.swale.io/swaleio/transformers.md): Runs an arbitrary Python script on a CUDA GPU with torch, transformers, trl, and peft ready. - [Ollama serve](https://hub.swale.io/swaleio/ollama-serve.md): Runs an Ollama server as a long-lived runner, pulling the requested model and serving its API. - [LM evaluation harness](https://hub.swale.io/swaleio/lm-eval.md): Evaluates a model on lm-evaluation-harness benchmarks using the vLLM backend, writing JSON. - [llama.cpp quantize](https://hub.swale.io/swaleio/llamacpp-quantize.md): Quantizes a GGUF model file to a smaller preset (e.g. Q4_K_M) with llama.cpp's llama-quantize. - [llama.cpp convert](https://hub.swale.io/swaleio/llamacpp-convert.md): Converts a Hugging Face model directory into a single GGUF file with llama.cpp. - [Axolotl train](https://hub.swale.io/swaleio/axolotl-train.md): Fine-tunes a model with Axolotl (full, LoRA, or QLoRA) from a caller-supplied config YAML. - [Axolotl merge LoRA](https://hub.swale.io/swaleio/axolotl-merge-lora.md): Merges a trained LoRA/QLoRA adapter into its base model with Axolotl, producing standalone weights. ## Data processing - [DuckDB](https://hub.swale.io/swaleio/duckdb.md): Runs SQL with the DuckDB CLI over Parquet, CSV and JSON files, on the workspace or remote. - [whisper.cpp transcribe](https://hub.swale.io/swaleio/whisper-cpp.md): Transcribes an audio file to text, subtitles and JSON with whisper.cpp. - [Tesseract OCR](https://hub.swale.io/swaleio/tesseract.md): Recognizes the text in scanned page images with Tesseract, as text, searchable PDF, hOCR or TSV. - [Docling convert](https://hub.swale.io/swaleio/docling.md): Converts PDF, Office, HTML and image documents to Markdown, JSON, HTML or text with Docling. ## Data transfer - [Swale push](https://hub.swale.io/swaleio/swale-push.md): Pushes files from the workspace to a Swale repository. - [Swale pull](https://hub.swale.io/swaleio/swale-pull.md): Pulls the content of a Swale repository into a path you choose. - [Rclone copy](https://hub.swale.io/swaleio/rclone-copy.md): Copies files between cloud/remote storage and the workspace with rclone, via credential inputs. - [HF upload](https://hub.swale.io/swaleio/hf-upload.md): Uploads a workspace directory to a repository on the Hugging Face Hub. - [Hugging Face download](https://hub.swale.io/swaleio/hf-download.md): Downloads a model, dataset, or space from the Hugging Face Hub into a caller-chosen directory. - [Git clone](https://hub.swale.io/swaleio/git-clone.md): Clones a Git repository into the workspace over HTTPS, with optional token auth and Git LFS support. ## Languages & frameworks - [Rust](https://hub.swale.io/swaleio/rust.md): Runs an arbitrary shell script with the current stable Rust toolchain and Cargo available. - [Python 3.15](https://hub.swale.io/swaleio/python-3-15.md): Runs an arbitrary Python 3.15 script. The escape hatch for anything without a dedicated task. - [Python 3.14](https://hub.swale.io/swaleio/python-3-14.md): Runs an arbitrary Python 3.14 script. The escape hatch for anything without a dedicated task. - [Python 3.13](https://hub.swale.io/swaleio/python-3-13.md): Runs an arbitrary Python 3.13 script. The escape hatch for anything without a dedicated task. - [Python 3.12](https://hub.swale.io/swaleio/python-3-12.md): Runs an arbitrary Python 3.12 script. The escape hatch for anything without a dedicated task. - [Python 3.11](https://hub.swale.io/swaleio/python-3-11.md): Runs an arbitrary Python 3.11 script. The escape hatch for anything without a dedicated task. - [PowerShell 7.7](https://hub.swale.io/swaleio/powershell-7-7.md): Runs an arbitrary PowerShell 7.7 (pwsh) script. The escape hatch for anything without a task. - [PowerShell 7.6](https://hub.swale.io/swaleio/powershell-7-6.md): Runs an arbitrary PowerShell 7.6 (pwsh) script. The escape hatch for anything without a task. - [Node.js 26](https://hub.swale.io/swaleio/node-26.md): Runs an arbitrary shell script with Node.js 26, npm, and npx available. - [Node.js 24](https://hub.swale.io/swaleio/node-24.md): Runs an arbitrary shell script with Node.js 24, npm, npx, and corepack available. - [Node.js 22](https://hub.swale.io/swaleio/node-22.md): Runs an arbitrary shell script with Node.js 22, npm, npx, and corepack available. - [Java 8 Maven](https://hub.swale.io/swaleio/java-maven-8.md): Runs an arbitrary shell script with a Java 8 JDK and Maven, for building and testing Java. - [Java 25 Maven](https://hub.swale.io/swaleio/java-maven-25.md): Runs an arbitrary shell script with a Java 25 JDK and Maven, for building and testing Java. - [Java 21 Maven](https://hub.swale.io/swaleio/java-maven-21.md): Runs an arbitrary shell script with a Java 21 JDK and Maven, for building and testing Java. - [Java 17 Maven](https://hub.swale.io/swaleio/java-maven-17.md): Runs an arbitrary shell script with a Java 17 JDK and Maven, for building and testing Java. - [Java 11 Maven](https://hub.swale.io/swaleio/java-maven-11.md): Runs an arbitrary shell script with a Java 11 JDK and Maven, for building and testing Java. - [Go](https://hub.swale.io/swaleio/go.md): Runs an arbitrary shell script with the current Go toolchain available. - [.NET 11](https://hub.swale.io/swaleio/dotnet-11.md): Runs an arbitrary shell script with the .NET 11 SDK available, for build, test, and publish flows. - [.NET 10](https://hub.swale.io/swaleio/dotnet-10.md): Runs an arbitrary shell script with the .NET 10 SDK available, for build, test, and publish flows. - [Bash](https://hub.swale.io/swaleio/bash.md): Runs an arbitrary Bash script. The escape hatch for anything without a dedicated task. ## Utilities - [HTTP request](https://hub.swale.io/swaleio/http-request.md): Makes an HTTP request with curl, writing the response body to a file and emitting the status. - [GPU smoke test](https://hub.swale.io/swaleio/gpu-smoke-test.md): Verifies a GPU compute type end to end and emits the GPU name, VRAM size, and CUDA version. ## Media - [FFmpeg](https://hub.swale.io/swaleio/ffmpeg.md): Runs a Bash script with ffmpeg and ffprobe on PATH. Transcode, cut, or turn frames into video. - [Blender 5.2 render](https://hub.swale.io/swaleio/blender-render-5-2.md): Renders frames of a .blend file with Blender 5.2 LTS in the background, on CPU or on the GPU. - [Blender 4.5 render](https://hub.swale.io/swaleio/blender-render-4-5.md): Renders frames of a .blend file with Blender 4.5 LTS in the background, on CPU or on the GPU.