https://github.com/yukicodepth/yukishell
A next-gen, AI-augmented Linux shell. Featuring autonomous LangGraph agents, persistent history, dynamic .yukirc aliases, and true-color terminal aesthetics. Built by an ECE mind at SRM.
https://github.com/yukicodepth/yukishell
ai-agent automation c-programming cli-tool embedded-systems langchain langgraph linux-shell python terminal-ui
Last synced: about 2 months ago
JSON representation
A next-gen, AI-augmented Linux shell. Featuring autonomous LangGraph agents, persistent history, dynamic .yukirc aliases, and true-color terminal aesthetics. Built by an ECE mind at SRM.
- Host: GitHub
- URL: https://github.com/yukicodepth/yukishell
- Owner: YukiCodepth
- License: mit
- Created: 2026-03-05T19:22:05.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2026-04-23T07:47:56.000Z (about 2 months ago)
- Last Synced: 2026-04-23T08:26:56.862Z (about 2 months ago)
- Topics: ai-agent, automation, c-programming, cli-tool, embedded-systems, langchain, langgraph, linux-shell, python, terminal-ui
- Language: C
- Homepage: https://github.com/YukiCodepth/yukishell
- Size: 1.04 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# YukiShell | (V26c)




**YukiShell** is a high-performance, custom C-based Linux shell environment engineered specifically for Electronics and Communication Engineering (ECE) workflows, embedded systems development, and hardware-accelerated terminal operations.
Developed by **Yukino Labs**, it bridges the gap between low-level system execution, bare-metal hardware telemetry, and integrated neural workflows natively within the terminal.
---
## ๐ธ System Interface
### Integrated LLM & Environment Fetch
*Real-time querying and system hardware diagnostics.*

### Ghostmode (Ephemeral Namespace)
*Root-level system override initiating an isolated, RAM-only `/tmp` container environment.*

