Explore Claude Code CLI architecture and implementation with a clear technical guide from startup flow to advanced query engine design