Skip to main content

Metagit-ai multi-repo management tool

Project description

Metagit

Metagit gives you situational awareness across Git repositories. It helps multi-repo projects feel manageable by keeping stack details, generated artifacts, dependencies, and related metadata in one place.

About

This tool works well for scenarios like:

  1. At-a-glance view of a project's technical stacks, languages, external dependencies, and generated artifacts.
  2. Switching between many Git projects during the day without losing context.
  3. Isolating outside dependencies that weaken the security and dependability of your software delivery pipelines.
  4. Automated documentation of a code's provenance.
  5. Helping new contributors get from onboarding to first commit faster.

Metagit is designed for developers, SREs, and AI agents who work across connected repositories. It tracks the dependencies and project relationships that are easy to miss when you only look at one repo at a time.

Audience

This tool targets:

  • DevOps Engineers
  • Polyglot developers
  • New team members
  • Project Managers
  • SREs
  • Solution Engineers
  • AI Agents (more to come!)

Metagit is NOT...

...an SBOM tool

SBOM output is often thousands of lines and includes full transitive dependency trees. That level of detail is usually too heavy for day-to-day situational awareness and agent context. Metagit may read SBOM manifests as an input in the future, but it is not trying to replace SBOM tooling.

Metagit uses common project files (for example go.mod, package.json, and requirements.txt) for detection and validation boundaries. These are used to identify stack composition, not to provide exhaustive version intelligence.

...a Git client

Despite the name, this still relies on Git and your existing hosting platform.

...a full project packer

Metagit intentionally focuses on the highest-value project signals. It does not package full repositories. If you need full-project packing, use repomix.

Why brevity?

One of the core goals is reducing cognitive load when understanding project relationships. A practical side effect is lower token usage for automated AI workflows.

How It Works

Metagit stores project configuration metadata in .metagit.yml inside the repository. That file follows a schema that the CLI can validate and read.

If you use Metagit for dozens of repositories (an umbrella workspace), you can edit the config manually or refresh it with heuristics and AI-assisted workflows.

Modes

Metagit supports several operating modes:

Workspace Mode

This is the first planned open-source CLI mode.

In this mode, you group related repositories into one workspace that you can open in VS Code or access individually from the terminal.

AKA Multi-repo as Monorepo

You use one top-level umbrella project with a single metagit definition file that tracks related repositories and local target folders. You can then sync that workspace locally.

The metagit configuration file is committed to version control as its own project artifact.

Managed repo lookup: Use metagit search / metagit find for quick CLI lookup of repos declared in .metagit.yml (with optional tags and JSON output). MCP clients can call metagit_repo_search, and metagit api serve exposes the same search and resolve behavior over a small local JSON HTTP API for agents and scripts.

This mode is useful for:

  • Creating umbrella projects for new team members of a multi-repo project
  • Individual power users that need to quickly pivot between several project repositories that comprise a larger team effort
  • Keeping loosely coupled Git projects grouped without relying on submodules

Metadata Mode

This mode uses the same config file as workspace mode, with additional metadata such as primary language, frameworks, and other context you want available when entering a repo.

Configuring this by hand for one project is simple. Doing it across dozens or thousands of repos is not. Metagit uses detection heuristics to automate as much as possible and can use AI workflows where deterministic code is not enough.

Note: AI-assisted detection should be monitored and converted into deterministic logic over time.

In this mode, Metagit helps answer questions like:

  • What other projects are related to this project?
  • What application and development stacks does this project use?
  • What external dependencies exist for this project?
  • What artifacts does this project create?
  • What branch strategy is employed?
  • What version strategy is employed?

External dependencies are a common source of pipeline instability.

Install

Global CLI install (recommended)

Use uv tool to install Metagit globally:

uv tool install metagit-cli

WARNING Use metagit-cli as the package name on PyPI. The metagit package name belongs to a different project!

Upgrade later with:

uv tool install -U metagit-cli

Local first-run

Inside any Git repository:

metagit init

That creates .metagit.yml and updates .gitignore.

Skills

Metagit includes local skills under skills/ you can clone into your skills folders for various agents.

Documentation

For installation guidance, detailed usage, including full CLI command surface, local MCP runtime setup, API-oriented flows, and advanced examples, use the documentation site:

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metagit_cli-0.4.0.tar.gz (701.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metagit_cli-0.4.0-py3-none-any.whl (520.5 kB view details)

Uploaded Python 3

File details

Details for the file metagit_cli-0.4.0.tar.gz.

File metadata

  • Download URL: metagit_cli-0.4.0.tar.gz
  • Upload date:
  • Size: 701.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for metagit_cli-0.4.0.tar.gz
Algorithm Hash digest
SHA256 11fe7c1e69330337592e85228d73ec6febf856d19af8a5f5a61473f614f8d3c8
MD5 4695658b3c2e7daacdcecf2cda62858f
BLAKE2b-256 998108ebc30b1ef307af4d69039ff33e5d0620a107df55253ed6b7a3b0cfe2d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for metagit_cli-0.4.0.tar.gz:

Publisher: release.yaml on metagit-ai/metagit-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file metagit_cli-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: metagit_cli-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 520.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for metagit_cli-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f387029521652d02ff68aa624647c6308270638c43aa616659ea0363240bb851
MD5 cc854d393b676a9b9cbd838a88136f1d
BLAKE2b-256 ca4a21dd1c18fbb44323882d3a16f0cd8e6e9537486b44b48ea62007d3666f75

See more details on using hashes here.

Provenance

The following attestation bundles were made for metagit_cli-0.4.0-py3-none-any.whl:

Publisher: release.yaml on metagit-ai/metagit-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page