Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 39 additions & 20 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,55 +1,74 @@
---
title: Perstack Documentation
description: Define AI agents as Experts in natural language. Execute them with deterministic, event-derived tracking.
description: A harness for micro-agents — build practical agentic apps that are cheaper and easier to operate.
slug: docs
pagefind: true
---

Define AI agents as **Experts** in natural language. Execute them with deterministic, event-derived tracking. Each Expert runs in its own isolated context — no shared state, no prompt bloat, full execution history.
Perstack is an open-source harness for micro-agents — purpose-specific agents with a single responsibility.

Instead of one monolithic agent on a frontier model, you define a team of small, focused agents in TOML, and the runtime handles orchestration, isolation, and state. The result: agentic apps that are cheaper to run and easier to operate.

## Quick Start

Perstack is an open-source runtime for executing AI agents defined as Experts. Define behavior in TOML, run from the CLI or embed in your application.
Use the built-in `create-expert` expert to scaffold a micro-agent team, then run it:

```bash
# Generate an Expert using create-expert (a published Expert on the Perstack registry)
npx perstack start create-expert "Create a code-reviewer that delegates to a style-checker"

# Run it
npx perstack start code-reviewer "Review PR #42 for security issues"
# Scaffold a micro-agent team
docker run --pull always --rm -it \
-e FIREWORKS_API_KEY \
-v ./my-project:/workspace \
perstack/perstack start create-expert \
--provider fireworks \
--model accounts/fireworks/models/kimi-k2p5 \
"Form a team to build a CLI app."

# Run the generated expert
docker run --pull always --rm -it \
-e FIREWORKS_API_KEY \
-v ./my-project:/workspace \
perstack/perstack start my-expert \
--provider fireworks \
--model accounts/fireworks/models/kimi-k2p5 \
"Build me a CLI todo app with priorities and due dates."
```

## Why Perstack?
See [Getting Started](/docs/getting-started/walkthrough/) for a full walkthrough.

Agent frameworks help you **build** agents. Perstack is a **runtime** that **executes** them. You define Experts in natural language via TOML — Perstack handles execution, isolation, and state.
## Why Micro-Agents?

| | |
| :--- | :--- |
| **Natural-language definitions** | Expert definitions in `perstack.toml` are plain text. Domain experts write the behavior; developers focus on integration. |
| **Isolation by design** | Each Expert runs in its own context — workspace boundaries, environment sandboxing, and tool whitelisting. No shared state between runs. |
| **Event-derived execution** | Step-level checkpoints make runs reproducible. Resume from any step, debug, replay, and audit every decision. |
| **Multi-provider support** | Anthropic, OpenAI, Google, DeepSeek, Ollama, Azure, Bedrock, Vertex. Switch providers with one config change. |
| **Cost-effective** | Purpose-specific agents run on affordable models. A focused agent on a cheap model outperforms a generalist on an expensive one. |
| **Fast** | Smaller models generate faster. Fine-grained tasks run concurrently via parallel delegation. |
| **Reusable** | Delegates are dependency management for agents — like npm packages or crates. Compose purpose-built experts across projects. |
| **Maintainable** | Single-responsibility experts are independently testable. Test each one, then compose them. |

## Explore the Docs

### Learn

- [**Getting Started**](/docs/getting-started/walkthrough/) — create your first Expert and walk through the core workflow
- [**Concepts**](/docs/understanding-perstack/concept/) — understand the architecture behind Experts, runtime, isolation, and the boundary model
- [**Getting Started**](/docs/getting-started/walkthrough/) — create your first expert and walk through the core workflow
- [**Concepts**](/docs/understanding-perstack/concept/) — understand the architecture behind experts, runtime, isolation, and the boundary model

### Build

- [**Making Experts**](/docs/making-experts/best-practices/) — complete guide to defining Experts with skills, delegation, testing, and best practices
- [**Making Experts**](/docs/making-experts/best-practices/) — defining experts with skills, delegation, testing, and best practices
- [**Guides**](/docs/guides/rapid-prototyping/) — task-oriented walkthroughs from rapid prototyping to production deployment

### Operate

- [**Deployment**](/docs/operating-experts/deployment/) — container images, serverless integration, and `perstack install`
- [**Isolation & Security**](/docs/operating-experts/isolation-by-design/) — sandbox design, workspace boundaries, and secret management

### Reference

- [**CLI Reference**](/docs/references/cli/) — all commands and options for the Perstack CLI
- [**perstack.toml Reference**](/docs/references/perstack-toml/) — complete configuration specification
- [**API Reference**](/api/v1/spec) — REST API documentation for the Execution API
- [**Providers and Models**](/docs/references/providers-and-models/) — supported providers and model configuration

## Community

- [GitHub](https://github.com/perstack-ai/perstack) — source code and issues
- [Discord](https://discord.gg/perstack) — chat with the community
- [X (@perstack_ai)](https://x.com/perstack_ai) — updates and announcements
- [Discord](https://discord.gg/2xZzrxC9) — chat with the community
- [@FL4T_LiN3 on X](https://x.com/FL4T_LiN3) — updates and announcements