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 unisonandbrew install autozimu/formulas/unison-fsmonitor - Linux:
sudo apt-get install unison(inotify provides file watching)
- macOS:
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)..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 imbue_mngr_pair-0.2.2.tar.gz.
File metadata
- Download URL: imbue_mngr_pair-0.2.2.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 |
3ee54639bf3b4d6e140be6b8c9b73c67a616b8fc760b7fc7112c68767a68a7eb
|
|
| MD5 |
fb12b6296ec2456300b600cf6e1c91f7
|
|
| BLAKE2b-256 |
496318402c09c71b0227f16da2769a9b12fe488f4733c940c34700f3fed4adfc
|
Provenance
The following attestation bundles were made for imbue_mngr_pair-0.2.2.tar.gz:
Publisher:
publish.yml on imbue-ai/mngr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imbue_mngr_pair-0.2.2.tar.gz -
Subject digest:
3ee54639bf3b4d6e140be6b8c9b73c67a616b8fc760b7fc7112c68767a68a7eb - Sigstore transparency entry: 1245071997
- Sigstore integration time:
-
Permalink:
imbue-ai/mngr@e8685f5af490e12dca258e7e43f6c85953ec6c37 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/imbue-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e8685f5af490e12dca258e7e43f6c85953ec6c37 -
Trigger Event:
push
-
Statement type:
File details
Details for the file imbue_mngr_pair-0.2.2-py3-none-any.whl.
File metadata
- Download URL: imbue_mngr_pair-0.2.2-py3-none-any.whl
- Upload date:
- Size: 20.0 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 |
95d57026a51a2ddece719e0887f55a14c23bf2fd726fc0ad03f66230cb1b79fb
|
|
| MD5 |
7a19508456e1bd315debce4d6bc04385
|
|
| BLAKE2b-256 |
74b729cf09bac75820930b86202c7c46eacf74c3d69c6b63f222aa1ee290abd8
|
Provenance
The following attestation bundles were made for imbue_mngr_pair-0.2.2-py3-none-any.whl:
Publisher:
publish.yml on imbue-ai/mngr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imbue_mngr_pair-0.2.2-py3-none-any.whl -
Subject digest:
95d57026a51a2ddece719e0887f55a14c23bf2fd726fc0ad03f66230cb1b79fb - Sigstore transparency entry: 1245072057
- Sigstore integration time:
-
Permalink:
imbue-ai/mngr@e8685f5af490e12dca258e7e43f6c85953ec6c37 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/imbue-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e8685f5af490e12dca258e7e43f6c85953ec6c37 -
Trigger Event:
push
-
Statement type: