Skip to main content

Local-first multi-agent coordination and provenance for coding workflows

Project description

AgentMesh

Local-first multi-agent coordination and provenance for coding workflows.

AgentMesh adds deterministic coordination (claims, waits, steals), commit-linked lineage (AgentMesh-Episode trailers + weave events), and portable handoff bundles (.meshpack) on top of normal git workflows.

Install

pipx install agentmesh-core   # recommended (isolated)
# or
pip install agentmesh-core

# optional: commit witness signing (Ed25519)
pipx install "agentmesh-core[witness]"

Quick Start

cd your-repo
agentmesh init --install-hooks    # set up mesh + Claude Code hooks
agentmesh doctor                  # verify everything is wired correctly

agentmesh task start --title "Fix login timeout" \
  --claim src/auth.py --claim tests/test_auth.py

# edit + stage as normal
git add src/auth.py tests/test_auth.py

agentmesh task finish --message "Fix login timeout handling" \
  --run-tests "pytest -q tests/test_auth.py"
# ^ commits with AgentMesh-Episode trailer, emits capsule, releases claims

How It Works

When multiple AI agents (or humans) work in the same repo, AgentMesh prevents chaos:

  • Claims: agents lock files/ports/resources before editing. Conflicts are blocked, not merged.
  • Episodes: every work session gets a unique ID (ep_...) that binds claims, capsules, and commits.
  • Capsules: structured context bundles (SBAR format) for zero-ramp-up handoffs between agents.
  • Weaver: hash-chained provenance linking capsules to git commits. Every change is traceable.
  • Commit trailers: agentmesh commit injects AgentMesh-Episode: by default, and can attach signed witness trailers (AgentMesh-KeyID, AgentMesh-Witness, AgentMesh-Sig + portable witness payload chunks) when witness support + keys are present.

Optional Witness Signing

If installed with agentmesh-core[witness], you can sign commit witnesses locally:

agentmesh key generate
agentmesh commit -m "Fix timeout handling"
agentmesh witness verify HEAD

Witness verification is portable: the signed witness payload is embedded in commit trailers, so CI and other machines can verify without local sidecar state.

CI Integration

Add agentmesh-action to check lineage coverage on PRs:

# .github/workflows/lineage.yml
name: Lineage Check
on: [pull_request]

permissions:
  contents: read
  pull-requests: write

jobs:
  lineage:
    runs-on: ubuntu-latest
    steps:
      - uses: Haserjian/agentmesh-action@v1

The action posts a sticky PR comment showing commit coverage. Set require-trailers: "true" to enforce episode lineage, and verify-witness: "true" + require-witness: "true" to enforce cryptographic witness verification.

License

AgentMesh is licensed under Apache-2.0 for current and future development.

Published releases up to and including v0.7.0 remain under MIT as originally released.

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

agentmesh_core-0.8.0.tar.gz (81.5 kB view details)

Uploaded Source

Built Distribution

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

agentmesh_core-0.8.0-py3-none-any.whl (62.7 kB view details)

Uploaded Python 3

File details

Details for the file agentmesh_core-0.8.0.tar.gz.

File metadata

  • Download URL: agentmesh_core-0.8.0.tar.gz
  • Upload date:
  • Size: 81.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agentmesh_core-0.8.0.tar.gz
Algorithm Hash digest
SHA256 bf1ae6d7ec1e0895a0e2a5da83b8524c2fe4ae7f4fcecae8617953e6226ffcf5
MD5 f29382379730cec6ce67208efec00186
BLAKE2b-256 ab574b1d2e8b4914ff9a3dd708464103d08ba415db3d86905b85ff5cd068f9d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmesh_core-0.8.0.tar.gz:

Publisher: publish.yml on Haserjian/agentmesh

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

File details

Details for the file agentmesh_core-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: agentmesh_core-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 62.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agentmesh_core-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5e77b24c25a5a8aacff4be64d4ebaa152f02ac72be0a9e0d7cd1aa5e4f1d7c5
MD5 b4ed2b39b8403855fb01962669dfef5d
BLAKE2b-256 5e5611e03114a35b4be8a522e097ef8ca225a26e6956bb1d4c507a96821a6e45

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmesh_core-0.8.0-py3-none-any.whl:

Publisher: publish.yml on Haserjian/agentmesh

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