Python Tutor Chatbot
Description
Conversational Python tutor — Chainlit + LangChain create_agent + LangGraph (InMemorySaver memory) + OpenRouter (claude-haiku) on Fly.io
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Python Tutor Chatbot
[](https://github.com/heitor-am/python-tutor-chatbot/actions/workflows/ci.yml) [](https://github.com/heitor-am/python-tutor-chatbot/actions/workflows/deploy.yml) [](https://www.python.org/downloads/release/python-3120/) [](#testing) [](LICENSE)
Conversational Python tutor — Chainlit UI on top of LangChain `create_agent` (the modern canonical pattern; `RunnableWithMessageHistory` legacy avoided per current docs) with thread-based memory via LangGraph `InMemorySaver`. Talks to OpenRouter behind a single `ChatOpenAI` client.
**Live:**
Quickstart
git clone git@github.com:heitor-am/python-tutor-chatbot.git
cd python-tutor-chatbot
uv sync --all-extras
cp .env.example .env
# edit .env and set OPENROUTER_API_KEY=sk-or-...
make dev
# open http://localhost:8000
Or just hit production: . Fly auto-stops the machine after idle, so the first message after a quiet period pays a 2-3s cold-start.
What it does
- Answers Python questions in PT-BR with executable examples and a clear "explain reasoning before code" structure.
- Remembers the conversation within a session via per-tab
thread_id+ LangGraphInMemorySaver. - Refuses off-topic questions in one polite sentence (smoke-verified end-to-end against real OpenRouter — see PR #3 description for the test transcript).
- Streams tokens as they arrive (via
agent.astream(stream_mode="messages")piped tocl.Message.stream_token()). - Logs structured thumbs-up / thumbs-down feedback.
- F
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11