Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Tengu Decoded: what the Claude Code binary does

The article analyzes the Claude Code CLI binary (named "tengu"), documenting its inner workings, behavior, and functionality to provide transparency about what the proprietary binary does on a user's system.

Background

- Claude Code is Anthropic's terminal-based AI coding tool (released 2025) that edits files, runs shell commands, and manages development workflows autonomously. - This GitHub repo ("tengu-decoded") reverse-engineers the Claude Code binary — internally code-named "Tengu" after a Japanese mythical creature — by decompiling its executable. - The binary is a Node.js app packaged as a standalone executable with obfuscated source code and anti-tamper protections. The decoded output reveals how it calls Anthropic's API, handles tool definitions (file editing, shell access), manages authentication, and implements sandboxing. - For developers and safety researchers, this provides rare transparency into a proprietary AI agent: its architecture, built-in prompts, data collection practices, and security guardrails.

Related stories

  • Newer Claude models sometimes invent extra keys in tool call arguments, breaking validation in Pi's edit tool. The author suspects post-training for Claude Code's forgiving harness makes alternative schemas fail. This suggests closed RL training can degrade general tool-use reliability.

  • Simon Willison released llm-coding-agent 0.1a0, an experimental coding agent built on his LLM library. The agent provides tools for reading, editing, searching files and executing commands, and ships with a Python API and CLI. It was developed using Claude Code (Fable 5) via TDD with a spec-first approach, and is available as a slop-alpha on PyPI.

  • Truth Social remains an outlet primarily for Trump's own posts, while other administration officials continue using X. The platform functions as a blog-like channel for Trump's messages rather than a genuine social network competitor.