How orfanel-0205/code_hero works
CODE HERO/Kiritan is a beginner-focused JavaScript mentor, delivered through a desktop floating-character app or terminal, with a VS Code extension connection. The main workflow accepts a learner question or code context, routes it through mentoring and code analysis, then provides teaching, review, or code-with-me feedback; proposed edits are checked before acceptance. Separate product branches cover curriculum, project planning, Git coaching, live collaboration, voice, privacy/audit, and sandboxed execution. The README is empty, so capabilities and links here rely on the supplied tree and source excerpts/index; unsampled modules are represented conservatively.
Main entry points: core.js Mentor core · main.js Desktop app · prompts.js Prompt design · cowork.js Code with me
Components 31
User interfaces
- Desktop app
mentor/app/main.js - App interface
mentor/app/renderer.js - App bridge
mentor/app/preload.cjs - Terminal app
mentor/index.js - VS Code extension
kiritan-vscode/extension.js - Editor context
kiritan-vscode/lib.js - Editor bridge
mentor/bridge.js
Mentoring workflow
- Mentor core
mentor/core.js - AI models
mentor/ai.js - Cloud fallback
mentor/cloud.js - Prompt design
mentor/prompts.js
Learning and coding
- Code analysis
mentor/analysis.js - Teaching and debugging
mentor/teaching.js - Concept curriculum
mentor/curriculum/concepts.js - Exercises
mentor/exercises.js - Code with me
mentor/cowork.js - Project planner
mentor/planner.js - Git coaching
mentor/gitcoach.js - Live collaboration
mentor/live.js
Safety and privacy
- Code verification
mentor/verify.js - Execution sandbox
mentor/sandbox.js - Network firewall
mentor/sandbox/firewall.js - Secret protection
mentor/privacy.js - Audit log
mentor/audit.js - Local state
mentor/db.js
Voice interaction
- Voice input
mentor/voice-input.js - Voice commands
mentor/voice-commands.js - Voice output
mentor/voice.js - Voice engine
mentor/voicevox.js - Speech support
mentor/speech.js
Other components
- Learner
Connections 36
- Learner → Desktop app: asks or edits
- Learner → Terminal app: asks or edits
mentor/index.js - Learner → VS Code extension: shares editor context
- Desktop app → App interface: displays events
- App interface → App bridge: sends requests
- Desktop app → Mentor core: routes mentoring
mentor/app/main.js - Terminal app → Mentor core: starts mentoring
mentor/index.js - Desktop app → Editor bridge: starts editor link
mentor/app/main.js - Terminal app → Editor bridge: starts editor link
mentor/index.js - VS Code extension → Editor context: filters context
kiritan-vscode/extension.js - VS Code extension → Editor bridge: connects editor
- Mentor core → AI models: requests responses
mentor/core.js - Mentor core → Cloud fallback: uses fallback
mentor/core.js - Mentor core → Prompt design: builds requests
mentor/core.js - Mentor core → Code analysis: analyzes code
mentor/core.js - Mentor core → Teaching and debugging: coordinates teaching
mentor/teaching.js - Mentor core → Exercises: runs exercise tests
mentor/core.js - Mentor core → Code verification: checks suggestions
mentor/core.js - Teaching and debugging → Concept curriculum: looks up concepts
mentor/teaching.js - Teaching and debugging → Exercises: finds exercises
mentor/teaching.js - Code with me → Prompt design: builds code task
mentor/cowork.js - Code with me → Code verification: checks proposed code
mentor/cowork.js - Code with me → Exercises: runs tests
mentor/cowork.js - Project planner → Prompt design: builds plan request
mentor/planner.js - Git coaching → Prompt design: builds commit request
mentor/gitcoach.js - Mentor core → Execution sandbox: runs code safely
mentor/core.js - Execution sandbox → Audit log: records execution
mentor/sandbox.js - Network firewall → Execution sandbox: resolves executable
mentor/sandbox/firewall.js - Mentor core → Secret protection: finds secrets
mentor/core.js - Audit log → Secret protection: scrubs records
mentor/audit.js - Mentor core → Local state: persists state
mentor/core.js - Desktop app → Voice input: captures speech
mentor/app/main.js - Desktop app → Voice commands: parses commands
mentor/app/main.js - Mentor core → Voice output: speaks responses
- Voice output → Voice engine: uses voice engine
mentor/voice.js - Voice engine → Speech support: uses speech support
mentor/voicevox.js