ULTCAN.COM

Tritium help guide cli demos

help

Tritium is our coding agent for developers, vibe coders, and agents.
Pseudocode input, Tritium converts to Python / C / Rust.
Back to Tritium

You write Pseudocode. Mark bodies Tritium should fill with a Tritium token (@tritium). Tritium converts to Python / C / Rust via metadata.lang / --lang. Details: guide.

Primary path: write Pseudocode + @tritium and convert with the CLI — same as demos.

pip install ultcan-tritium --index-url https://ultcan.com/simple/

PSEUDO='def shortest(graph, source):
    """@tritium
    fn shortest(graph, source):
      return distances from source on the weighted graph
    """
    ...'
tritium -c "$PSEUDO" --lang python

Same Pseudocode over HTTPS (POST /v1/chat/completions, metadata.lang = python | c | rust):

BASE='https://ultcan.com/tritium/api'
curl -sS "$BASE/v1/chat/completions" \
  -H 'Content-Type: application/json' \
  -d '{"model":"tritium","metadata":{"lang":"python"},"messages":[{"role":"user","content":"def shortest(graph, source):\n    \"\"\"@tritium\n    fn shortest(graph, source):\n      return distances from source on the weighted graph\n    \"\"\"\n    ..."}]}'
HTTPmeaning
200, completion_tokens=0Converted code in the assistant message
422Lower Pseudocode until HIT — guide
429Rate limited — wait retry_after_s

Optional chat commands (same endpoint, message body is the command word):

messagewhat it does
helpthis card (from the live API)
validateprovenance reminder
demo <name> / demosexample transcripts — /tritium/demos/

CLI — calls the same API: /tritium/cli/
Guide: /tritium/guide/

ULTCAN.COM