ECLI โ terminal-first engineering operations workbench
Project description
ECLI
Terminal-First Engineering Operations Workbench
Panel-driven editor, diagnostics surface, and service foundation for controlled operational workflows
๐ About ECLI
ECLI (Editor CLI) is a terminal-first engineering operations workbench. It combines a curses-based editor with right-side workflow panels and a typed service foundation for configuration, project discovery, command-plan previews,policy checks, audit logging, privileged-action refusal paths, and read-only system diagnostics.
The v0.2.3 release is a Panel Console Stabilization layer on top of the Services Foundation. It keeps the Services Foundation editor behavior intact, rejects full PTY terminal emulation for ECLI 0.2.x, and replaces the fragile F11 terminal experiment with an ECLI-owned PySH Console Panel. PySH is used as a command execution backend only; this release does not execute remediation, apply command plans, launch VMLab runtimes, add QEMU/QMP runtime scope, migrate PySH source, or perform real privileged operations.
โจ Key Features
-
๐ง AI Code Assistant - F7 panel for code-generation and refactoring help when a user-provided API key is configured
-
๐ฉบ System Doctor - F8 read-only diagnostics panel with structured findings and preview-only remediation plans
-
๐งญ Services Panel - right-side visibility into the Phase 1 service composition root
-
๐ Command Plan Preview - draft plans from eligible diagnostics, exportable as JSON or Markdown without execution
-
๐ File Manager - F10 project navigation and file preview workflow
-
๐ฑ Git Panel - F9 repository panel for existing Git workflows
-
๐ Diagnostics/Lint - F4 diagnostics and lint panel
-
โ Help - F1 help panel with current keybindings
-
๐ Syntax Highlighting - terminal highlighting for common source formats
-
๐ LSP Integration - Language Server Protocol support where configured
-
๐ Cross-Platform Packaging - PyPI, Linux, FreeBSD, macOS, and Windows release artifacts
๐ฅ Quick Start
Fastest Installation (Pre-built Packages)
Download and install a pre-compiled package for your platform when available:
# Debian/Ubuntu
sudo apt install ./ecli_<version>_linux_x86_64.deb
# Fedora/RHEL/Rocky/Alma
sudo dnf install ./ecli_<version>_linux_x86_64.rpm
# SUSE/openSUSE
sudo zypper install ./ecli_<version>_opensuse_x86_64.rpm
# Arch Linux
sudo pacman -U ./ecli_<version>_arch_x86_64.pkg.tar.zst
# Slackware
sudo installpkg ecli_<version>_slackware_x86_64.txz
# NixOS / Nix
nix run .
# AppImage
chmod +x ./ecli_<version>_linux_x86_64.AppImage
./ecli_<version>_linux_x86_64.AppImage
# Windows (PowerShell)
.\ecli_<version>_win_x86_64_setup.exe
# Portable alternative: .\ecli_<version>_win_x86_64.exe
# See docs/install/windows.md for checksum verification and SmartScreen notes.
# macOS
open ecli_<version>_macos_universal2.dmg
# First launch is blocked by Gatekeeper; see docs/install/macos.md
# for the one-time "Open Anyway" or xattr workaround.
Release artifacts are published at GitHub Releases when available.
Run from Source
# Clone the repository
git clone https://github.com/SSobol77/ecli.git
cd ecli
# Install dependencies and run
make install
make run
Install from PyPI
sudo apt update
sudo apt install pipx
pipx ensurepath
pipx install ecli-editor
ecli
The Python distribution name is ecli-editor; the import package remains ecli, and the installed CLI command remains ecli.
Optional Linux desktop launcher and icon integration after pipx or pip installation:
ecli-install-desktop-entry
This installs a user-level launcher at
~/.local/share/applications/ecli.desktop and the icon at
~/.local/share/icons/hicolor/256x256/apps/ecli.png.
It does not require sudo and is safe to run again.
๐ฆ Installation Guide
Complete Installation Instructions
For detailed platform-specific installation instructions, system dependencies, and troubleshooting, see the Installation Guide.
1. System Dependencies
These dependencies are required for terminal UI, clipboard integration, YAML acceleration, and UTF-8 support.
Debian/Ubuntu:
sudo apt update && sudo apt install \
libncurses6 libncursesw6 libtinfo6 \
libncurses-dev libncursesw5-dev \
ncurses-bin ncurses-term \
libyaml-dev xclip xsel
Fedora/RHEL/Rocky/Alma:
sudo dnf install ncurses ncurses-devel libyaml-devel xclip xsel
SUSE/openSUSE runtime:
sudo zypper install ncurses6 libyaml-0-2 xclip xsel
For local RPM/package builds on SUSE/openSUSE:
sudo zypper install python3 python3-pip python3-devel gcc make rpm-build
Arch Linux:
sudo pacman -S ncurses libyaml xclip xsel
Slackware:
Install these from the official Slackware series or SlackBuilds according to your Slackware release:
ncurses
libyaml
xclip or xsel, if available
For .txz package builds, the build host also needs makepkg, tar, xz,
python3, PyInstaller, and the project Python build dependencies.
FreeBSD:
sudo pkg install ncurses libyaml xclip xsel
macOS:
brew install ncurses libyaml
Windows:
Prebuilt installer and portable .exe artifacts do not require a separate Python installation. Windows Terminal or another modern terminal is recommended, PowerShell is used for checksum examples, and Git is optional for repository workflows. The official installer normally bundles the required runtime components; install the Visual C++ runtime only if a release note says that a specific artifact requires it.
For source/development builds on Windows, install Python 3.11+, Git, PowerShell 7, NSIS for installer builds, and Visual Studio Build Tools only when native dependency or build-tool compilation is required.
2. Install ECLI
Option A: Pre-built Packages (Recommended)
Download from GitHub Releases when available:
-
Linux:
.deb(Debian/Ubuntu),.rpm(Fedora/RHEL and SUSE/openSUSE), Archpkg.tar.zst, Slackware.txz, AppImage -
FreeBSD:
.pkg -
macOS:
.dmg(install notes) -
Windows:
.exeinstaller or portable executable (install notes) -
Release metadata: CycloneDX SBOM and SHA256 sidecars for release artifacts
Option B: PyPI (Python Package Index)
sudo apt update
sudo apt install pipx
pipx ensurepath
pipx install ecli-editor
ecli
Import and launch names are unchanged:
import ecli
ecli
For isolated development or testing:
python3 -m venv ~/.local/ecli-env
source ~/.local/ecli-env/bin/activate
pip install ecli-editor
ecli
On Debian 13 and newer Ubuntu releases, direct system-level pip install may fail with externally-managed-environment. Use pipx, a virtual environment, or the official .deb package from GitHub Releases when available.
Avoid pip install --break-system-packages ecli-editor unless you fully understand the apt package-management consequences.
Requires Python 3.11+ and system dependencies listed above. Native packages may install launcher integration automatically; pip/pipx installs use ecli-install-desktop-entry for explicit Linux desktop integration.
Linux Package Commands
Use release artifacts from GitHub Releases when available. Exact artifact names include version and architecture.
# Debian / Ubuntu
sudo apt install ./ecli_<version>_linux_x86_64.deb
# Fedora / RHEL
sudo dnf install ./ecli_<version>_linux_x86_64.rpm
# SUSE / openSUSE
sudo zypper install ./ecli_<version>_opensuse_x86_64.rpm
# Arch Linux release artifact
sudo pacman -U ./ecli_<version>_arch_x86_64.pkg.tar.zst
# Arch Linux local PKGBUILD
cd packaging/arch
makepkg -si
# Slackware
sudo installpkg ecli_<version>_slackware_x86_64.txz
sudo upgradepkg ecli_<version>_slackware_x86_64.txz
sudo removepkg ecli
# NixOS / Nix
nix run .
nix build .
nix profile install .
# FreeBSD
sudo pkg add ./ecli_<version>_freebsd_x86_64.pkg
# AppImage
chmod +x ./ecli_<version>_linux_x86_64.AppImage
./ecli_<version>_linux_x86_64.AppImage
The Arch package is named ecli-editor and installs the ecli command. Raw makepkg output may use ecli-editor-<version>-1-<arch>.pkg.tar.zst;
the ECLI release script normalizes it to ecli_<version>_arch_<arch>.pkg.tar.zst for GitHub Releases. AUR publishing is not implemented by this repository yet. If openSUSE dependencies are missing, use zypper to resolve them from configured repositories.
๐จ Building from Source
Prerequisites
-
Python 3.11+
-
Git
-
System dependencies (see above)
-
uvpackage manager (optional, for faster builds)
Build Steps
# Clone the repository
git clone https://github.com/SSobol77/ecli.git
cd ecli
# Install dependencies
make install
# Run from source
make run
# Build packages for distribution
make help # See all available build targets
Taskfile.yml is available as an optional developer convenience wrapper for
common local commands such as task help, task validate, and
task validate-packaging. Makefile remains the authoritative build/release
contract; CI and release gates continue to rely on the existing canonical
command surfaces.
Build System
ECLI features a comprehensive multi-platform build system. For detailed information:
-
Build from Source: Read docs/contributor/build-from-source.md
-
Packaging Flows: See docs/release/packaging-flows.md
Common Build Commands
# Display all available build targets
make help
task help # Optional wrapper; delegates to make help
# Check system capabilities and available tools
make sysinfo
# Build for your platform
make package-linux # Linux package targets supported by the local toolchain
make package-pypi # Python wheel + source distribution
make package-macos # macOS DMG
make package-windows # Windows portable EXE + installer
make package-freebsd # FreeBSD package
# Maintainer-owned guarded release/publish flow
make publish-all
๐ Usage
Launch ECLI
ecli [options] [file]
Keyboard Shortcuts
Master ECLI with these essential keyboard shortcuts. Press F1 anytime inside the editor to open the help screen.
Basic Editing
| Shortcut | Action |
|---|---|
Backspace |
Delete character left / delete selection |
Tab |
Smart indent / indent block |
Shift+Tab |
Smart unindent |
Ctrl+\ |
Toggle comment (line/block) |
Ctrl+C |
Copy |
Ctrl+X |
Cut |
Ctrl+V |
Paste |
Ctrl+A |
Select all |
Ctrl+Z |
Undo |
Ctrl+Y |
Redo |
Navigation & Search
| Shortcut | Action |
|---|---|
Ctrl+G |
Go to line |
Ctrl+F |
Find |
F3 |
Find next |
F6 |
Search & Replace with regex support |
Arrow keys / Home / End |
Cursor movement |
Page Up / Page Down |
Scroll by page |
Shift + Arrow keys |
Extend selection |
File Operations
| Shortcut | Action |
|---|---|
F2 |
New file |
Ctrl+O |
Open file |
Ctrl+S |
Save |
F5 |
Save as... |
Ctrl+Q |
Quit editor |
Tools & Panels
| Shortcut | Action |
|---|---|
F10 |
File Explorer |
F4 |
Diagnostics / Linter panel |
F9 |
Git menu |
F7 |
AI Assistant panel |
F8 |
System Doctor |
F1 |
Show Keyboard Shortcuts |
F11 |
Open/focus PySH Console Panel |
Esc |
Close current panel |
Insert |
Toggle Insert / Overwrite mode |
F12 |
Switch focus between editor and panels |
The right side of the editor hosts workflow panels. The v0.2.3 panel-console stabilization keeps service panels read-only or preview-only: System Doctor does not mutate host state, Command Plan previews do not execute, the Services panel reports composition status, F11 opens or focuses the PySH Console Panel, and F12 switches focus between the editor and panels.
Minimal Service CLI
The default CLI path still launches the editor:
python3 -m ecli
python3 -m ecli pyproject.toml
The explicit service flags provide read-only inspection without bypassing the TUI model:
python3 -m ecli --services
python3 -m ecli --doctor
python3 -m ecli --plan-preview
Use --json for deterministic JSON output where supported. These commands are inspection and preview surfaces only; they do not execute plans, run privileged commands, install packages, start VMLab, or apply remediation.
AI Configuration
AI features require user-provided provider credentials. API keys belong in:
~/.config/ecli/.env
Provider selection belongs in config.toml, not in .env. If a selected provider key is missing, the AI panel reports a normal configuration message instead of a Python traceback.
For comprehensive keybindings and usage guide, see Getting Started.
๐ Documentation
Complete documentation is organized by audience:
For Users
-
Installation Guide - Detailed setup instructions
-
Build from Source - Build system quick start
-
Getting Started - First steps with ECLI
For Developers
-
Development Setup - Development environment
-
Architecture Overview - System design
-
Packaging Flows - Release packaging overview
-
Build from Source - Local build commands
-
Contributor Guide - Contributing to ECLI
For System Administrators
-
Supported Platforms - Platform matrix
-
Configuration Guide - Configuration options
-
Deployment Guide - Production deployment
Reference
-
API Documentation - Plugin development
-
Architecture Details - System internals
-
Release Process - Release management
-
Quality Standards - Testing and quality gates
๐๏ธ Architecture
ECLI v0.2.3 keeps the existing editor/TUI behavior and Services Foundation infrastructure, then adds Panel Console Stabilization for the ECLI-owned PySH Console Panel:
-
Core Editor: curses-based terminal editor with async task integration
-
Right-Side Panels: Help, Diagnostics/Lint, AI Code Assistant, System Doctor, Git, File Manager, Services, and Command Plan previews
-
PySH Console Panel: F11 opens or focuses an ECLI-owned command console panel backed by PySH subprocess execution
-
ConfigService: typed layered configuration loading
-
ProjectService: deterministic project discovery and path normalization
-
CommandPlanService: draft command-plan models and preview/export behavior
-
BuiltInPolicyEngine: deterministic built-in policy evaluation rules
-
AuditLogService: append-only JSONL audit records with mandatory redaction
-
PrivilegedActionService: refusal-only/dry-run-only skeleton for future elevated operations
-
SystemDoctor: read-only diagnostic skeleton with draft remediation-plan generation
-
ServiceRegistry: explicit composition root without global service-locator state
Safety boundaries for v0.2.3:
-
SystemDoctor is read-only.
-
CommandPlan output is draft/preview-only.
-
PrivilegedActionService refuses real execution in this release.
-
Service panels are visible in the UI but do not execute remediation.
-
Full PTY terminal emulation, VT parsing, xterm behavior, and raw interactive PySH inside curses are not included.
-
PySH is used as a command execution backend only; PySH source migration and monorepo conversion are not included.
-
VMLab runtime behavior, QEMU runtime scope, and QMP runtime scope are not included in v0.2.3.
For detailed architecture information, see Architecture Overview.
๐ค Contributing
We welcome contributions! Here's how to get started:
-
Fork the repository
-
Clone your fork:
git clone https://github.com/YOUR_USERNAME/ecli.git -
Create a feature branch:
git checkout -b feature/your-feature -
Make your changes
-
Test your changes:
make clean && make install && make run -
Commit with clear messages
-
Push to your fork
-
Open a Pull Request
For detailed contribution guidelines, see CONTRIBUTING.
โ๏ธ Development
Setting Up Development Environment
# Clone and setup
git clone https://github.com/SSobol77/ecli.git
cd ecli
# Install dev dependencies
make install
# Run tests
python -m pytest
# Run linter
ruff check src/
# Format code
black src/
Project Structure
ecli/
โโโ src/ecli/ # Main source code
โ โโโ core/ # Core editor functionality
โ โโโ ui/ # Terminal UI components
โ โโโ integrations/ # AI, Git, LSP integrations
โ โโโ utils/ # Utilities and helpers
โโโ docs/ # Documentation
โโโ tests/ # Test suite
โโโ scripts/ # Build and utility scripts
โโโ Makefile # Multi-platform build system
๐ Issues & Bug Reports
Found a bug? Please help us by opening an issue on GitHub:
-
Include: OS, Python version, ECLI version, and reproduction steps
-
Check Known Issues first
๐ Requirements
Minimum Requirements
-
OS: Linux, macOS, FreeBSD, or Windows
-
Python: 3.11 or higher
-
Terminal: Supports 256 colors and UTF-8
Supported Platforms
-
Ubuntu 20.04 LTS and newer
-
Debian 11 and newer
-
Fedora 36 and newer
-
RHEL/CentOS/Rocky 8.0 and newer
-
Arch Linux (current)
-
FreeBSD 14.0 and newer
-
macOS 12 and newer
-
Windows 10/11
See Supported Platforms for detailed compatibility matrix.
๐ License
ECLI is licensed under the GNU General Public License version 2 only (GPL-2.0-only).
See the LICENSE file for the full license text.
๐ Links
-
Website: https://www.ecli.io
-
GitHub: https://github.com/SSobol77/ecli
-
Discussions: https://github.com/SSobol77/ecli/discussions
๐ฌ Support
-
Documentation: Read Build from Source and Packaging Flows
-
Community: GitHub Discussions
-
Bugs: GitHub Issues
-
Development: See Contributing
๐ฏ Roadmap
For planned features and current development status, see Roadmap.
Made with โค๏ธ by the ECLI community
โญ Star us on GitHub!
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 ecli_editor-0.2.3.tar.gz.
File metadata
- Download URL: ecli_editor-0.2.3.tar.gz
- Upload date:
- Size: 393.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75a3e040c4acdc32fa3c4c01bc05fc061a161705f056f9955498f2489827a5b7
|
|
| MD5 |
44911c1da7b1ac6a16295a806a29b894
|
|
| BLAKE2b-256 |
ff0d31970ed4852abe25f3cde8ae6f5ac44e49645191c7d0bbbbeaee590331a4
|
File details
Details for the file ecli_editor-0.2.3-py3-none-any.whl.
File metadata
- Download URL: ecli_editor-0.2.3-py3-none-any.whl
- Upload date:
- Size: 332.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
575b9a6721e6bc323f73f687bd8ebdaa6591585478fa0a413ef128822a1fad6a
|
|
| MD5 |
3c6fb39a11c0de8b82b019b404a1374a
|
|
| BLAKE2b-256 |
61a613d858ee134b9f9d37ca34168ea4deb1f6f7cd7d22c486f1ee56e3ca6c77
|