An offline, zero-cost local prompt optimization engine powered by sequence-distilled Qwen3.8 4B AI reasoning. It automatically refactors lazy, unstructured user prompts into master-level system prompts with role definition, technical constraints, and output schema rules.
| Problem | Impact | Qwen3.8 4B Solution |
|---|---|---|
| Vague User Prompts | Generic, hallucinated, or unhelpful AI responses | Structurally refactors inputs into precise system instructions |
| Cloud API Expense | High token costs when optimizing prompts with cloud LLMs | Runs 100% locally on consumer hardware with zero API billing |
| Reasoning Latency | Slow execution when waiting for internal thought traces | Bypasses <think> tags via custom system prompts for fast speed |
- Instruction-Following Distillation: Inherits Qwen3.8-Max reasoning traces to structure complex instructions effortlessly.
- Offline Prompt Engineering: Transforms 1-line inputs into production-ready system prompts without sending data online.
- Reasoning Suppression: Suppresses internal reasoning
<think>tags to output optimized prompts at lightning speed. - Structured Schema Enforcer: Injects clear roles, technical constraints, edge cases, and output formatting rules.
- Multi-Domain Adaptability: Handles software engineering, creative writing, regex generation, and educational prompts.
- Model Engine:
Ma7ee7/Qwen3.8_4B_Distilled_GGUF:Q4_K_M - Runtime Environment: Python 3.10+
- Local Server: Ollama Native HuggingFace GGUF
- API Protocol: REST HTTP (
http://localhost:11434)
.
├── main.py
├── outputs.md
├── .gitignore
└── README.md
-
Install Ollama (if not already installed) from the official website and start the daemon.
-
Pull the Distilled Model:
ollama run hf.co/Ma7ee7/Qwen3.8_4B_Distilled_GGUF:Q4_K_M
-
Verify Environment: Ensure Python 3.10+ is installed and accessible in your system path.
Run the prompt architect pipeline directly in Windows Antigravity PowerShell:
python main.py- AI Developer Workflow: Upgrade vague code prompts into detailed specifications for coding assistants.
- Enterprise System Prompts: Standardize system prompts for customer support bots and internal AI tools.
- Regex & Data Parsing: Convert basic requests into strict pattern-matching prompts with edge case rules.
- Educational Content Creation: Generate structured, age-appropriate educational explainer prompts.
- Offline PC Assistant: Run local prompt engineering utilities on air-gapped or offline laptops.
- Streamlit Local Web GUI: Provide an interactive dashboard to paste lazy prompts and copy optimized results.
- Custom System Prompt Templates: Allow users to save custom role profiles (e.g. DevOps, Data Science, Copywriter).
- Prompt Quality Scoring Engine: Evaluate input vs output prompt completeness with automated metrics.
- Clipboard Auto-Copy: Automatically copy the generated master prompt directly into the system clipboard.
- Multi-Language Support: Expand prompt refactoring logic to handle non-English user inputs seamlessly.
qwen3.8 ollama local-llm prompt-engineering distilled-llm python open-source-ai gguf prompt-optimization