Pair command plugin for mng - continuous file sync between agent and local directory
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
mng-pair
Continuous file synchronization between an agent and your local directory.
A plugin for mng that adds the mng pair command. Launch with mng pair <agent>.
Overview
mng 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 unisonandbrew install autozimu/formulas/unison-fsmonitor - Linux:
sudo apt-get install unison(inotify provides file watching)
- macOS:
Usage
# Basic pairing with an agent
mng pair my-agent
# Pair to a specific local directory
mng pair my-agent --target ./local-dir
# One-way sync (agent to local only)
mng pair my-agent --sync-direction=forward
# One-way sync (local to agent only)
mng pair my-agent --sync-direction=reverse
# Prefer source files on conflicts
mng pair my-agent --conflict=source
# Filter to specific files
mng pair my-agent --include "*.py" --exclude "__pycache__/*"
# Pair a subdirectory of the agent
mng pair my-agent:/subdir --target ./local-dir
# Skip the git requirement
mng 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)..gitis 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
newerconflict 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mng_pair-0.1.4.tar.gz.
File metadata
- Download URL: mng_pair-0.1.4.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2e9ed2ac7fcaf379bc42d6b0abc95a7463848b7eb0b741be5a8344a17e7dff8
|
|
| MD5 |
97b1a7b5657d942874242ec5d6f9562f
|
|
| BLAKE2b-256 |
5eb848e2370d8c574561a7228076260881578f93650d73e81f8dd2e25a1c034c
|
Provenance
The following attestation bundles were made for mng_pair-0.1.4.tar.gz:
Publisher:
publish.yml on imbue-ai/mng
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mng_pair-0.1.4.tar.gz -
Subject digest:
d2e9ed2ac7fcaf379bc42d6b0abc95a7463848b7eb0b741be5a8344a17e7dff8 - Sigstore transparency entry: 1166530276
- Sigstore integration time:
-
Permalink:
imbue-ai/mng@f9bfb061a48cc8a1979f58e3c9a13301299f9b82 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/imbue-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f9bfb061a48cc8a1979f58e3c9a13301299f9b82 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mng_pair-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mng_pair-0.1.4-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a69532711eeda6e0b707c12651468f055d3cf13af2b1cdfb978f752f767db4b
|
|
| MD5 |
ff8829c422c7c90f3dedff607a8f6662
|
|
| BLAKE2b-256 |
a12a8efbabec2f8ff1eadfc1e87774e1c45a8269dac1fb6bc9e3b8c9d9267a26
|
Provenance
The following attestation bundles were made for mng_pair-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on imbue-ai/mng
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mng_pair-0.1.4-py3-none-any.whl -
Subject digest:
1a69532711eeda6e0b707c12651468f055d3cf13af2b1cdfb978f752f767db4b - Sigstore transparency entry: 1166530872
- Sigstore integration time:
-
Permalink:
imbue-ai/mng@f9bfb061a48cc8a1979f58e3c9a13301299f9b82 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/imbue-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f9bfb061a48cc8a1979f58e3c9a13301299f9b82 -
Trigger Event:
push
-
Statement type: