tools / llm

LLM

internet3 tools

Text from language models (one provider per tool, the API key declared as a secret and the provider's host fixed; llm/local for a model server on this machine, no key) and llm/prompt, which composes what they read.

Tools

cohere.py

● networkpython3

One Cohere chat completion (api.cohere.com/v2/chat) from a prompt file or inline prompt, with an optional system prompt file, written to response.md. The host is fixed -- there is no base-URL parameter -- so the API key can only ever be sent to Cohere. seed makes sampling best-effort reproducible; stdout is a one-line summary (model, seed, tokens, finish reason), never the completion.

8 params · 1 outputdetails →

local.py

● networkpython3

One chat completion from a local, OpenAI-compatible model server (LM Studio, llama.cpp, Ollama) from a prompt file and an optional system prompt file, written to response.md; no key. With think=false a reasoning model is asked to answer at once (an empty think block is prefilled), and any think block left in the answer is removed. stdout is a one-line summary, never the completion.

10 params · 1 outputdetails →

prompt.py

○ hermeticpython3

The two files an LLM step reads, for llm/cohere's prompt and system: prompt.md (the task, its subject, reference text, constraints) and system.md (the voice or house style, examples). Reference text and examples are length-capped and fenced as material, never instructions, so an earlier step's output (headlines, a transcript, a page) cannot rewrite the task. For poems, poem/prompt knows the forms.

9 params · 2 outputsdetails →

Get it

This directory is the skill — SKILL.md lists the tools and the tools sit beside it. As one file, into any Agent Skills directory:

curl -fsSL https://tools.ofthemachine.com/llm.tar.gz | tar xz -C ~/.claude/skills