Repository navigation
pm_encoder v1.5.0 - Enhanced Init-Prompt π³
π³ Enhanced Init-Prompt with Directory Tree & Stats
pm_encoder v1.5.0 improves the AI CLI integration with visual directory trees and project statistics.
β¨ What's New
1. Directory Tree Visualization π³
Generated instruction files now include a visual project structure:
pm_encoder/
βββ crates/
β βββ utf8dok-ast/
β βββ utf8dok-cli/
β βββ utf8dok-core/
βββ docs/
βββ rust/
βββ tests/
βββ pm_encoder.py
- 3-level depth by default
- Respects
.pm_encoder_config.jsonignore patterns - Directories marked with
/suffix
2. File Statistics π
Each generated file now shows:
- File count: Number of files in context
- Context size: Bytes and KB
**Statistics:**
- Files: 42
- Context size: 189,234 bytes (184.8 KB)3. Improved Multi-AI Support π
Both targets benefit from enhancements:
| Target | Output | Format |
|---|---|---|
claude |
CLAUDE.md + CONTEXT.txt | Markdown |
gemini |
GEMINI.md + CONTEXT.txt | Plain text |
π Example Output
CLAUDE.md (v1.5.0)
# my_project
## Project Overview
my_project - Context automatically generated by pm_encoder
## Commands
- `cargo build`
- `cargo test`
## Project Structure
\`\`\`
my_project/
βββ src/
β βββ lib.rs
β βββ main.rs
βββ tests/
βββ Cargo.toml
\`\`\`
**Statistics:**
- Files: 5
- Context size: 12,345 bytes (12.1 KB)
For complete context, see `CONTEXT.txt`.π Usage
# Generate with directory tree & stats
pm_encoder . --init-prompt
# Different lenses
pm_encoder . --init-prompt --init-lens debug
pm_encoder . --init-prompt --init-lens security
# Multi-AI
pm_encoder . --init-prompt --target geminiπ Test Status
- Python Tests: 93/93 passing β
- Rust Tests: 8/8 passing β
- Coverage: 95% maintained
π Also in This Release
Rust v0.2.0 released alongside:
- Core serialization complete
- Plus/Minus format (byte-identical with Python)
- MD5 checksums
- Binary detection
See rust-v0.2.0 for details.
π¦ Installation
curl -O https://raw.githubusercontent.com/alanbld/pm_encoder/main/pm_encoder.py
chmod +x pm_encoder.py
./pm_encoder.py --version # 1.5.0Changelog: v1.4.0...v1.5.0