Using Triks

TrikHub supports both TypeScript/JavaScript and Python projects with native gateways.

A recap on Triks?

Triks are self-contained, composable AI skill packages that bring complete solutions to your agents—not just raw API tools.

The core idea: Instead of exposing dozens of micro-tools that your agent needs to orchestrate (wasting tokens and risking errors), a Trik packages an entire workflow into a single, optimized action. These actions are then automatically translated into LangGraph tools that your main agent can use.

From Agent Workflows to Tools

Think of Triks as “apps for agents.” Each Trik can contain:

  • Complete workflows - A YouTube downloader Trik handles search, selection, download, and delivery in one action
  • Internal agents - Triks can have their own LLM reasoning, tools, and state
  • Security boundaries - Built-in protection against prompt injection

When you install a Trik, its actions become tools your agent can call:

# Your agent sees these as simple tools: # - youtube-downloader:search # - youtube-downloader:download # - article-search:search # - article-search:get-details

How It Works

Your AgentGatewayTrik

  1. Your agent calls a Trik action like any other LangGraph tool
  2. The Gateway validates input, executes the Trik, and sanitizes output
  3. The Trik runs its complete workflow (may include its own LLM, tools, etc.)
  4. Your agent receives structured, safe results—never raw untrusted content

Cross-Environment Support

Both runtimes can execute triks written in either language:

  • TypeScript gateway can run Python triks via a worker subprocess
  • Python gateway can run JavaScript triks via a Node.js subprocess

This means you can use any trik regardless of what language your agent is written in.


Continue to Installation to add Triks to your project.