hyeJack-powershell: AI agent turning plain English into self-healing PowerShell workflows.
143
This project is open source.
GitHub Repository: https://github.com/PersonalProj1008/HyeJack-Powershell
HyeJack-Powershell is a containerized AI automation engine that transforms natural language requests into executable PowerShell workflows using xAI's Grok LLM. It features automatic error correction, persistent knowledge bases (RAG), and multi-tool integration.
Turn this: "Create a script that backs up my project folder and uploads to S3"
Into working PowerShell code automatically.
| Feature | Description |
|---|---|
| Natural Language → PowerShell | Describe tasks in plain English, get production-ready scripts |
| Self-Healing | Automatically retries failed steps up to 20 times, fixing only what broke |
| RAG Knowledge Base | Upload documents/code to a persistent collection; Jack references them intelligently |
| Topic Isolation | Separate conversations and knowledge bases per project |
| Tool Integration | Web search, X (Twitter) search, code interpreter, file search |
| Fully Containerized | Runs in Docker with PostgreSQL for memory and PowerShell 7 |
docker compose up -d
docker compose exec pwsh-worker pwsh
Inside the container:
HyeJack-Powershell --CREDENTIALS
HyeJack-Powershell --SIDEBAR
HyeJack-Powershell --HYE_JACK "Create a PowerShell script that lists all PDF files in current directory" --AVGCHATHISTORY
Required permissions:
| Permission | Required For |
|---|---|
DownloadFile | Reading uploaded files |
ListFiles | Browsing knowledge base |
GetFileMetadata | File information |
UploadFiles | Adding documents to collection |
RemoveFileFromCollection | Deleting files |
AddFileToCollection | Attaching files to topics |
UpdateFile | Modifying file content |
UpdateDocumentField | Updating document metadata |
⚠️ Must be enabled (Custom or Full access) for collection operations:
Documents: .pdf, .doc, .docx, .txt, .md, .csv, .json, .xml, .yaml, .html, .htm, .rtf
Code: .py, .js, .ts, .tsx, .jsx, .cs, .go, .java, .kt, .rs, .swift, .php, .rb, .pl, .lua, .sql, .ps1, .sh
Not supported: Standalone images (.jpg, .png, .gif) — but images inside PDFs work.
Edit hyejack_powershell_configuration.toml to modify system prompts:
SYSTEM_PROMPT = '''
You are an AI assistant named Jack...
[Modify personality, tone, or specialization here]
'''
GROK_MODEL_NAME = "grok-4-1-fast-reasoning" # Change model as needed
⚠️ Important: Keep the JSON output structure unchanged — the Python backend expects specific keys:
Agentic_Data → for workflowsInfo_Data → for informational responsesstep, use_env, steps_to_not_include within workflows| Flag | Function |
|---|---|
--WEBSEARCH | Real-time web search |
--XSEARCH | X (Twitter) search |
--COMPUTATIONALABILITY | Code interpreter |
--COLLECTIONREF | RAG from knowledge base |
--FULLPOWER | All tools enabled |
--RETRIVALCOUNT N | Chunks to retrieve (1-40) |
| Flag | Messages sent |
|---|---|
--MINCHATHISTORY | Last 5 |
--AVGCHATHISTORY | Last 10 |
--MAXCHATHISTORY | Last 20 |
# Code generation
HyeJack-Powershell --HYE_JACK "Create a FastAPI endpoint with PostgreSQL connection" --AVGCHATHISTORY
# File analysis + research
HyeJack-Powershell --HYE_JACK "Review my Python project and suggest improvements based on best practices" --FULLPOWER --COLLECTIONREF
# Automation script
HyeJack-Powershell --HYE_JACK "Build a script that monitors disk space and emails alerts at 90% usage"
--TRYCOUNT (default: 20)| Variable | Purpose |
|---|---|
PG_HOST | PostgreSQL host |
PG_USER | Database user |
PG_PASSWORD | Database password |
PG_DB | Database name |
| Volume | Purpose |
|---|---|
pg_data | PostgreSQL persistence |
pwsh_output | Generated script output |
pwsh_logs | Execution logs |
Content type
Image
Digest
sha256:4afe81464…
Size
314 MB
Last updated
6 months ago
docker pull arjunsenngupta1008/hyejack-powershell:worker-1.0