Modular CLI and LLM tool engine for project operations
Project description
MIRA-ENGINE
MIRA-ENGINE is a modular Python CLI for project-aware file operations and LLM-friendly tool wrappers.
Commands
AI-facing commands:
mira helpor any unknown command prints only the visible AI-facing command list instead of trying to index a path.mira createcreates files or folders. Interactive file creation asks for the file description only afterCONTINUEor after the immediate edit flow.mira deleteremoves files or folders after confirmation, using root-style paths for root-style input and absolute paths only for absolute input.mira editreplaces selected lines in a file, with optional explore checks and targeted comment or description updates for the affected ranges.mira projectprints the project tree.mira exploreanalyzes a file, offersVIEW / EDIT / EXIT / ADD OR EDIT DESCRIPTION, and only asks for chunk comments when the full chunk range was actually viewed.mira memoryandmira planmanage.mira/memory.mdand.mira/plan.md.mira terminalruns commands through one of two persistent PowerShell-backed terminals.
Admin commands:
mira .ormira sync [path]updates the stateful index and only reprocesses changed files.mira index add <path>andmira index remove <path>manage manual include or exclude rules.mira historyshows the latest session activity.mira diff [version] [other_version]shows history, compares a version to the current file, or compares two versions of the same file.mira restore <version>restores a recorded version.
LLM wrappers
Use --llm to wrap output in configurable tags from mira.config.json:
<tool_use>
create
path: notes.txt
</tool_use>
<tool_response>
Created file: notes.txt
</tool_response>
Chunking
Python files use AST-aware structure extraction. Other files use fallback chunking from languages/default/analyzer.py, targeting 80 lines with chunk boundaries selected at nearby blank lines up to 200 lines, then falling back to 100 lines when no natural boundary is found.
Stateful Index
Running mira . materializes a lightweight project state under .mira/:
.mira/project.txtstores the tracked project tree with file descriptions..mira/commands.txtstores the command catalog with one-line descriptions..mira/files/<path>/skeleton.txtstores the explore-style file summary..mira/versions/<path>/<version>.txtstores the first retained snapshot for a file..mira/versions/<path>/<version>.ndiffstores later retained revisions as independentndiffpayloads instead of full snapshots.
Descriptions and structure comments are manual metadata. They are added or updated through interactive create, explore, and edit flows instead of being autogenerated from AST docstrings or fallback heuristics. Skeleton output omits empty description, dependency, and comment metadata to keep low-noise files compact.
The sync path skips unchanged files by mtime, size, hash, and artifact presence, so rerunning mira . stays cheap when only a few files changed.
Project details
Release history Release notifications | RSS feed
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 mira_process-0.1.0.tar.gz.
File metadata
- Download URL: mira_process-0.1.0.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
642804c95ceb0aa09326cb3337b9ce7244760539f2c4ad0dc040e79a59f9620b
|
|
| MD5 |
20b33d76f0f9a48d18f2660f91711346
|
|
| BLAKE2b-256 |
7c5043f20067954055d44d7cfcada5d60d1d3d7d9277a21bea0dd1227544203c
|
File details
Details for the file mira_process-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mira_process-0.1.0-py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
352909d0cbb3e5ae82fa477535ce8ebd6e2a03317beb521f335e836fdd9a113f
|
|
| MD5 |
9caeade4afa794d0dbc7eb38dade64cc
|
|
| BLAKE2b-256 |
45def4193932401ce9f28253af416b8b02b0cdd1b7cceaa5bfd26dec7f4c04b1
|