← Back to Plugins
Tools

Hierarchical

luoanb By luoanb 👁 36 views ▲ 0 votes

Tree-hierarchy agent plugin for OpenClaw with inherited prompts (PLS) and node-type tool isolation (NTS)

GitHub

Install

npm install @openclaw/hierarchical

Configuration Example

{
  "plugins": {
    "enabled": true,
    "entries": {
      "hierarchical": {
        "enabled": true
      }
    }
  }
}

README

# @openclaw/hierarchical

> OpenClaw hierarchical agent plugin โ€” inherited prompts (PLS) and node-type tool isolation (NTS).

## Features

- **PLS (Prompt Layering System)**: Hierarchical prompt inheritance from root to child agents
- **NTS (Node-Type Tool Isolation)**: Tool allow/deny lists per node type in the hierarchy
- **Subagent spawning**: Automatic session context alignment for spawned child agents

## Installation

```bash
openclaw plugins install hierarchical
```

Or via npm:

```bash
npm install @openclaw/hierarchical
```

## Usage

Enable the plugin in your OpenClaw config:

```json
{
  "plugins": {
    "enabled": true,
    "entries": {
      "hierarchical": {
        "enabled": true
      }
    }
  }
}
```

Create a `hierarchical/` directory in your workspace with the following structure:

```
workspace/
โ”œโ”€โ”€ hierarchical/
โ”‚   โ”œโ”€โ”€ prompt/
โ”‚   โ”‚   โ”œโ”€โ”€ 10-core.md
โ”‚   โ”‚   โ””โ”€โ”€ 20-rules.md
โ”‚   โ””โ”€โ”€ children/
โ”‚       โ”œโ”€โ”€ architect/
โ”‚       โ”‚   โ”œโ”€โ”€ hierarchical/
โ”‚       โ”‚   โ”‚   โ”œโ”€โ”€ prompt/
โ”‚       โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ 25-agents.md
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€ children/
โ”‚       โ”‚   โ”‚       โ””โ”€โ”€ ...
โ”‚       โ”‚   โ””โ”€โ”€ ...
โ”‚       โ””โ”€โ”€ ...
```

## Development

```bash
git clone https://github.com/openclaw/hierarchical-plugin.git
cd hierarchical-plugin
npm install
npm run build
npm test
```

## License

MIT
tools

Comments

Sign in to leave a comment

Loading comments...