Datasets:
Dataset Viewer
The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
π‘οΈ Agent Bash ANSI Escape Code Sanitizer MCP
Official Turnkey Model Context Protocol (MCP) Guard & Fine-Tuning Suite (FAANG v2.5 Gold Standard)
βοΈ Dual-Licensing & Fair-Use Compliance Notice
- Community & Evaluation License (
CC-BY-NC-4.0): This evaluation repository is 100% free for academic research, education, personal experimentation, and local evaluation.- Commercial & Enterprise License: Any integration into commercial software, SaaS applications, proprietary models, or corporate pipelines requires a valid commercial license from emgena.com/trainingslager.
- Developer Tooling & Regulatory Clarification: Client-side deterministic policy control software only. Emgena provides no financial, legal, medical, or custodian services.
- Launch Discount: Use code
LAUNCH20at checkout for 20% off all commercial tiers (Single, Team, Enterprise).
π¦ What is Included in this Package
This repository contains the full 500-sample verified dataset and in-IDE guardrails:
- Parquet & JSONL Datasets (
agent_bash_ansi_escape_code_sanitizer_mcp.parquet,chatml_format.jsonl):- 500 verified multi-turn trajectories across 30 production incidents.
- 100% AST Invariance: Zero syntax errors (validated via
ast.parse()).
- Deterministic MCP Engine (
server.py&server_free.py):- Zero-dependency stdio engine (<0.15ms latency, 100% offline).
- Compatible with Cursor IDE, Claude Desktop, and VS Code.
- Dual Fine-Tuning Recipes:
- Apple Silicon Mac (
train_mlx.py): Native LoRA fine-tuning for M1/M2/M3/M4 unified memory in 15 minutes. - Nvidia CUDA (
train_lora_unsloth.py): 4-bit QLoRA fine-tuning on RTX 4090 / 5090 / Colab.
- Apple Silicon Mac (
- Active AST Tools:
execute_tool('strip_ansi_color_and_formatting_codes'): Removes terminal ANSI color codes, font bolding, and cursor positioning sequences in 0.02ms.execute_tool('sanitize_carriage_return_overwrite_hacks'): Normalizes carriage returns (\r) used by progress bars that confuse LLM tokenizers.execute_tool('filter_terminal_bell_and_sound_bytes'): Scrubs ASCII bell (0x07) and non-printable control characters from command output.execute_tool('preserve_semantic_exit_code_status'): Preserves numeric command exit codes and stderr streams while cleaning raw terminal bytes.execute_tool('truncate_runaway_interactive_spinners'): Collapses 500 lines of terminal spinners into single clean status summary line.execute_tool('detect_terminal_escape_injection_tricks'): Blocks escape sequences designed to manipulate terminal emulator title bars or paste buffers.execute_tool('benchmark_terminal_cleaning_throughput'): Measures parser throughput in MB/s to ensure zero latency overhead in CLI workflows.execute_tool('export_ansi_sanitizer_telemetry'): Exports metrics on stripped ANSI byte volume and prevented tokenizer confusion events.
π Quickstart: Apple Silicon Fine-Tuning (MLX)
pip install mlx mlx-lm
python train_mlx.py
π» Quickstart: Cursor IDE & Claude Desktop MCP Setup
Add the following to your .cursor/mcp.json or claude_desktop_config.json:
{
"mcpServers": {
"agent_bash_ansi_escape_code_sanitizer_mcp": {
"command": "python",
"args": ["server.py"]
}
}
}
βοΈ License & Commercial Deployment
Distributed under Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC-4.0).
For commercial enterprise deployment rights, BGB Β§ 97 UrhG indemnification, and EU AI Act Annex IV audit certificates, visit:
π emgena.com/trainingslager
- Downloads last month
- 34