← Back to Documentation

Agents

PersistenceAI uses an agent system where different agents have specialized roles and capabilities.

Overview

Agents in PersistenceAI are specialized AI assistants, each designed for specific tasks:

Built-in Primary Agents: Built-in Subagents: Custom Agents:

You can also create custom agents (like code reviewers, debuggers, architects) through configuration. See Agent Configuration below.

Switching Agents

Using Keyboard

Using Command

/agents

This lists all available agents. Select one to switch.

Using Shortcut

Agent Roles

Each agent has a specific role and set of skills:

Build Agent

The default primary agent for most coding tasks. Good for:

Plan Agent

A restricted primary agent designed for planning and analysis. Good for:

Note: Plan agent asks for permission before making any file edits or running bash commands.

General Subagent

A general-purpose subagent for complex tasks. Good for:

Explore Subagent

A fast subagent specialized for codebase exploration. Good for:

Custom Agents:

You can create custom agents like code reviewers, debuggers, or architects through configuration. See the Agent Configuration section for examples.

Subagents

Subagents are specialized agents that can be invoked using @ mentions for specific tasks. They operate independently and are designed for focused, single-purpose operations.

Git Committer (@git-committer)

A specialized subagent for git operations. Use this agent when you need to commit and push code changes to a git repository.

Usage:
@git-committer commit these changes with message "Fix alignment issue in editor pane"
What it does: Commit Message Format:

Commit messages must include a prefix indicating the type of change:

Special Prefix Rules: Important Notes: Examples:
@git-committer commit and push with message "tui: Add workspace file filtering to @ mention feature"
@git-committer commit these changes with message "docs: Update agent documentation with git-committer details"
@git-committer commit and push with message "core: Fix memory retrieval bottleneck in LanceDBBackend"

Agent Skills

Agents have access to different skills (tools) based on their role:

Using @ Mentions

You can mention specific subagents in your prompts using @:

@general help me search for this function across the codebase

This ensures the right subagent handles your request.

Built-in Subagents Available for @ Mentions: Note: Primary agents (build, plan, oligarchy) are switched using the Tab key, not @ mentions. The @ mention feature is specifically for subagents. Custom Agents:

You can also create custom agents (like @code-reviewer, @debugger, @architect) through configuration. These will appear in the autocomplete when you type @.

When you type @ in the prompt, you'll see an autocomplete list of available subagents and files in your workspace.

Agent Configuration

Agents can be configured in your project's AGENTS.md file or in the global config.

Example Agent Config

{
  "agents": [
    {
      "name": "general",
      "role": "General coding assistant",
      "skills": ["file", "search", "execute"]
    }
  ]
}

For more information, see: