<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: YunTai</title>
    <description>The latest articles on DEV Community by YunTai (@yuntaihua).</description>
    <link>https://dev.to/yuntaihua</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3934350%2F97bccd81-91d8-4776-ac00-4d3c1b704ad3.png</url>
      <title>DEV Community: YunTai</title>
      <link>https://dev.to/yuntaihua</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yuntaihua"/>
    <language>en</language>
    <item>
      <title>IllusionCode — A Python implementation of Claude Code</title>
      <dc:creator>YunTai</dc:creator>
      <pubDate>Sat, 16 May 2026 06:47:48 +0000</pubDate>
      <link>https://dev.to/yuntaihua/illusioncode-a-python-implementation-of-claude-code-1el1</link>
      <guid>https://dev.to/yuntaihua/illusioncode-a-python-implementation-of-claude-code-1el1</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://github.com/YunTaiHua/illusion-code" rel="noopener noreferrer"&gt;https://github.com/YunTaiHua/illusion-code&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  📖 Introduction
&lt;/h2&gt;

&lt;p&gt;IllusionCode is an open-source AI-powered command-line programming assistant that brings together the best ideas from many projects and adds its own innovations. It inherits Claude Code's complete prompt system and tool architecture, draws inspiration from OpenHarness's Python architecture design, uses the same Cron task scheduling architecture as OpenClaw, and implements flexible proxy routing through cc-switch. On this foundation, IllusionCode provides deep Windows optimization, full bilingual (Chinese/English) interface support, and more comprehensive Markdown terminal rendering than comparable projects.&lt;/p&gt;

&lt;h3&gt;
  
  
  Core Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;🪟 &lt;strong&gt;Deep Windows Optimization&lt;/strong&gt; - Auto-detect Git, PowerShell support, path compatibility optimization&lt;/li&gt;
&lt;li&gt;🖥️ &lt;strong&gt;Zero Terminal Flicker&lt;/strong&gt; - Stable rendering based on Ink Static component, suppressing resize event interference&lt;/li&gt;
&lt;li&gt;🌍 &lt;strong&gt;Bilingual Interface&lt;/strong&gt; - All CLI output automatically switches between Chinese and English based on &lt;code&gt;ui_language&lt;/code&gt; setting&lt;/li&gt;
&lt;li&gt;📝 &lt;strong&gt;Comprehensive Markdown Rendering&lt;/strong&gt; - Box-drawing tables, rounded card-style code blocks, multi-color rich text, links and more&lt;/li&gt;
&lt;li&gt;📂 &lt;strong&gt;Project-Level Config Friendly&lt;/strong&gt; - Auto-generate skills, rules, mcp, plugins directories, project-level skills override global ones&lt;/li&gt;
&lt;li&gt;🤖 &lt;strong&gt;Multi AI Provider Support&lt;/strong&gt; - Anthropic Claude, OpenAI, GitHub Copilot, OpenAI Codex, and any OpenAI-compatible endpoint&lt;/li&gt;
&lt;li&gt;🛠️ &lt;strong&gt;Rich Toolset&lt;/strong&gt; - 34 built-in tools + MCP dynamic tool extension&lt;/li&gt;
&lt;li&gt;⌨️ &lt;strong&gt;51 Slash Commands&lt;/strong&gt; - Covering session management, configuration, project operations, task scheduling, etc.&lt;/li&gt;
&lt;li&gt;🧠 &lt;strong&gt;Multi-Agent Collaboration&lt;/strong&gt; - 7 built-in specialized Agents, supporting task orchestration&lt;/li&gt;
&lt;li&gt;🔌 &lt;strong&gt;Flexible Extension System&lt;/strong&gt; - Plugins, hooks, skills, MCP servers&lt;/li&gt;
&lt;li&gt;🔐 &lt;strong&gt;Comprehensive Permission Control&lt;/strong&gt; - Three modes + fine-grained rules + Always Allow one-click approval&lt;/li&gt;
&lt;li&gt;💾 &lt;strong&gt;Memory &amp;amp; Context&lt;/strong&gt; - Project knowledge persistence and dynamic retrieval&lt;/li&gt;
&lt;li&gt;🎨 &lt;strong&gt;Modern Terminal Interface&lt;/strong&gt; - React + Ink component-based TUI&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Design Origins &amp;amp; Innovations
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Inherited from Claude Code&lt;/strong&gt;: Complete injection of Claude Code's system prompts, tool definitions, permission model, and multi-agent coordination architecture, ensuring behavioral consistency.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Inspired by OpenHarness&lt;/strong&gt;: Python architecture design references OpenHarness's ideas.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cron Architecture Aligned with OpenClaw&lt;/strong&gt;: The scheduled task system uses the same scheduler architecture as OpenClaw, supporting independent session execution, execution history tracking, and consecutive error monitoring.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;cc-switch Proxy Routing&lt;/strong&gt;: Local proxy routing through the cc-switch reverse proxy tool, supporting request forwarding to different AI providers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deep Windows Optimization&lt;/strong&gt;: Auto-detect Git installation path, unified PowerShell and Bash tool processing, automatic path separator compatibility, out-of-the-box experience for Windows users.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Zero Terminal Flicker&lt;/strong&gt;: Uses Ink &lt;code&gt;&amp;lt;Static&amp;gt;&lt;/code&gt; component architecture, static rendering for completed messages, dynamic rendering for streaming messages, completely solving terminal flicker issues.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bilingual Interface&lt;/strong&gt;: All CLI output (auth, mcp, plugin, cron, session, etc.) automatically switches language via the i18n system based on the &lt;code&gt;ui_language&lt;/code&gt; field. Language preference can be selected on first run.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Comprehensive Markdown Rendering&lt;/strong&gt;: Full rendering of box-drawing tables, rounded card-style code blocks, multi-color rich text (bold, italic, inline code, links), significantly improving AI response readability.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Project-Level Config Automation&lt;/strong&gt;: Auto-generate &lt;code&gt;&amp;lt;project&amp;gt;/.illusion/rules/&lt;/code&gt; and &lt;code&gt;&amp;lt;project&amp;gt;/.illusion/skills/&lt;/code&gt; directories, project-level configuration takes precedence over global configuration, facilitating team collaboration.&lt;/p&gt;




