Skip to main content

LLM context transpiler that builds a synced .mira workspace view for codebases.

Project description

mira-transplier

mira-transplier turns a script or repository into a synced .mira view that is easier for coding agents and LLMs to navigate with less noise.

What MIRA builds

When you run MIRA on a folder, it generates a .mira directory with:

  • project.mira for the compact file tree and public command surface
  • GUIDE.txt for public commands plus admin commands
  • per-file chunk metadata, skeletons, and indexes
  • history baselines and runtime state for edits and managed terminals

MIRA keeps source and .mira in sync, supports history and restore, and works with regular code files, metadata-only document files, and generic 100-line chunking for unsupported text formats such as .java.

Install

pip install mira-transplier

Basic usage

Build the .mira view for the current folder:

mira .

Build a different folder:

mira path/to/project

Run a MIRA command from inside a built workspace:

mira !project
mira !list
mira !expand 12_3
mira !edit 12_3+ "new lines"

If inline text is omitted and stdin is piped, MIRA reads the piped text automatically.

You only need to run mira . once per workspace. After that, MIRA syncs source edits, chunk edits, creates, deletes, comments, and environment changes back into .mira automatically.

Main command groups

  • project navigation: !project, !explore, !expand, !find_line, !search
  • edits and history: !edit, !diff, !history, !restore
  • workspace metadata: !memory, !goals, descriptions, chunk comments
  • managed terminals: !terminals, !terminal

Admin commands

Admin commands stay in .mira/GUIDE.txt and are hidden from the public command surface.

  • !index, !index add <path>, !index remove <path>
  • !environment [path|clear|create <name>]

!environment lists detected virtual environments in the workspace by checking for activation scripts in Scripts. !environment create <name> creates a new virtual environment directly in the workspace root and configures it immediately. You can also configure a custom environment root with a full absolute path. Once configured, project.mira shows the selected environment as:

ENVIRONMENT: .venv (C:\path\to\workspace\.venv)

Chunk comments

Chunk comments are metadata, not source code. They appear in skeleton structure lines and stay attached when the commented chunk keeps the same code but moves to a different chunk ID.

  • !add_comment <chunk_id> [text]
  • !edit_comment <chunk_id> [text]
  • !delete_comment <chunk_id>

When a commented chunk is edited and its code changes, MIRA prompts to update the comment. When edited or inserted chunks do not have a comment yet, MIRA can prompt to add one.

Notes

  • folder indexing is shallow: subfolders need their own index entry
  • dotfiles are ignored by default except .gitignore
  • !create and !delete accept relative paths, leading-slash paths, and absolute workspace paths
  • !delete also accepts file IDs

Requirements

  • Python 3.10+
  • Windows is the primary tested target right now

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

mira_transplier-0.2.0.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

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

mira_transplier-0.2.0-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

Details for the file mira_transplier-0.2.0.tar.gz.

File metadata

  • Download URL: mira_transplier-0.2.0.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for mira_transplier-0.2.0.tar.gz
Algorithm Hash digest
SHA256 020c9f16c914e9eee63b08fc906ba52bd1b9c498fb7476a3d0deb779cdebd998
MD5 c1b9a660d86ebe1890a32166c4804c3c
BLAKE2b-256 e9e3fd779a417b79cdb1a81ede87769e44fe78b3290cfb29b6ecaa3419913070

See more details on using hashes here.

File details

Details for the file mira_transplier-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mira_transplier-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7afd3a5bcc37e6e4d9dd67dfbd707df03a0e17c1351cf8aee014762b2259bc62
MD5 6ee011c7f02d2f91fdb629d6ce1cfae5
BLAKE2b-256 769192b043d3f4f0dfcef772bd9f8359f9f284afaa0352ff96e7ff68ce1e5fb2

See more details on using hashes here.

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