# jiaxiaogang/he architecture

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

- Interactive diagram: https://gitdiagram.com/jiaxiaogang/he
- Repository: https://github.com/jiaxiaogang/he

## Overview

he4o is an iOS-oriented embodied-AI system intended to learn and act in a changing environment. Its documented loop takes sensory input, recognizes and learns network-based representations, manages needs and plans, chooses and emits behavior, then uses feedback for further learning. The graph preserves major documented stages and vision capability. Most implementation files were not sampled, so documented README relationships are cited there; the graph does not infer calls between unsampled modules.

Main entry points: [`SMG_NothingIsAll/AIFoundation/AINet/AINet.h`](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AINet/AINet.h) (Knowledge network), [`SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCRecognition/TCRecognition.h`](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCRecognition/TCRecognition.h) (Recognition), [`SMG_NothingIsAll/AIFoundation/AIInput/AIInput.h`](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIInput/AIInput.h) (Sensory input), [`SMG_NothingIsAll/CortexAlgorithms/Vision/AIVisionAlgs.h`](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/CortexAlgorithms/Vision/AIVisionAlgs.h) (Vision algorithms)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Experience"]
  node_input["Sensory input<br/>[AIInput.h]"]
  node_vision["Vision algorithms<br/>[AIVisionAlgs.h]"]
  node_recognition["Recognition<br/>[TCRecognition.h]"]
  node_shortmatch["Short-term match"]
end

subgraph group_knowledge["Knowledge Network"]
  node_network["Knowledge network<br/>[AINet.h]"]
  node_feature_nodes["Feature nodes<br/>[AIFeatureNode.h]"]
  node_abstraction["Abstraction builders<br/>[AIAbsFoManager.h]"]
  node_concepts["Concept builders<br/>[AIAlgNodeManager.h]"]
end

subgraph group_thinking["Thinking Control"]
  node_demand["Demand manager<br/>[DemandManager.h]"]
  node_planning["Planning<br/>[TCPlan.h]"]
  node_solution["Problem solving<br/>[TCSolution.h]"]
  node_decision["Decision control"]
end

subgraph group_action["Action and Learning"]
  node_output["Behavior output<br/>[Output.h]"]
  node_feedback["Feedback<br/>[TCFeedback.h]"]
  node_learning["Learning and transfer<br/>[TCLearning.h]"]
end

node_environment(("World / user"))

node_environment -->|"provides input"| node_input
node_input -->|"feeds perception"| node_recognition
node_input -->|"supports vision"| node_vision
node_vision -->|"supports recognition"| node_recognition
node_recognition -->|"matches input"| node_shortmatch
node_recognition -->|"forms representations"| node_network
node_network -->|"represents features"| node_feature_nodes
node_network -->|"builds abstractions"| node_abstraction
node_network -->|"builds concepts"| node_concepts
node_shortmatch -->|"informs tasks"| node_demand
node_demand -->|"supports planning"| node_planning
node_planning -->|"seeks solutions"| node_solution
node_solution -->|"supports decisions"| node_decision
node_decision -->|"selects behavior"| node_output
node_output -->|"acts on world"| node_environment
node_environment -->|"provides outcomes"| node_feedback
node_feedback -->|"guides learning"| node_learning
node_learning -->|"evolves knowledge"| node_network

