# chpark-ml/agent-harness architecture

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

- Interactive diagram: https://gitdiagram.com/chpark-ml/agent-harness
- Repository: https://github.com/chpark-ml/agent-harness

## Overview

agent-harness packages Claude Code guards, skills, commands, role/language profiles, and project-scoped rules behind a reversible installer. The documented setup flow is: a user runs the installer to install selected plugins and the `harnessctl` command, then runs `harnessctl init` in a project to add team-owned rules and settings. At session start, Claude Code loads plugins; hooks and skills provide machine-wide behavior, while project rules travel with the repository. The README documents the profile capabilities; source excerpts were limited to a benchmark script, so component-level runtime wiring is not inferred beyond those documented relationships.

Main entry points: [`install.sh`](https://github.com/chpark-ml/agent-harness/blob/main/install.sh) (Installer), [`plugins/harness-core/bin/harnessctl`](https://github.com/chpark-ml/agent-harness/blob/main/plugins/harness-core/bin/harnessctl) (Harness CLI), [`plugins/harness-core/hooks`](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-core/hooks) (Guard hooks), [`plugins/harness-core/skills`](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-core/skills) (Core skills)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Setup and scope"]
  node_installer["Installer<br/>[install.sh]"]
  node_ctl["Harness CLI"]
  node_project["Project files"]
end

subgraph group_core["Core harness"]
  node_hooks["Guard hooks"]
  node_core_skills["Core skills"]
  node_core_commands["Core commands"]
  node_core_rules["Core rules"]
end

subgraph group_profiles["Role profiles"]
  node_dev["Development workflows"]
  node_research["Research workflows"]
  node_slides["Presentation workflows"]
  node_frontend["Frontend profile"]
end

subgraph group_language["Language profiles"]
  node_python["Python profile"]
  node_typescript["TypeScript profile"]
  node_cpp["C++ profile"]
  node_csharp["C&#35; profile"]
  node_kotlin["Kotlin profile"]
  node_lua["Lua profile"]
  node_swift["Swift profile"]
end

node_user(("User"))
node_claude(("Claude Code"))

node_user -->|"runs"| node_installer
node_installer -->|"installs plugins"| node_claude
node_installer -->|"runs setup"| node_ctl
node_user -->|"initializes project"| node_ctl
node_ctl -->|"writes project assets"| node_project
node_installer -->|"installs guards"| node_hooks
node_installer -->|"installs skills"| node_core_skills
node_installer -->|"installs commands"| node_core_commands
node_ctl -->|"installs rules"| node_core_rules
node_claude -->|"loads at session"| node_hooks
node_claude -->|"loads at session"| node_core_skills
node_installer -->|"selects profile"| node_dev
node_installer -->|"selects profile"| node_research
node_installer -->|"selects profile"| node_slides
node_installer -->|"selects profile"| node_frontend
node_installer -->|"selects profile"| node_python
node_installer -->|"selects profile"| node_typescript
node_installer -->|"selects profile"| node_cpp
node_installer -->|"selects profile"| node_csharp
node_installer -->|"selects profile"| node_kotlin
node_installer -->|"selects profile"| node_lua
node_installer -->|"selects profile"| node_swift

click node_installer "https://github.com/chpark-ml/agent-harness/blob/main/install.sh"
click node_ctl "https://github.com/chpark-ml/agent-harness/blob/main/plugins/harness-core/bin/harnessctl"
click node_hooks "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-core/hooks"
click node_core_skills "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-core/skills"
click node_core_commands "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-core/commands"
click node_core_rules "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-core/declarative/rules/core"
click node_dev "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-dev/skills"
click node_research "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-research/skills"
click node_slides "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-slides/skills"
click node_frontend "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-frontend"
click node_python "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-python"
click node_typescript "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-typescript"
click node_cpp "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-cpp"
click node_csharp "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-csharp"
click node_kotlin "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-kotlin"
click node_lua "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-lua"
click node_swift "https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-swift"

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_installer,node_ctl,node_project,node_user toneBlue
class node_hooks,node_core_skills,node_core_commands,node_core_rules toneAmber
class node_dev,node_research,node_slides,node_frontend toneMint
class node_python,node_typescript,node_cpp,node_csharp,node_kotlin,node_lua,node_swift toneRose
class node_claude toneIndigo
```

## Components

### Setup and scope

- [Installer](https://github.com/chpark-ml/agent-harness/blob/main/install.sh): `install.sh`
- [Harness CLI](https://github.com/chpark-ml/agent-harness/blob/main/plugins/harness-core/bin/harnessctl): `plugins/harness-core/bin/harnessctl`
- **Project files**

### Core harness

- [Guard hooks](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-core/hooks): `plugins/harness-core/hooks`
- [Core skills](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-core/skills): `plugins/harness-core/skills`
- [Core commands](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-core/commands): `plugins/harness-core/commands`
- [Core rules](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-core/declarative/rules/core): `plugins/harness-core/declarative/rules/core`

### Role profiles

- [Development workflows](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-dev/skills): `plugins/harness-dev/skills`
- [Research workflows](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-research/skills): `plugins/harness-research/skills`
- [Presentation workflows](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-slides/skills): `plugins/harness-slides/skills`
- [Frontend profile](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-frontend): `plugins/harness-frontend`

### Language profiles

- [Python profile](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-python): `plugins/harness-python`
- [TypeScript profile](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-typescript): `plugins/harness-typescript`
- [C++ profile](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-cpp): `plugins/harness-cpp`
- [C# profile](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-csharp): `plugins/harness-csharp`
- [Kotlin profile](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-kotlin): `plugins/harness-kotlin`
- [Lua profile](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-lua): `plugins/harness-lua`
- [Swift profile](https://github.com/chpark-ml/agent-harness/tree/main/plugins/harness-swift): `plugins/harness-swift`

### Other components

- **User**
- **Claude Code**

## Connections

- User → Installer: runs (evidence: `README.md`)
- Installer → Claude Code: installs plugins (evidence: `README.md`)
- Installer → Harness CLI: runs setup (evidence: `README.md`)
- User → Harness CLI: initializes project (evidence: `README.md`)
- Harness CLI → Project files: writes project assets (evidence: `README.md`)
- Installer → Guard hooks: installs guards (evidence: `README.md`)
- Installer → Core skills: installs skills (evidence: `README.md`)
- Installer → Core commands: installs commands (evidence: `README.md`)
- Harness CLI → Core rules: installs rules (evidence: `README.md`)
- Claude Code → Guard hooks: loads at session (evidence: `README.md`)
- Claude Code → Core skills: loads at session (evidence: `README.md`)
- Installer → Development workflows: selects profile (evidence: `README.md`)
- Installer → Research workflows: selects profile (evidence: `README.md`)
- Installer → Presentation workflows: selects profile (evidence: `README.md`)
- Installer → Frontend profile: selects profile (evidence: `README.md`)
- Installer → Python profile: selects profile (evidence: `README.md`)
- Installer → TypeScript profile: selects profile (evidence: `README.md`)
- Installer → C++ profile: selects profile (evidence: `README.md`)
- Installer → C# profile: selects profile (evidence: `README.md`)
- Installer → Kotlin profile: selects profile (evidence: `README.md`)
- Installer → Lua profile: selects profile (evidence: `README.md`)
- Installer → Swift profile: selects profile (evidence: `README.md`)
