# filiposakkq/scar-cp2077 architecture

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

- Interactive diagram: https://gitdiagram.com/filiposakkq/scar-cp2077
- Repository: https://github.com/filiposakkq/scar-cp2077

## Overview

S.C.A.R. is an early-development Cyberpunk 2077 mod that adds an autonomous Blackwall-linked AI to the FERAL cyberdeck, with a GRAFT chip as an alternative host. The principal workflow is in-combat autonomous hacking: S.C.A.R. selects a threat, spends its own RAM, and applies hacks and follow-ups; marks, Parasite, Fragments, and Blackwall Bleed extend that interaction. Separate in-game surfaces expose status, perks, settings, and hack feedback. The README documents these capabilities and maps their modules, but source excerpts do not include the mod runtime, so relationships below reflect documented behavior rather than inspected calls.

Main entry points: [`src/r6/scripts/SCAR/SCAR.reds`](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/SCAR.reds) (S.C.A.R. Core), [`src/r6/scripts/SCAR/AutoHack.reds`](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/AutoHack.reds) (Auto-hacks), [`src/r6/scripts/SCAR/Bleed.reds`](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Bleed.reds) (Bleed and Breach), [`src/r6/scripts/SCAR/Fragments.reds`](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Fragments.reds) (Fragment Rewards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_combat["Autonomous Combat"]
  node_scar_core["S.C.A.R. Core<br/>[SCAR.reds]"]
  node_autohack["Auto-hacks<br/>[AutoHack.reds]"]
  node_perk_fx["Perk Effects<br/>[PerkFx.reds]"]
end

subgraph group_blackwall["Blackwall Systems"]
  node_fragments["Fragment Rewards<br/>[Fragments.reds]"]
  node_bleed["Bleed and Breach<br/>[Bleed.reds]"]
end

subgraph group_player_ui["Player Interface"]
  node_ram_hud["RAM HUD<br/>[Hud.reds]"]
  node_hack_panel["Hack Panel<br/>[Panel.reds]"]
  node_hack_feed["Hack Announcements<br/>[Feed.reds]"]
  node_tooltip["Deck Tooltips<br/>[Tooltip.reds]"]
  node_perk_data["Perk Rules<br/>[Perks.reds]"]
  node_perk_tree["Perk Tree<br/>[PerkTree.reds]"]
  node_status_page["Status Page<br/>[Status.reds]"]
  node_settings["Mod Settings<br/>[Settings.reds]"]
end

subgraph group_content["Game Content"]
  node_deck_records["Deck and GRAFT<br/>[feral_deck.yaml]"]
  node_graft_record["GRAFT Chip<br/>[graft_chip.yaml]"]
  node_mark_records["Mark Records<br/>[mark.yaml]"]
  node_fragment_record["Fragment Item<br/>[fragment.yaml]"]
  node_blackwall_effects["Blackwall Effects<br/>[blackwall.yaml]"]
  node_burn_input["Burn Key<br/>[scar.xml]"]
  node_sound_assets["Sound Assets<br/>[SCAR.yml]"]
  node_eye_icon["Enemy Eye Icon<br/>[SCAR.archive]"]
end

node_player(("Player"))
node_game["Cyberpunk 2077"]

node_player -->|"plays in"| node_game
node_scar_core -->|"runs auto-hacks"| node_autohack
node_autohack -->|"targets and hacks"| node_game
node_scar_core -->|"uses deck tiers"| node_deck_records
node_scar_core -->|"supports chip host"| node_graft_record
node_scar_core -->|"marks enemies"| node_mark_records
node_scar_core -->|"shows own RAM"| node_ram_hud
node_scar_core -->|"shows hack state"| node_hack_panel
node_scar_core -->|"announces hacks"| node_hack_feed
node_player -->|"opens perk page"| node_perk_tree
node_perk_tree -->|"uses perk rules"| node_perk_data
node_perk_data -->|"enables effects"| node_perk_fx
node_player -->|"views status"| node_status_page
node_autohack -->|"rewards marked kills"| node_fragments
node_fragments -->|"awards item"| node_fragment_record
node_autohack -->|"raises Bleed"| node_bleed
node_bleed -->|"applies stages"| node_blackwall_effects
node_player -->|"holds Burn key"| node_burn_input
node_burn_input -->|"triggers Burn"| node_bleed
node_player -->|"configures options"| node_settings
node_player -->|"views tooltips"| node_tooltip
node_autohack -.->|"plays sounds"| node_sound_assets
node_scar_core -->|"shows enemy icon"| node_eye_icon

click node_scar_core "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/SCAR.reds"
click node_autohack "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/AutoHack.reds"
click node_deck_records "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/tweaks/SCAR/feral_deck.yaml"
click node_graft_record "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/tweaks/SCAR/graft_chip.yaml"
click node_mark_records "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/tweaks/SCAR/mark.yaml"
click node_ram_hud "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Hud.reds"
click node_hack_panel "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Panel.reds"
click node_hack_feed "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Feed.reds"
click node_tooltip "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Tooltip.reds"
click node_perk_data "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Perks.reds"
click node_perk_fx "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/PerkFx.reds"
click node_perk_tree "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/PerkTree.reds"
click node_status_page "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Status.reds"
click node_fragments "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Fragments.reds"
click node_fragment_record "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/tweaks/SCAR/fragment.yaml"
click node_bleed "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Bleed.reds"
click node_blackwall_effects "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/tweaks/SCAR/blackwall.yaml"
click node_settings "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Settings.reds"
click node_burn_input "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/input/scar.xml"
click node_sound_assets "https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/audioware/SCAR/SCAR.yml"
click node_eye_icon "https://github.com/filiposakkq/scar-cp2077/blob/main/src/archive/pc/mod/SCAR.archive"

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_scar_core,node_autohack,node_perk_fx toneBlue
class node_fragments,node_bleed toneAmber
class node_ram_hud,node_hack_panel,node_hack_feed,node_tooltip,node_perk_data,node_perk_tree,node_status_page,node_settings toneMint
class node_deck_records,node_graft_record,node_mark_records,node_fragment_record,node_blackwall_effects,node_burn_input,node_sound_assets,node_eye_icon toneRose
class node_player,node_game toneIndigo
```

## Components

### Autonomous Combat

- [S.C.A.R. Core](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/SCAR.reds): `src/r6/scripts/SCAR/SCAR.reds`
- [Auto-hacks](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/AutoHack.reds): `src/r6/scripts/SCAR/AutoHack.reds`
- [Perk Effects](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/PerkFx.reds): `src/r6/scripts/SCAR/PerkFx.reds`

### Blackwall Systems

- [Fragment Rewards](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Fragments.reds): `src/r6/scripts/SCAR/Fragments.reds`
- [Bleed and Breach](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Bleed.reds): `src/r6/scripts/SCAR/Bleed.reds`

### Player Interface

- [RAM HUD](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Hud.reds): `src/r6/scripts/SCAR/Hud.reds`
- [Hack Panel](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Panel.reds): `src/r6/scripts/SCAR/Panel.reds`
- [Hack Announcements](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Feed.reds): `src/r6/scripts/SCAR/Feed.reds`
- [Deck Tooltips](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Tooltip.reds): `src/r6/scripts/SCAR/Tooltip.reds`
- [Perk Rules](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Perks.reds): `src/r6/scripts/SCAR/Perks.reds`
- [Perk Tree](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/PerkTree.reds): `src/r6/scripts/SCAR/PerkTree.reds`
- [Status Page](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Status.reds): `src/r6/scripts/SCAR/Status.reds`
- [Mod Settings](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/scripts/SCAR/Settings.reds): `src/r6/scripts/SCAR/Settings.reds`

### Game Content

- [Deck and GRAFT](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/tweaks/SCAR/feral_deck.yaml): `src/r6/tweaks/SCAR/feral_deck.yaml`
- [GRAFT Chip](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/tweaks/SCAR/graft_chip.yaml): `src/r6/tweaks/SCAR/graft_chip.yaml`
- [Mark Records](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/tweaks/SCAR/mark.yaml): `src/r6/tweaks/SCAR/mark.yaml`
- [Fragment Item](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/tweaks/SCAR/fragment.yaml): `src/r6/tweaks/SCAR/fragment.yaml`
- [Blackwall Effects](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/tweaks/SCAR/blackwall.yaml): `src/r6/tweaks/SCAR/blackwall.yaml`
- [Burn Key](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/input/scar.xml): `src/r6/input/scar.xml`
- [Sound Assets](https://github.com/filiposakkq/scar-cp2077/blob/main/src/r6/audioware/SCAR/SCAR.yml): `src/r6/audioware/SCAR/SCAR.yml`
- [Enemy Eye Icon](https://github.com/filiposakkq/scar-cp2077/blob/main/src/archive/pc/mod/SCAR.archive): `src/archive/pc/mod/SCAR.archive`

### Other components

- **Player**
- **Cyberpunk 2077**

## Connections

- Player → Cyberpunk 2077: plays in (evidence: `README.md`)
- S.C.A.R. Core → Auto-hacks: runs auto-hacks (evidence: `README.md`)
- Auto-hacks → Cyberpunk 2077: targets and hacks (evidence: `README.md`)
- S.C.A.R. Core → Deck and GRAFT: uses deck tiers (evidence: `README.md`)
- S.C.A.R. Core → GRAFT Chip: supports chip host (evidence: `README.md`)
- S.C.A.R. Core → Mark Records: marks enemies (evidence: `README.md`)
- S.C.A.R. Core → RAM HUD: shows own RAM (evidence: `README.md`)
- S.C.A.R. Core → Hack Panel: shows hack state (evidence: `README.md`)
- S.C.A.R. Core → Hack Announcements: announces hacks (evidence: `README.md`)
- Player → Perk Tree: opens perk page (evidence: `README.md`)
- Perk Tree → Perk Rules: uses perk rules (evidence: `README.md`)
- Perk Rules → Perk Effects: enables effects (evidence: `README.md`)
- Player → Status Page: views status (evidence: `README.md`)
- Auto-hacks → Fragment Rewards: rewards marked kills (evidence: `README.md`)
- Fragment Rewards → Fragment Item: awards item (evidence: `README.md`)
- Auto-hacks → Bleed and Breach: raises Bleed (evidence: `README.md`)
- Bleed and Breach → Blackwall Effects: applies stages (evidence: `README.md`)
- Player → Burn Key: holds Burn key (evidence: `README.md`)
- Burn Key → Bleed and Breach: triggers Burn (evidence: `README.md`)
- Player → Mod Settings: configures options (evidence: `README.md`)
- Player → Deck Tooltips: views tooltips (evidence: `README.md`)
- Auto-hacks → Sound Assets: plays sounds (evidence: `README.md`)
- S.C.A.R. Core → Enemy Eye Icon: shows enemy icon (evidence: `README.md`)
