How hungson175/sonph-code works
Project type and purpose
• This is a Python-based, command-line coding assistant (“Coding Agent”) that mimics Claude Code’s functionality.
• It orchestrates an LLM via LangChain and the Anthropic API, exposes a suite of “tools” (file I/O, directory ops, shell commands, task writer, search), and runs in interactive mode.
File structure
• Top-level:
• coding_agent.py – entry point & CLI REPL
• pyproject.toml, uv.lock – Python project config
• .env.example – environment variables (API keys)
• Directories:
• data/ – API request samples, parsed outputs (for testing & reference)
• docs/claude-code/ – extracted system prompts & tool specifications
• No separate “frontend” or “backend”: it’s a single-process CLI agent.
README for additional insights
• Core flow: CLI → Agent Core (LangChain agent) → tool dispatch or API calls → back to CLI.
• Dependencies: Anthropic API, LangChain, ripgrep (for search), uv for dependency management.
Detail without over-splitting
• Tool as its own module block.
• Where environment/config is loaded.
• Both local system integration (filesystem, shell) and remote API calls.