Skip to main content

CI/CD Integration

Batho's CI/CD integrations let you automatically build, patch, and store code graph indexes on every commit. This enables fleet-scale repository indexing and gives AI agents instant access to pre-built code graphs without local parsing.

What It Solves​

  • No local indexing: AI agents download a pre-built .batho transport artifact instead of parsing the entire repository.
  • Incremental updates: Only changed files are re-indexed, keeping CI cycles fast.
  • Cross-platform: Works on both GitHub Actions and GitLab CI.
  • Zero-config for consumers: Drop a starter workflow into your repo and go.

Architecture Overview​

Integration Options​

ApproachBest ForFile
GitHub Fleet IndexerRepositories you controlgithub-batho.yaml
GitLab CI Fleet IndexerGitLab-hosted reposgitlab-batho.yaml
Composite ActionReusable, configurable indexingaction.yml
Reusable WorkflowOne-liner consumer integrationbatho-index.yml
Starter TemplateQuick copy-paste setupstarter-batho.yml

Storage Format​

Batho stores the code graph as Apache Arrow IPC files (bsg/current/*.ipc) — plain, memory-mappable files with zero decompression overhead. The transport artifact (artifact_*.batho) is a ZIP of zstd-compressed IPC files, produced by batho export and consumed by batho load.

Next Steps​