Tools
Hierarchical
Tree-hierarchy agent plugin for OpenClaw with inherited prompts (PLS) and node-type tool isolation (NTS)
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