&lt;h2&gt;
  
  
  🚀 Quick Start
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Requirements
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Python &amp;gt;= 3.10&lt;/li&gt;
&lt;li&gt;Node.js (for frontend TUI)&lt;/li&gt;
&lt;li&gt;Supports Windows, macOS, Linux&lt;/li&gt;
&lt;li&gt;Windows users: Auto-detect Git, no manual PATH configuration needed&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/your-repo/illusion-code.git
&lt;span class="nb"&gt;cd &lt;/span&gt;illusion-code
uv &lt;span class="nb"&gt;sync&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: &lt;code&gt;uv sync&lt;/code&gt; only creates a virtual environment within the project directory and does NOT register the &lt;code&gt;illusion&lt;/code&gt; command globally in your PATH. To use &lt;code&gt;illusion&lt;/code&gt; from any directory, use one of:&lt;/p&gt;


&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Option 1: Use uv run from the project directory&lt;/span&gt;
&lt;span class="nb"&gt;cd &lt;/span&gt;illusion-code
uv run illusion

&lt;span class="c"&gt;# Option 2: Activate the virtual environment first&lt;/span&gt;
&lt;span class="c"&gt;# Windows&lt;/span&gt;
.venv&lt;span class="se"&gt;\S&lt;/span&gt;cripts&lt;span class="se"&gt;\a&lt;/span&gt;ctivate
&lt;span class="c"&gt;# macOS / Linux&lt;/span&gt;
&lt;span class="nb"&gt;source&lt;/span&gt; .venv/bin/activate
illusion

&lt;span class="c"&gt;# Option 3: Install globally with pip&lt;/span&gt;
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Basic Usage
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;First-time setup&lt;/strong&gt;: Run &lt;code&gt;uv run illusion auth login&lt;/code&gt; first to configure your API credentials. Without authentication (or if the model is unavailable), the program may exit with an error code.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# First-time: configure authentication&lt;/span&gt;
uv run illusion auth login

&lt;span class="c"&gt;# Start interactive session (recommended)&lt;/span&gt;
illusion

&lt;span class="c"&gt;# Non-interactive print mode&lt;/span&gt;
illusion &lt;span class="nt"&gt;-p&lt;/span&gt; &lt;span class="s2"&gt;"Analyze the structure of this project"&lt;/span&gt;

&lt;span class="c"&gt;# Specify model&lt;/span&gt;
illusion &lt;span class="nt"&gt;-m&lt;/span&gt; env_1.model_2

&lt;span class="c"&gt;# Continue most recent session&lt;/span&gt;
illusion &lt;span class="nt"&gt;--continue&lt;/span&gt;

&lt;span class="c"&gt;# Restore specific session&lt;/span&gt;
illusion &lt;span class="nt"&gt;--resume&lt;/span&gt; &amp;lt;session-id&amp;gt;

&lt;span class="c"&gt;# Set permission mode&lt;/span&gt;
illusion &lt;span class="nt"&gt;--permission-mode&lt;/span&gt; full_auto

&lt;span class="c"&gt;# Specify API format&lt;/span&gt;
illusion &lt;span class="nt"&gt;--api-format&lt;/span&gt; openai
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






</description>
      <category>ai</category>
      <category>micropython</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
