Skip to main content

Pair command plugin for mngr - continuous file sync between agent and local directory

Project description

imbue-mngr-pair

Continuous file synchronization between an agent and your local directory.

A plugin for mngr that adds the mngr pair command. Launch with mngr pair <agent>.

Overview

mngr pair watches for file changes on both sides and syncs them in real-time using unison. If both directories are git repositories, the command first synchronizes git state (branches and commits) before starting continuous file sync.

This is useful for iterative workflows where you want to edit alongside an agent, reviewing and modifying its work as it happens.

Requirements

  • unison (file synchronization tool)
    • macOS: brew install unison and brew install autozimu/formulas/unison-fsmonitor
    • Linux: sudo apt-get install unison (inotify provides file watching)

Usage

# Basic pairing with an agent
mngr pair my-agent

# Pair to a specific local directory
mngr pair my-agent --target ./local-dir

# One-way sync (agent to local only)
mngr pair my-agent --sync-direction=forward

# One-way sync (local to agent only)
mngr pair my-agent --sync-direction=reverse

# Prefer source files on conflicts
mngr pair my-agent --conflict=source

# Filter to specific files
mngr pair my-agent --include "*.py" --exclude "__pycache__/*"

# Pair a subdirectory of the agent
mngr pair my-agent:/subdir --target ./local-dir

# Skip the git requirement
mngr pair my-agent --no-require-git

Options

Sync behavior

  • --sync-direction MODE -- both (bidirectional, default), forward (agent to local), reverse (local to agent)
  • --conflict MODE -- Conflict resolution for bidirectional sync: newer (most recent mtime, default), source, target
  • --include PATTERN / --exclude PATTERN -- Glob patterns for selective sync (repeatable). .git is always excluded.

Git handling

  • --require-git / --no-require-git -- Require both sides to be git repos (default: enabled)
  • --uncommitted-changes MODE -- How to handle uncommitted changes during initial git sync: stash, clobber, merge, fail (default)

Press Ctrl+C to stop the sync.

Limitations

  • Only local agents are supported (remote agents not yet implemented)
  • Clock skew between machines can affect the newer conflict mode

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

imbue_mngr_pair-0.2.5.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

imbue_mngr_pair-0.2.5-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file imbue_mngr_pair-0.2.5.tar.gz.

File metadata

  • Download URL: imbue_mngr_pair-0.2.5.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for imbue_mngr_pair-0.2.5.tar.gz
Algorithm Hash digest
SHA256 d9cf6b58728bdf31f6e5d239af15225fb6061b116ef3553c0e80987926d67b1d
MD5 fd70635a61b81667395f35bd850d2122
BLAKE2b-256 71d09ff685862e0aad096fb2c58a3dbd30f87fb5f766dc79e383cfbdcaf95fa6

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbue_mngr_pair-0.2.5.tar.gz:

Publisher: publish.yml on imbue-ai/mngr

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

File details

Details for the file imbue_mngr_pair-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: imbue_mngr_pair-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for imbue_mngr_pair-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8c2f95df7e1de3fe8ac8f56e5f6b8e7a6dc740ca2ce9f3b0d23d58f214461eed
MD5 8445a5f94cd6f47340451cd5da8d9064
BLAKE2b-256 47c042eacf1f46b07a836686b01a3ecb9387af9a26c5d312376f141ee7e582ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbue_mngr_pair-0.2.5-py3-none-any.whl:

Publisher: publish.yml on imbue-ai/mngr

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