---
## โ๏ธ Core Features & Command Manifest
YukiShell is packed with native C-builtins and extended Python hardware hooks to streamline complex engineering tasks.
### ๐ Filesystem & Core
* **`xls`** โ Enhanced directory lister featuring rich metadata, sizing, and custom color-coded outputs.
* **`xcat `** โ Secure file stream with custom formatting headers, replacing standard `cat`.
* **`cd `** โ Robust directory traversal supporting relative paths, `..`, and `~` expansion.
* **`clear`** โ Wipes the terminal buffer and re-renders the YukiShell HUD cleanly.
* **`neofetch`** โ Instantly displays the Yuki ASCII logo, system resource usage, and live hardware specifications.
### ๐ก๏ธ System & Network (Sentinel)
* **`ghostmode`** โ Drops the user into an ephemeral, isolated namespace container. All files written inside exist only in RAM and vanish entirely upon exit.
* **`jobs`** โ Monitors all background process IDs operating in the "Shadow Realm".
* **`xnet [host]`** โ Lightning-fast asynchronous port scanner (100ms timeout per port) for local network auditing.
* **`dash`** โ Launches a real-time hardware telemetry dashboard for system oversight.
* **` &`** โ Appending `&` detaches any process to background execution seamlessly.
### ๐ง Neural Link & Vision (`ask` sub-engine)
* **`ask --gemini "prompt"`** โ Directly queries the integrated LLM for ECE coding assistance, kernel debugging, or algorithmic logic.
* **`ask --plot `** โ **Yuki Oscilloscope:** Reads raw serial data (e.g., from `/dev/ttyUSB0` at 9600 baud) and renders a live ANSI-based waveform graph directly in the terminal.
* **`ask --chip`** โ **Silicon Scanner:** Activates the webcam, utilizes computer vision to read laser-etched IC markings, and fetches datasheet summaries and ASCII pinout diagrams automatically.
* **`ask --live`** โ **Visual Tutor:** Initiates a real-time continuous video stream analysis agent.
* **`ask --voice`** โ Parses acoustic input into executable terminal commands or text queries.
---
## ๐ฏ Target Audience & Unique Value
**Who is this for?**
* **Embedded Software Engineers:** Professionals requiring instant, scriptable access to serial ports and I2C/SPI buses without leaving the command line.
* **ECE Students & Researchers:** Academics who need rapid access to IC datasheets, pinout visualization, and algorithmic assistance.
* **Linux Power Users:** Enthusiasts looking for a lightweight, highly customized shell capable of deploying ephemeral memory containers (`ghostmode`).
**What makes it unique?**
Unlike standard `bash` or `zsh`, YukiShell is domain-specific. It merges standard POSIX shell capabilities with bare-metal hardware analysis tools (like terminal oscilloscopes) and OpenCV-driven silicon scanning, creating an all-in-one workspace for hardware developers.
---
## ๐ What's New in V26c
* **Aegis-Edge Core Architecture:** Fully modularized C source code (`builtins.c`, `parser.c`, `executor.c`) for superior memory management and linker efficiency.
* **Baud Rate Synchronization:** Hardened native 9600/115200 serial communication handling for zero-latency telemetry plotting.
* **Shadow Realm Expansion:** Improved PID tracking for background tasks and robust signal handling (SIGINT/Ctrl+C routing).
---
## ๐๏ธ System Architecture & Workflow
*The diagram below maps the execution flow of YukiShell. It supports panning and zooming in compatible markdown environments.*
```mermaid
graph TD
A([User Terminal Input]) --> B[Lexical Parser]
B --> C{Is C-Builtin?}
C -->|Yes| D[Native C Executor]
D --> D1[Filesystem: xls, xcat, cd]
D --> D2[System: ghostmode, xnet]
D --> D3[Shadow Realm: jobs, &]
C -->|No: 'ask' Hook?| E{Hardware/Neural Bridge}
E -->|No| F[Fork & Exec: /bin/]
E -->|Yes| G[yuki_ai.py Virtual Env]
G -->|--plot| H((PySerial: /dev/tty*))
G -->|--chip / --live| I((OpenCV Camera Stream))
G -->|--gemini| J((LLM Cloud API))
H --> K([Render to Yuki HUD])
I --> K
J --> K
```
---
## ๐ ๏ธ Installation & Setup
### Prerequisites
Ensure your Linux distribution has `gcc`, core build utilities, and Python 3 installed.
```bash
sudo apt update
sudo apt install build-essential libreadline-dev python3 python3-venv python3-pip
```
### 1. Clone the Repository
```bash
git clone [https://github.com/yourusername/Yukishell.git](https://github.com/yourusername/Yukishell.git)
cd Yukishell
```
### 2. Configure the Python Environment
The AI and Hardware components require specific dependencies.
```bash
python3 -m venv venv
source venv/bin/activate
pip install google-generativeai opencv-python pyserial
```
### 3. API Key Configuration
Create a `.env` file in the root directory to authorize the neural engine:
```env
GEMINI_API_KEY=your_api_key_here
```
### 4. Compile the Aegis-Edge Core
Build the C-binaries utilizing the included headers:
```bash
gcc src/*.c -Iinclude -o yukishell -lreadline
```
### 5. Launch YukiShell
```bash
./yukishell
```
---
## ๐ฅ๏ธ Desktop App Preview
YukiShell now includes a minimal Electron desktop app in `desktop/`. It wraps the native C core in a polished PTY-backed terminal window with clean chrome, branded icons, and packaging scripts for macOS, Linux, and Windows.
### Run the Desktop App
```bash
cd desktop
npm install
npm run dev
```
### Package Builds
```bash
npm run dist:mac
npm run dist:linux
npm run dist:win
```
macOS and Linux package the current POSIX core directly. Windows packaging ships the desktop UI and uses `yukishell.exe` when a native Windows core is provided; otherwise it attempts to use WSL and then falls back to the system shell. A full native Windows shell core requires a dedicated port away from POSIX-only APIs such as `fork`, `termios`, `readline`, `/proc`, and Linux namespaces.
The desktop app does not bundle `.env` secrets into public release artifacts. Put API keys in one of these local-only files:
```bash
~/.yukishell/.env
# or on macOS
~/Library/Application Support/YukiShell/.env
```
GitHub release builds are handled by `.github/workflows/release.yml`. Push a tag such as `v26d.0` to build macOS, Linux, and Windows artifacts and attach them to a GitHub Release automatically.
---
## ๐ค Contribution Guidelines
YukiShell thrives on community input, specifically from developers in the hardware, embedded systems, and Linux kernel spaces.
1. **Fork the Repository**
2. **Branch for Features:** `git checkout -b feature/NewHardwareHook`
3. **Commit cleanly:** `git commit -m 'Added native I2C bus scanning builtin'`
4. **Push to branch:** `git push origin feature/NewHardwareHook`
5. **Open a Pull Request:** Ensure your code passes all native `gcc` compilation checks without warnings.
**Development Standards:**
* Core shell execution, parsers, and filesystem commands must remain strictly in standard C inside the `src/` directory.
* External API calls and complex hardware libraries (OpenCV, PySerial) should be routed through the Python bridge to maintain C-core stability.
* Validate memory safety using `valgrind` before submitting a PR.
---
## ๐ Security Policy
### Supported Versions
Only **V26c (Aegis-Edge)** and newer releases receive active vulnerability monitoring and patches. Legacy V16.0 branches are deprecated.
### Reporting Vulnerabilities
If you discover a vulnerabilityโsuch as a namespace escape vector in `ghostmode`, buffer overflows in the `xcat` parser, or unauthorized execution contextsโplease **do not** open a public issue.
Submit a detailed report to the **Yukino Labs Security Team** via private email. Ensure your report includes:
* Steps to reproduce the exploit.
* OS environment (e.g., Ubuntu 25.10, VMware).
* Severity assessment (e.g., Privilege Escalation, Arbitrary Code Execution).
We commit to addressing and patching reported vulnerabilities prior to public disclosure.
---
## ๐ License
This project is distributed under the **MIT License**. See the `LICENSE` file for full details.
> **Designed and Developed by Aman Kumar** | ECE Core | Yukino Labs