click node_input "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIInput/AIInput.h"
click node_vision "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/CortexAlgorithms/Vision/AIVisionAlgs.h"
click node_recognition "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCRecognition/TCRecognition.h"
click node_shortmatch "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/In/Model/ShortMatchManager.h"
click node_network "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AINet/AINet.h"
click node_feature_nodes "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AINet/AINode/AIFeatureNode.h"
click node_abstraction "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AINet/AIAbsFoManager/AIAbsFoManager.h"
click node_concepts "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AINet/AIAlgNodeManager/AIAlgNodeManager.h"
click node_demand "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCDemand/Model/DemandManager.h"
click node_planning "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCPlan/TCPlan.h"
click node_solution "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCSolution/TCSolution.h"
click node_decision "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/AIThinkingControl.h"
click node_output "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIOutput/Output.h"
click node_feedback "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCFeedback/TCFeedback.h"
click node_learning "https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCLearning/TCLearning.h"

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_input,node_vision,node_recognition,node_shortmatch,node_environment toneBlue
class node_network,node_feature_nodes,node_abstraction,node_concepts toneAmber
class node_demand,node_planning,node_solution,node_decision toneMint
class node_output,node_feedback,node_learning toneRose
```

## Components

### Experience

- [Sensory input](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIInput/AIInput.h): `SMG_NothingIsAll/AIFoundation/AIInput/AIInput.h`
- [Vision algorithms](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/CortexAlgorithms/Vision/AIVisionAlgs.h): `SMG_NothingIsAll/CortexAlgorithms/Vision/AIVisionAlgs.h`
- [Recognition](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCRecognition/TCRecognition.h): `SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCRecognition/TCRecognition.h`
- [Short-term match](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/In/Model/ShortMatchManager.h): `SMG_NothingIsAll/AIFoundation/AIThinkingControl/In/Model/ShortMatchManager.h`

### Knowledge Network

- [Knowledge network](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AINet/AINet.h): `SMG_NothingIsAll/AIFoundation/AINet/AINet.h`
- [Feature nodes](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AINet/AINode/AIFeatureNode.h): `SMG_NothingIsAll/AIFoundation/AINet/AINode/AIFeatureNode.h`
- [Abstraction builders](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AINet/AIAbsFoManager/AIAbsFoManager.h): `SMG_NothingIsAll/AIFoundation/AINet/AIAbsFoManager/AIAbsFoManager.h`
- [Concept builders](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AINet/AIAlgNodeManager/AIAlgNodeManager.h): `SMG_NothingIsAll/AIFoundation/AINet/AIAlgNodeManager/AIAlgNodeManager.h`

### Thinking Control

- [Demand manager](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCDemand/Model/DemandManager.h): `SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCDemand/Model/DemandManager.h`
- [Planning](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCPlan/TCPlan.h): `SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCPlan/TCPlan.h`
- [Problem solving](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCSolution/TCSolution.h): `SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCSolution/TCSolution.h`
- [Decision control](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/AIThinkingControl.h): `SMG_NothingIsAll/AIFoundation/AIThinkingControl/AIThinkingControl.h`

### Action and Learning

- [Behavior output](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIOutput/Output.h): `SMG_NothingIsAll/AIFoundation/AIOutput/Output.h`
- [Feedback](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCFeedback/TCFeedback.h): `SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCFeedback/TCFeedback.h`
- [Learning and transfer](https://github.com/jiaxiaogang/he/blob/master/SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCLearning/TCLearning.h): `SMG_NothingIsAll/AIFoundation/AIThinkingControl/TCLearning/TCLearning.h`

### Other components

- **World / user**

## Connections

- World / user → Sensory input: provides input (evidence: `README.md`)
- Sensory input → Recognition: feeds perception (evidence: `README.md`)
- Sensory input → Vision algorithms: supports vision (evidence: `README.md`)
- Vision algorithms → Recognition: supports recognition (evidence: `README.md`)
- Recognition → Short-term match: matches input (evidence: `README.md`)
- Recognition → Knowledge network: forms representations (evidence: `README.md`)
- Knowledge network → Feature nodes: represents features (evidence: `README.md`)
- Knowledge network → Abstraction builders: builds abstractions (evidence: `README.md`)
- Knowledge network → Concept builders: builds concepts (evidence: `README.md`)
- Short-term match → Demand manager: informs tasks (evidence: `README.md`)
- Demand manager → Planning: supports planning (evidence: `README.md`)
- Planning → Problem solving: seeks solutions (evidence: `README.md`)
- Problem solving → Decision control: supports decisions (evidence: `README.md`)
- Decision control → Behavior output: selects behavior (evidence: `README.md`)
- Behavior output → World / user: acts on world (evidence: `README.md`)
- World / user → Feedback: provides outcomes (evidence: `README.md`)
- Feedback → Learning and transfer: guides learning (evidence: `README.md`)
- Learning and transfer → Knowledge network: evolves knowledge (evidence: `README.md`)
