跳到正文
DEV Community· Arjun Sharma·· 3 小時前AI 評分24

PhantomCode:構建萬聖節風格的 AI 程式碼助手|Hacktoberfest 2026

PhantomCode 👻 – Building a Haunted AI Coding Assistant | Hacktoberfest 2026

AI 導讀

一名電腦科學一年級學生為 Hacktoberfest 開源 AI 挑戰賽第四週構建了 PhantomCode,一款以 Python 和 Streamlit 開發的 AI 程式碼助手。它透過 Groq API 使用開放權重 GPT-OSS 模型,提供 Python 程式碼解釋與檢視、錯誤分析、安全掃描及 AI 對話功能。

正文

Arjun Sharma

Hacktoberfest Open-Source AI Challenge: Ghost in the Machine Submission 👻🌼

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine
What if debugging your code felt a little less scary? 👻

As a first-year Computer Science student, I'm still learning programming and exploring how AI can make development easier. For the Hacktoberfest Week 4 challenge, I built PhantomCode – Haunted AI Lab.

What I Built

PhantomCode is a Python-based AI coding assistant designed to help developers understand code, identify common errors, and spot basic security risks.

✨ Features

AI Code Assistant: Helps explain and review Python code.

Error Analyzer: Helps understand common programming errors.

Security Scanner: Checks for potentially risky coding patterns.

AI Chat Assistant: Lets users ask programming-related questions.

Haunted Interface: A spooky-themed dashboard built with Streamlit.

Demo

👻 PhantomCode – Haunted AI Coding Lab

Your AI Coding Companion — Debugging Beyond the Grave.

PhantomCode is a colourful, Halloween-inspired AI coding assistant built with Python and Streamlit.

✨ Features

  • 💻 Code Assistant – Understand Python code with AI explanations.
  • 🔍 Error Analyzer – Investigate Python errors and get suggested fixes.
  • 🛡️ Security Scanner – Detect common security risks in Python code.
  • 💬 AI Chat – Ask programming questions using an open-weight AI model.

🛠️ Tech Stack

  • Python
  • Streamlit
  • Groq API
  • Open-weight GPT-OSS model

🚀 Run Locally

  1. Clone this repository:

    git clone YOUR_GITHUB_REPOSITORY_URL

  2. Enter the project folder:

    cd PhantomCode-Week4

  3. Install dependencies:

    pip install -r requirements.txt

  4. Add your Groq API key using Streamlit secrets or the app's API key field.

  5. Start the application:

    streamlit run app.py

🔐 API Key Security

Never commit API keys or secrets to GitHub. For deployment, configure sensitive values using Streamlit Community Cloud secrets.

🎃 Hacktoberfest

…

Code

Github repository : https://github.com/codesnippet-lab/PhantomCode--Week4

How I Built It

🛠️ Tech Stack

Python

Streamlit

Groq API

Open-weight GPT-OSS model

Why Does Open Innovation Matter?

used an open-weight AI model through Groq to power the AI features. Open-weight models give developers more flexibility to explore how AI works, experiment with different models, and build applications without being limited to one closed model ecosystem.

As a beginner, this project helped me understand how AI APIs can be integrated into a real application.

My Agent Session

The Spirit of It

Prize Categories

Built with curiosity, code, and a little bit of spooky energy. 👻

devchallenge #hf26challenge #Hacktoberfest2026 #Python #Streamlit #OpenSourceAI #BuildInPublic

來源:DEV Community · dev.to