Start

External Repositories & Clone Management

The START project integrates with several Active Inference and computational neuroscience repositories to provide comprehensive educational resources and examples. These can be optionally cloned into src/_clones/ for local development and curriculum enhancement.

Repository Ecosystem

Core Knowledge Resources

cognitive (Active Inference Institute Knowledge Graph)

RxInferExamples.jl (Bayesian Inference Examples)

Implementation Resources

ActiveInference.jl (Julia Implementation)

pymdp (Python Active Inference)

lean_niche (Lean Theorem Proving & Verification)

template (Thin Orchestrator Research Template)

axiom (VERSES AXIOM)

Clone Management

Steps

Links

Use the Repository Manager from the main runner for a guided flow:

./run.sh
# Choose: "Repository Manager"

Automated Cloning

Use the integrated clone utility for consistent repository management:

# Core knowledge graph
uv run python src/repos/clone_repo.py --url https://github.com/ActiveInferenceInstitute/cognitive --dest src/_clones/cognitive --shallow

# Bayesian inference examples
uv run python src/repos/clone_repo.py --url https://github.com/docxology/RxInferExamples.jl --dest src/_clones/RxInferExamples.jl --shallow

# Julia Active Inference (textbook branch)
uv run python src/repos/clone_repo.py --url https://github.com/docxology/ActiveInference.jl --dest src/_clones/ActiveInference.jl --branch textbook --shallow

# Python Active Inference (textbook branch)  
uv run python src/repos/clone_repo.py --url https://github.com/docxology/pymdp --dest src/_clones/pymdp --branch textbook --shallow

# Lean theorem proving (LeanNiche)
uv run python src/repos/clone_repo.py --url https://github.com/docxology/lean_niche --dest src/_clones/lean_niche --shallow

# Research manuscript template (Thin Orchestrator)
uv run python src/repos/clone_repo.py --url https://github.com/docxology/template --dest src/_clones/template --shallow

# VERSES AXIOM
uv run python src/repos/clone_repo.py --url https://github.com/VersesTech/axiom --dest src/_clones/axiom --shallow

Manual Repository Management

# Clone with specific options
git clone --shallow-since="2023-01-01" --branch textbook https://github.com/docxology/ActiveInference.jl src/_clones/ActiveInference.jl

# Update existing clones
cd src/_clones/cognitive && git pull origin main
cd src/_clones/pymdp && git pull origin textbook

Integration with Curriculum Pipeline

Knowledge Graph Integration

Code Example Integration

Educational Resource Enhancement

Repository Structure After Cloning

src/_clones/
├── cognitive/                 # Knowledge graph and concept definitions
│   ├── content/              # Structured Active Inference content
│   └── ontologies/           # Formal concept relationships
├── RxInferExamples.jl/       # Bayesian inference examples
│   ├── notebooks/            # Jupyter notebooks with examples
│   └── scripts/              # Standalone example scripts
├── ActiveInference.jl/       # Julia Active Inference implementation
│   ├── docs/                 # Educational documentation
│   ├── examples/             # Code examples and tutorials
│   └── src/                  # Core implementation
└── pymdp/                    # Python Active Inference
    ├── notebooks/            # Educational notebooks
    ├── examples/             # Example scripts and demonstrations
    └── pymdp/                # Core Python package
└── lean_niche/               # Lean theorem proving & verification environment
    ├── src/                  # Lean and Python sources
    ├── docs/                 # Project docs and verification workflows
    └── examples/             # Example proofs and verification scripts

Usage in Curriculum Development

Content Enhancement

Technical Integration

Quality Assurance

Verification & Maintenance

Verify Clone Integrity

# Path exists and is a git repo
test -d src/_clones/cognitive/.git && echo OK

# Show remote and branch
git -C src/_clones/cognitive remote -v
git -C src/_clones/cognitive branch --show-current

Update Clones Safely

git -C src/_clones/cognitive fetch --prune
git -C src/_clones/cognitive pull --ff-only origin main

git -C src/_clones/pymdp fetch --prune
git -C src/_clones/pymdp pull --ff-only origin textbook

Re-clone When Needed

rm -rf src/_clones/ActiveInference.jl
uv run python src/repos/clone_repo.py --url https://github.com/docxology/ActiveInference.jl --dest src/_clones/ActiveInference.jl --branch textbook --shallow