AI-Powered Web-Based IDE
An editor, a coding conversation, and a place to run it.
Fork · K0rea101 / Code_Assistant

CodeMirror 6 · Flask · LangGraph · OpenRouter
View repositoryThe idea
I forked K0rea101’s Code_Assistant. To understand how its editor and chat fit together, I followed one request from the browser into the Python router. The interesting detail is how the router keeps the question, the open files and the conversation together.
Three requests from one editor
Following a file into chat
I followed the chat path because an explanation only makes sense if the assistant sees the file I mean. The request carries named files into the router alongside my question and conversation history.
- Chat routes the prompt by intent.
- Completion returns a suggestion to the editor.
- Run sends program output back to the result panel.
A closer look at the code
What the router carries
I traced the editor context through these fields in the upstream assistant state. From routing.py.
class AssistantState(TypedDict):
user_input: str
intent: str
retrieved_examples: List[Dict[str, Any]]
generated_response: str
uploaded_files: List[Dict[str, str]] # [{filename, text}]
conversation_history: List[Dict[str, Any]] # [{role, content, timestamp, intent}]
context_summary: str # Summary of recent conversationInside the workspace

Scope & practical notes
- I reviewed the fork as a development workspace. Running untrusted code needs separate isolation.
Project credits
This repository is a fork of K0rea101 / Code_Assistant. The upstream authors retain credit for the original application.