> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opengoat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Build an Organization

> Create a manager/individual hierarchy, inspect reporting chains, and set a default entry agent.

## 1. Bootstrap Manager Layer

```bash theme={null}
opengoat agent create "CTO" --manager --reports-to goat
opengoat agent create "Head of Product" --manager --reports-to goat
```

## 2. Add Individual Contributors

```bash theme={null}
opengoat agent create "Backend Engineer" --individual --reports-to cto
opengoat agent create "Frontend Engineer" --individual --reports-to cto
opengoat agent create "Product Designer" --individual --reports-to head-of-product
```

## 3. Inspect Hierarchy

```bash theme={null}
opengoat agent list
opengoat agent info cto
opengoat agent direct-reportees cto
opengoat agent all-reportees goat
```

## 4. Reassign Reporting When Needed

```bash theme={null}
opengoat agent set-manager product-designer cto
```

Use `none` to move an agent to root (use carefully):

```bash theme={null}
opengoat agent set-manager product-designer none
```

## 5. Set the Entry Agent for Daily Usage

```bash theme={null}
opengoat agent set-default cto
```

Environment variable still overrides config:

```bash theme={null}
export OPENGOAT_DEFAULT_AGENT=goat
```
