Skip to main content

API Overview

The Agate API provides a comprehensive set of interfaces for building terminal-based applications. This reference covers all public APIs, interfaces, and utilities available in the framework.

Core Packages

pkg/app

The main application package containing the core Agate application structure.
Key types:
  • App - Main application instance
  • Config - Application configuration
  • Agent - Agent interface

pkg/ui

UI components and rendering utilities.
Key types:
  • Component - Base UI component interface
  • Overlay - Overlay component for modal dialogs
  • Border - Border styling utilities

pkg/shell

Shell management and tmux integration.
Key types:
  • Shell - Shell session management
  • TmuxManager - tmux integration utilities
  • Command - Command execution utilities

Quick Reference

Creating an Application

Registering Agents

Configuration

Error Handling

All Agate APIs follow Go conventions for error handling:

Next Steps

Agent System API

Detailed agent system API reference

UI Components API

Complete UI components reference