AGTerm

AGTerm

Multi-model AI terminal agent with context management, memory compression, and autonomous execution.

Overview

AGTerm is a powerful AI terminal agent in the Calliope platform suite. It provides:

  • Secure terminal server - Web-based terminal access with authentication
  • AI agent integration - Multiple AI backends including Claude Code, Gemini CLI, and custom agents
  • Context engine - Intelligent context assembly with token budgeting
  • Memory management - Automatic conversation compression
  • Multi-model gateway - Unified access to 12+ AI providers

AGTerm is available as a tool in The Hub alongside:

  • AI IDE - Full development environment with AI
  • AI Lab - JupyterLab with AI assistance
  • Chat - Conversational AI interface
  • Deep Data Agent - Autonomous research agent
  • Agentic Browser - Web automation agent

Architecture

┌─────────────────────────────────────────────────────────────┐
│                      AGTerm Server                          │
├─────────────────────────────────────────────────────────────┤
│  ┌─────────────┐  ┌──────────────┐  ┌───────────────────┐   │
│  │   Session   │  │   Context    │  │      Memory       │   │
│  │   Manager   │  │    Engine    │  │     Manager       │   │
│  └─────────────┘  └──────────────┘  └───────────────────┘   │
│                                                             │
│  ┌─────────────────────────────────────────────────────┐   │
│  │                    Agent Core                        │   │
│  │  ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐    │   │
│  │  │ Claude  │ │ Gemini  │ │ Codex   │ │ AGTerm  │    │   │
│  │  │  Code   │ │   CLI   │ │   CLI   │ │  Agent  │    │   │
│  │  └─────────┘ └─────────┘ └─────────┘ └─────────┘    │   │
│  └─────────────────────────────────────────────────────┘   │
│                                                             │
│  ┌─────────────────────────────────────────────────────┐   │
│  │                Multi-Model Gateway                   │   │
│  │  Anthropic | OpenAI | Google | Mistral | Ollama ... │   │
│  └─────────────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────────────┘
          │                            │
          ▼                            ▼
    ┌───────────┐              ┌───────────────┐
    │  Web UI   │              │  WebSocket    │
    │  Client   │              │  Connections  │
    └───────────┘              └───────────────┘

Key Features

Session Management

Create and manage terminal sessions:

  • Multiple sessions - Run multiple AI agents simultaneously
  • Session persistence - Sessions survive disconnects
  • Session switching - Seamlessly switch between agents
  • Workspace isolation - Each session has its own working directory

AI Backends

Switch between multiple AI backends:

BackendDescription
AGTerm AgentNative multi-model agent with tool use
Claude CodeAnthropic’s coding assistant
Gemini CLIGoogle’s AI CLI
Codex CLIOpenAI’s code model
ShellPlain terminal (no AI)

Context Engine

Intelligent context assembly for AI conversations:

  • Token budgeting - Stay within model limits
  • Priority pruning - Remove low-priority content first
  • Explicit files - Add specific files to context
  • Folder scanning - Include project structure
  • Search integration - Add search results to context

Memory Management

Automatic conversation memory with compression:

  • Auto-compression - Compress old messages when approaching limits
  • LLM summarization - Use AI to create intelligent summaries
  • Entry tracking - Message, tool call, tool result, context entries
  • Import/export - Save and restore session state

Multi-Model Gateway

Unified interface to multiple AI providers:

ProviderModels
AnthropicClaude Sonnet 4, Opus, Haiku
OpenAIGPT-4o, GPT-4 Turbo
GoogleGemini 2.0, Gemini 1.5
MistralLarge, Codestral
GroqLlama 3.3
TogetherOpen source models
OpenRouterAny model
OllamaLocal models

Documentation

Getting Started

Access AGTerm through The Hub:

  1. Go to The Hub
  2. Click New Session
  3. Select AGTerm as the agent type
  4. Start working in the terminal

Deployment Options

  • Cloud hosted - Available in The Hub (default)
  • Self-hosted - Deploy in your own infrastructure
  • API access - Programmatic control for custom integrations

Contact sales@calliope.ai for enterprise and self-hosted deployment options.

Integration with Calliope CLI

AGTerm shares its multi-model gateway with Calliope CLI. The CLI provides a simpler interface for individual developers, while AGTerm adds:

  • Server-based architecture
  • Session persistence
  • Team features
  • Governance integration
  • Audit logging