npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tegonhq/agent-sdk

v0.1.14

Published

Sigma Agent SDK

Downloads

39

Readme

Agent SDK

The Agent SDK provides a framework for building AI agents that can interact with various services and APIs. It implements the ReAct (Reasoning, Acting, Observing) prompting technique to enable LLM-powered agents to solve complex tasks through iterative reasoning and action.

Architecture

BaseAgent

The BaseAgent class is the foundation of the agent architecture, providing a CLI interface and core functionality for all agent implementations. It handles common tasks like command registration, logging, and context management.

Key Features:

  • CLI interface with standard commands:
    • skills: Lists agent capabilities and available skills
    • about: Provides information about what the agent does
    • terms: Shows domain-specific terminology the agent understands
    • ask: Executes the agent with a user message and streams responses
  • Logging system using Pino
  • Version tracking from package.json
  • Context management for maintaining state between invocations

Abstract Methods:

  • ask(): Main method that processes user input and returns responses
  • skills(): Returns available skills/capabilities
  • terms(): Returns domain-specific terminology
  • about(): Returns agent purpose description

ReactBaseAgent

The ReactBaseAgent extends BaseAgent to implement the ReAct (Reasoning, Acting, Observing) prompting technique. This approach enables an LLM-powered agent to reason through multi-step tasks by iteratively:

  1. Thinking about how to approach a problem
  2. Deciding on an action to take
  3. Observing the result
  4. Repeating until the task is complete

BaseSkills and APIBaseSkills

The SDK provides base classes for implementing agent capabilities:

  • BaseSkills: Abstract class for defining agent skills
  • APIBaseSkills: Extension of BaseSkills specifically for API-based integrations

Extending ReactBaseAgent

You can create custom integrations by extending the ReactBaseAgent class. Here's a simplified example:

import { ReactBaseAgent } from '@tegonhq/agent-sdk';
import { GithubSkills } from './github-skills';
import { JARGON } from './jargon';

export class GithubAgent extends ReactBaseAgent {
  skills(): Array<any> {
    const githubSkills = new GithubSkills({});
    const skills = githubSkills.skills();
    return Object.keys(skills).map((key) => ({ ...skills[key], name: key }));
  }

  // Provide domain-specific terminology
  terms(): string {
    return JARGON;
  }

  // Implementation of the runSkill method that executes actions
  async runSkill(
    skillName: string,
    parameters: any,
    integrationConfig: Record<string, string>,
  ): Promise<string> {
    const githuSkills = new GithubSkills(integrationConfig);
    return githuSkills.runSkill(skillName, parameters);
  }
}

BaseSkills

The BaseSkills class provides an abstraction for implementing skill capabilities that agents can use. It separates skill definitions from the agent implementation.

Key Features:

  • Constructor that takes integration configuration
  • Abstract methods for defining and executing skills

Abstract Methods:

  • skills(): Returns a map of available skills with their definitions
  • runSkill(): Executes a specific skill with provided parameters

APIBaseSkills

The APIBaseSkills class extends BaseSkills to provide a foundation for API-based integrations. It handles common API concerns like headers and base URLs.

Key Features:

  • Constructor that initializes headers and base URL
  • Abstract methods for API configuration

Abstract Methods:

  • getBaseURL(): Determines the base URL for API requests
  • getHeaders(): Generates headers for API requests using integration configuration