functions

functions is a command for Claude Code from gotempsh/temps. It costs 0 tokens per session (956 once invoked), scanned A, original, Apache-2.0.

A command-line tool for managing scale-to-zero functions: small server-side programs that can sleep when unused and start when a request needs them. Functions may be deployed from WebAssembly modules or OCI container images.

In plain words
What is it for?
Use it to check whether function execution is available, list and inspect project functions, create or delete functions, and stop or start a function on demand.
Why use it?
Running unused functions continuously can waste resources, while managing their availability manually is inconvenient. This tool shows their status and controls when they sleep or wake.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to check whether function execution is available, list and inspect project functions, create or delete functions, and stop or start a function on demand.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/gotempsh/temps/functions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/gotempsh/temps

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for functions

README.md
[![agentmods](https://agentmods.dev/badge/commands/gotempsh/temps/functions/github.svg)](https://agentmods.dev/commands/gotempsh/temps/functions)
Your own site
<a href="https://agentmods.dev/commands/gotempsh/temps/functions"><img src="https://agentmods.dev/badge/commands/gotempsh/temps/functions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for functions

Your own site · 80×15
<a href="https://agentmods.dev/commands/gotempsh/temps/functions"><img src="https://agentmods.dev/badge/commands/gotempsh/temps/functions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 956 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00956
Opus 5.5 $0.00000 $0.00382
Sonnet 5.5 $0.00000 $0.00191
Haiku 4.5 $0.00000 $0.00096

Measured 12d ago against content hash e25ed22a8461, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

functions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/temps/references/commands/functions.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

functions command reference

Apply the CLI runtime and safety contract before executing a command. Runtime --help is authoritative.

functions (alias: fn)

Manage scale-to-zero functions (WASM modules or OCI images) in a project

Subcommands:

  • capability - Show whether this Temps instance can run functions, and what is missing
  • list (ls) - List the functions of a project
  • show - Show a function (ID or name), including why it is not serving
  • create - Create a function from a WASM module or an OCI image
  • rm (delete) - Delete a function (ID or name)
  • sleep - Stop a running function now; the next request wakes it
  • wake - Start a function now instead of on its next request

functions capability

Show whether this Temps instance can run functions, and what is missing

Options:

Flag Description Default Required
--json Output in JSON format - No

functions list (alias: ls)

List the functions of a project

Options:

Flag Description Default Required
-p, --project <project> Project slug - No
--page <n> Page number 1 No
--page-size <n> Items per page (max 100) 20 No
--json Output in JSON format - No

functions show

Show a function (ID or name), including why it is not serving

Options:

Flag Description Default Required
-p, --project <project> Project slug - No
--json Output in JSON format - No

functions create

Create a function from a WASM module or an OCI image

Options:

Flag Description Default Required
-p, --project <project> Project slug - No
--name <name> Function name; part of its hostname - No
--wasm <file> WASI preview 1 module (wasm32-wasip1) serving HTTP CGI-style - No
--image <ref> OCI image reference serving HTTP on --port - No
--port <port> Port the function serves on (default 8080) - No
--memory <mb> Memory limit in MiB (1-4096) - No
--idle-timeout <seconds> Stop after this many idle seconds (10-86400, default 300) - No
--wake-timeout <seconds> How long the first request waits for a start (1-300, default 30) - No
--json Output in JSON format - No

Read the full file on GitHub · 106 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 106 lines · 0 tokens per session scan A e25ed22a8461

Subscribe to this mod's changes

functions is a command published in the GitHub repository gotempsh/temps (906 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 956 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-29.

Related

functions compared with commands from other repositories

functions next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
functionsgotempsh/tempsCommand906todayApache-2.0A0Claude Code
la-deployTheLobbi/Claude-mCommand191mo agononeA22Claude Code
azure-dotnet-webapp:deploy-webappTheLobbi/Claude-mCommand191mo agononeB65Claude Code
terraform-scaffoldQuakedudone94/r19-iannuttall-claude-agents-devopsCommand516mo agononeA0Claude Code
cost-optimizemythicnoteshed/r16-voltagent-awesome-agent-skills-devopsCommand476mo agononeA0Claude Code
cost-optimizemixedkindweave/r05-jqueryscript-awesome-claude-code-devopsCommand426mo agononeA0Claude Code
monitor-setupcentiofficermultiply/r17-behisecc-awesome-claude-skills-devopsCommand436mo agononeA0Claude Code