This is a monorepo housing two terminal-based Instagram clients: a modern TypeScript client using React Ink for a rich Terminal User Interface (TUI) and a legacy Python client using curses. The system provides a full-featured Instagram experience entirely within the terminal, including real-time messaging via MQTT, feed and story browsing, profile viewing, multi-account management, authentication (with 2FA/challenge support), and one-turn CLI commands for AI agent integration. It also incorporates LLM-based chat summarization (OpenAI compatible) and basic analytics in the Python client. Architecture is straightforward: a CLI entry point (Pastel for TS, Typer for Python) dispatches commands, with the TUI built from reusable Ink components (ScrollView, MessageList, InputBox, etc.) that manage state via React hooks and contexts. A mock system enables offline UI development. External dependencies include reverse-engineered Instagram APIs (instagram-private-api, instagram_mqtt) and multiple utility libraries. The dual-client structure and reliance on patched, unofficial APIs introduce maintenance risks, but the TypeScript client is well-crafted with clear separation of concerns, thorough component reuse, and thoughtful UX design for keyboard-driven terminal use.
This repository contains the reconstructed source code of Claude Code (v2.1.88), Anthropic's official terminal-based AI coding assistant. It is a full-featured CLI application built on a custom Ink-based React renderer for terminal UI, with a sophisticated tool system, multi-agent orchestration (swarm/teammate modes), MCP (Model Context Protocol) integration, plugin marketplace, and enterprise management features. The architecture is modular: a core state management layer (createStore, signals), a tool abstraction (buildTool with Zod schemas, permissions, and UI rendering), a permission system with classifier-based auto-approval, and a terminal UI framework with Yoga layout, keyboard/focus management, and animation support. The application supports remote sessions via WebSocket bridge, scheduled tasks (cron), vim mode, computer use (macOS native), and extensive analytics/telemetry via Datadog, GrowthBook feature flags, and first-party event logging. External dependencies include the Anthropic API, AWS Bedrock/Vertex SDKs, MCP SDK, and various cloud provider SDKs. The codebase demonstrates high craftsmanship in state management patterns, tool orchestration, and terminal UI engineering, but also carries technical debt from feature flag proliferation, deprecated sync APIs, and ant-only code paths that complicate external reuse.
This repository is a fork and local enhancement of Anthropic's Claude Code CLI, branded as 'claude-code-tudou' (土豆版). It is a production-grade terminal AI coding assistant that provides an interactive AI agent within the terminal, capable of reading/writing files, executing shell commands, searching code, managing git operations, and orchestrating multi-agent teams. The system features a dual UI: a rich terminal interface built with React and Ink (custom terminal rendering framework) and an optional Electron desktop application with Vue 3 frontend. It supports third-party API providers (OpenRouter, MiniMax, Gemini, Bedrock, Vertex) via environment variables, making it a versatile alternative to the official Claude Code. The architecture is modular with clear separation: tool definitions (Bash, FileEdit, Glob, Grep, LSP, MCP, etc.), a plugin marketplace system, MCP (Model Context Protocol) integration, permission/security engine, session memory, and a swarm multi-agent subsystem. The codebase includes a custom Ink-based terminal UI framework with yoga layout, ANSI parsing, and event handling. It also provides a comprehensive settings system with multiple sources (user, project, managed), keybinding configuration, and analytics/telemetry infrastructure. While the code is well-structured and functional, it carries significant upstream Anthropic markers ('ANT-ONLY' imports, conditional internal features) and ad-hoc modifications for local execution stability. The fork adds value through configurable API endpoints, desktop UI, and stability fixes, but inherits complexity from the upstream codebase. The project is actively maintained with recent commits and demonstrates professional engineering standards.
This is a leaked internal source of 'Claude Code', a terminal-based AI coding assistant CLI built by Anthropic. The application is a monolith written in TypeScript with React/Ink for terminal UIs, running on the Bun runtime. In production, it provides an interactive REPL that connects to Claude LLMs to perform software engineering tasks: reading/writing files, executing bash/PowerShell commands, searching code with grep/glob, managing git operations, spawning sub-agents, running MCP servers, and more. It features a sophisticated permission engine, plugin ecosystem, skill system, IDE bridge (VS Code/JetBrains), and remote session support. The architecture is centered around a QueryEngine that orchestrates LLM API calls with streaming, tool loops, and retries. There are ~40+ tools (BashTool, FileEditTool, MCPTool, etc.) and ~50+ slash commands (/commit, /review, /config, /doctor). The codebase is extremely large (~1900 files, 512K+ lines) with significant internal complexity. However, it contains many stubs for removed internal packages (@ant/*, @anthropic-ai/mcpb, etc.), heavy use of bun:bundle feature flags, and countless ant-only conditionals (process.env.USER_TYPE === 'ant') that gate internal-only features. This means the source cannot be run as-is without Anthropic's infrastructure. While the engineering quality is high in places (clean TypeScript with Zod schemas, well-structured tool pipelines, a custom Ink renderer with Yoga layout), the codebase is not designed for external reuse or portability. It requires Bun, has many hardcoded internal service URLs, and the stubbed packages would need real implementations. For learning and inspiration, however, it offers excellent examples of: terminal UI architecture, permission engines, plugin systems, and AI agent tool frameworks.