Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

monke-tools

monke-tools gives each Session its own Git worktrees, ports, and environment values across a repo and its dependencies. It also distributes shared agent skills to Codex, Claude, Cursor, Antigravity, and custom targets.

Install

Install the latest stable release on macOS arm64 or Linux x64.

curl -fsSL https://raw.githubusercontent.com/monke-together-strong/monke-tools/main/install.sh | sh

Follow the installer's shell instructions before starting a Session. For unattended installation, custom targets, and recovery, see the installation guide.

Start a Session

In a repo with monke.yml, create a Session and review your changes. Spawn prepares the repo's worktrees, environment, and dependencies.

mt spawn banana
mt diff
mt swing '^'             # Return to the Source checkout
mt swing banana          # Return to the Session

When finished, run mt chop banana. Chop preserves local branches and deletes ignored files with the worktrees. To find Sessions eligible for removal across repos, run mt cleanup --dry-run before mt cleanup. The Session guide covers branch selection, worktree adoption, PR navigation, and cleanup recovery.

Diff delivery

mt diff opens desktop Codiff by default. Run mt diff configure to save a different adapter. With Monke See installed and configured, mt diff --adapter ms prints a browser review link for that invocation.

mt diff can use a Session's remembered base or infer one from main or master history. On either branch, mt diff shows local changes. Run mt diff --pick to choose a base or review local changes only. See mt diff --help for explicit comparisons and the Diff guide for time-based comparisons.

Use checkout resources

With resources configured in monke.yml, run these commands in a Source checkout or Session worktree.

mt setup
# Start any infrastructure required by the repo's resource modules.
mt resources acquire
mt resources exec -- <command>
mt resources release

Release keeps the checkout and its infrastructure. See resource commands for reuse and recovery.

Run post-merge after external merges

In T3 Code, create and track a PR in one command.

mt prs create --thread <thread-id> --checkout <checkout> -- \
  --base main --head <branch> --title <title> --body-file <body-file>

Use mt prs track for an existing PR. When a tracked PR merges outside its owning thread, mt prs poll asks the thread to run post-merge. If delivery fails, the poller tries to start a new thread for the PR on the first post-merge model. Run mt prs untrack <url> before merging a PR yourself. The post-merge skill describes cleanup and when verification needs a separate thread.

Configure a repo

Add monke.yml at the repo root. This example maps an assigned Session port into PORT in apps/api/.env.

apps:
  api:
    path: apps/api
    mappings:
      - port: API_PORT
        env: PORT

See the configuration reference for dependencies, env files, seed paths, and resources. For PR.md and POST_MERGE.md, see the repo configuration guide.

Agent skills

Run mt skills configure to select agents or change the saved targets. Codex, Claude, and Antigravity also receive Global agent instructions in a Managed instruction section.

To use skills from a local checkout in one project, run mt skills add inside the Consumer repo:

mt skills add ../banana-workflows --project

See the skills guide to create or adopt a global skill, import personal skills, or sync project installs to other worktrees.

Imported guidance is generated from the commit pins in monke.yml. See maintain imported guidance for restoration, complete update review, and review-cache cleanup.

Model roles

Skills and post-merge hand-offs choose models by Model role: writer, reviewer, or post-merge. mt models get <role> prints a role's models in fallback order, without providers, so a skill may run a model through any provider that serves it. To override a role, list its models under models in $(mt home)/config.yml, at most one per model family. The family is the model id's leading name, such as claude or gemini, so use canonical model ids.

version: 1
models:
  writer:
    - { provider: antigravity, model: gemini-4-neon, effort: high }
    - { provider: claudeAgent, model: claude-opus-5-5, effort: high }

provider is the T3 Code provider instance that mt prs poll uses to start a post-merge thread: antigravity, claudeAgent, or codex.

Update

mt update --check         # Check without changing the install
mt update                # Activate the latest stable release

Updating a Local tool install switches to a Release install and preserves the Source checkout. Changes to installed release guidance block updates. See the update recovery guide.

Development

Install Vite+, then run these commands from this checkout.

vp install
vpr install:local

Rerun the local install after CLI changes before testing from another repo. See repository instructions for checks, terminology, and issue tracking.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages