# zeljkoavramovic/behave architecture

> Architecture diagram of the GitHub repository zeljkoavramovic/behave, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zeljkoavramovic/behave
- Repository: https://github.com/zeljkoavramovic/behave

## Overview

Behave is a dependency-free installer for a single behavioral-instructions file, BEHAVE.md. The main workflow is to detect supported coding agents and install scope, collect the user's choices, select each target path, then write or remove the instructions. README documents the framework's behavioral capabilities, but the implementation text itself was not sampled, so those capabilities are represented as the installed artifact rather than inferred internal modules. The single 135 KB installer combines these responsibilities; edges are limited to relationships stated in the README or visible in the excerpts.

Main entry points: [`install.py`](https://github.com/zeljkoavramovic/behave/blob/master/install.py) (Installer workflow), [`BEHAVE.md`](https://github.com/zeljkoavramovic/behave/blob/master/BEHAVE.md) (Behavior instructions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Target setup"]
  node_agent_detection["Agent detection<br/>[install.py]"]
  node_scope_selection["Scope selection<br/>[install.py]"]
  node_target_selection["Target selection<br/>[install.py]"]
end

subgraph group_installation["Installation lifecycle"]
  node_installer["Installer workflow<br/>[install.py]"]
  node_agent_targets["Agent instruction targets"]
end

subgraph group_instructions["Behavior framework"]
  node_instruction_file["Behavior instructions<br/>[BEHAVE.md]"]
end

node_user(("User"))
node_agents(("Coding agents"))

node_user -->|"chooses options"| node_installer
node_installer -->|"detects agents"| node_agent_detection
node_installer -->|"selects scope"| node_scope_selection
node_installer -->|"selects targets"| node_target_selection
node_installer -->|"installs"| node_instruction_file
node_installer -->|"writes instructions"| node_agent_targets
node_agents -->|"reads instructions"| node_agent_targets
node_user -.->|"requests removal"| node_installer

click node_agent_detection "https://github.com/zeljkoavramovic/behave/blob/master/install.py"
click node_scope_selection "https://github.com/zeljkoavramovic/behave/blob/master/install.py"
click node_target_selection "https://github.com/zeljkoavramovic/behave/blob/master/install.py"
click node_installer "https://github.com/zeljkoavramovic/behave/blob/master/install.py"
click node_instruction_file "https://github.com/zeljkoavramovic/behave/blob/master/BEHAVE.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_agent_detection,node_scope_selection,node_target_selection,node_user toneBlue
class node_installer,node_agent_targets toneAmber
class node_instruction_file toneMint
class node_agents toneIndigo
```

## Components

### Target setup

- [Agent detection](https://github.com/zeljkoavramovic/behave/blob/master/install.py): `install.py`
- [Scope selection](https://github.com/zeljkoavramovic/behave/blob/master/install.py): `install.py`
- [Target selection](https://github.com/zeljkoavramovic/behave/blob/master/install.py): `install.py`

### Installation lifecycle

- [Installer workflow](https://github.com/zeljkoavramovic/behave/blob/master/install.py): `install.py`
- **Agent instruction targets**

### Behavior framework

- [Behavior instructions](https://github.com/zeljkoavramovic/behave/blob/master/BEHAVE.md): `BEHAVE.md`

### Other components

- **User**
- **Coding agents**

## Connections

- User → Installer workflow: chooses options (evidence: `README.md`)
- Installer workflow → Agent detection: detects agents (evidence: `README.md`)
- Installer workflow → Scope selection: selects scope (evidence: `README.md`)
- Installer workflow → Target selection: selects targets (evidence: `README.md`)
- Installer workflow → Behavior instructions: installs (evidence: `README.md`)
- Installer workflow → Agent instruction targets: writes instructions (evidence: `README.md`)
- Coding agents → Agent instruction targets: reads instructions (evidence: `README.md`)
- User → Installer workflow: requests removal
