Skip to main content

🐒 Wukong Stack

WukongStack Wukong is a revolutionary developer toolkit that empowers engineers with intelligent coding assistance, project scaffolding, and automated code review capabilities. Inspired by the legendary Monkey King's wisdom and magic, Sun Wukong, from Chinese mythology, Wukong helps developers create, refactor, and review code with unparalleled intelligence.Wukong streamlines development by delivering a secure, testable, and modern project structure for rapid prototyping and production-ready applications.

🔥 "I've got all the magic you need for your coding journey!"

🌟 Features

🔧 Project Generation & Initialization

  • Create project structures for multiple frameworks (Flask, FastAPI, React, Vue.js, etc.)
  • Initialize existing projects with pre-configured templates
  • Support for Python packages, Node.js modules, Go applications, and more

💻 AI-Assisted Coding

  • Interactive shell with persistent conversation history
  • Code generation from natural language prompts
  • Intelligent code extraction and file saving
  • Multi-file project scaffolding powered by LLMs

🕵️ Code Review & Refactoring

  • Automated code review for logic flaws, vulnerabilities, and best practices
  • Smart refactoring suggestions to improve code quality
  • Unit test generation for existing codebases
  • Detailed explanations of complex code sections

🔍 Intelligence Engine

  • Conversation history management with save/load capabilities
  • Configurable LLM settings (local Ollama support)
  • Security-conscious file operations with validation
  • Multi-language source code parsing and handling

📦 Installation

Install via pip:

pip install wukong-stack

Note: Requires Python 3.10+

🚀 Quick Start

Initialize a new project

wukong init

Create a full-stack web app skeleton

wukong create

Review existing code for vulnerabilities or logic errors

wukong review --path ./src/app.py

Generate unit tests automatically from current codebase

wukong unittest --path ./src/

Refactor problematic sections in your code

wukong refactor --path ./src/old_module.py

Start the interactive shell for continuous assistance

wukong shell

Use AI Code Assistant with custom prompts or files

wukong code --prompt "Write a Python function that sorts a list of dictionaries by their 'name' key"

Or use a file:

wukong code --prompt-file ./prompts/api_setup.txt

Save LLM output and extract code blocks:

wukong code --prompt "Generate REST API routes for user authentication" --save-llm-output --extract-code

AI Assistant Configuration Guide

Welcome to the AI Assistant setup instructions. You have two options to configure your AI assistant:

If you want to use a remote service like OpenAI, Anthropic, or other providers:

Step 1: Configure Basic Settings

# Set the API key (replace YOUR_API_KEY with your actual key)
wukong config set llm.api_key YOUR_API_KEY --global

# Set the timeout in seconds (optional)
wukong config set llm.timeout 30 --global

# If using a custom base URL, set it here
# wukong config set llm.base_url https://api.openai.com/v1 --global

Step 2: Verify Configuration

# Check current configuration
wukong config get llm.api_key
wukong config get llm.timeout
wukong config get llm.base_url

Step 3: Test Your Setup

Run a simple test to ensure everything works:

wukong chat "Hello, how are you?"

Option 2: Install Local LLM (For Users with GPU)

Installing Ollama

  1. Visit the official Ollama website: https://ollama.com/download

  2. Download and install Ollama for your operating system

  3. Follow the installation instructions specific to your OS:

    • Windows: Run the installer and follow prompts
    • macOS: Use Homebrew or download from website: brew install ollama
    • Linux: Install via package manager or curl script
  4. Once installed, run Ollama server:

ollama serve
  1. Pull a model (example with llama3):
ollama pull llama3
  1. Configure your AI assistant to use local LLM:
wukong config set llm.base_url http://localhost:11434/v1 --global
wukong config set llm.api_key placeholder --global  # Not required for Ollama
wukong config set llm.timeout 60 --global

Installing LM Studio

  1. Visit the official LM Studio website: https://lmstudio.ai

  2. Download and install LM Studio for your operating system:

    • Windows: Download .exe installer
    • macOS: Download .dmg file
    • Linux: Use package manager or download from website
  3. Launch LM Studio and follow the setup wizard to:

    • Install models (download preferred models like Llama, Mistral, etc.)
    • Configure local server settings
    • Set up API access if needed
  4. Once installed, configure your AI assistant:

wukong config set llm.base_url http://localhost:1234/v1 --global
wukong config set llm.api_key placeholder --global  # Not required for LM Studio
wukong config set llm.timeout 60 --global

Configuration Parameters Explained

  • llm.base_url: The endpoint URL of your LLM service (optional for OpenAI, mandatory for local)
  • llm.api_key: Your API authentication key
  • llm.timeout: Maximum time in seconds to wait for responses from the AI

Quick Setup Commands Summary

For Remote Services:

wukong config set llm.api_key YOUR_API_KEY --global
wukong config set llm.timeout 30 --global

For Local Ollama:

wukong config set llm.base_url http://localhost:11434/v1 --global
wukong config set llm.timeout 60 --global

For Local LM Studio:

wukong config set llm.base_url http://localhost:1234/v1 --global
wukong config set llm.timeout 60 --global

Troubleshooting Tips

  1. Connection Issues: Ensure your local server is running before configuring
  2. Authentication Problems: Double-check that your API keys are correct
  3. Timeout Errors: Increase timeout values if you're experiencing slow responses

Choose the option that best fits your setup and requirements!

📄 License

MIT © Sunny Liu

Metadata

Release files for wukong-stack 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wukong-stack 0.1.4
File Size Uploaded
wukong_stack-0.1.4.tar.gz 84.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wukong-stack 0.1.4
File Interpreter ABI Platform
wukong_stack-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 190.8 kB

Release files / wukong_stack-0.1.4.tar.gz

Download URL wukong_stack-0.1.4.tar.gz
Size 84.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3ef25fd4b2b453c497c050ff90ad6452fbbd99fddcbb090050450a7b298bc38d
BLAKE2b-256 checksum
How to use checksums
4df38f1549fa1a68960ef163d17c638344d2b08c03ba5c565fc161038198697b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / wukong_stack-0.1.4-py3-none-any.whl

Download URL wukong_stack-0.1.4-py3-none-any.whl
Size 106.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d345f16fed0283e728f3e3050ecaae14b4397fd4ea77f50666a412c64178895
BLAKE2b-256 checksum
How to use checksums
0ffcc0a85c6be35c85958d2c2ce5bf1d50341f48c099b1642959ed6ce9a267ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page