Skip to content

Instantly share code, notes, and snippets.

@gwpl
Created June 5, 2025 12:36
Show Gist options
  • Save gwpl/3bd9e8f4fb715c9ab6c7ca3a251b5021 to your computer and use it in GitHub Desktop.
Save gwpl/3bd9e8f4fb715c9ab6c7ca3a251b5021 to your computer and use it in GitHub Desktop.
Branches as Inheritence Diagram for AI Agents Era!

git branches as inheritence and evoluiton diagram

Relationships between Git branches, semantically can serve similar function to "ihneritence" in programming lanugages, and updating dependency require git rebase to inherit new features.

For generating diagram of dependencies between branches use:

$ git-branches-graph --format dot|mermaid|png ... --output ...

from : https://github.com/gwpl/handy_scripts_misc/blob/master/git-branches-graph (doc in : https://github.com/gwpl/handy_scripts_misc/blob/master/git-branches-graph.README.md )

As ai-agents may "inherit" features, practices, etc. from others, or evolve based on others or evolve, e.g.

graph BT
    general[General]
    tracking[Tracking Progress in Journal]
    calculating[Calculating]
    dietician[Dietician]
    coaching[Coaching Skills]
    trajectory[Trajectory Assessments]
    gym[Gym Coach]
    
    general --> tracking
    general --> calculating
    calculating --> dietician
    general --> coaching
    calculating --> trajectory
    trajectory --> gym
    dietician --> gym
    coaching --> gym
    tracking --> gym
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment