🤖 AI Summary
Traditional software engineering practices are human-centric and ill-suited to the requirements of large language model (LLM) agents in code understanding and generation. This work proposes the principle of semantic density optimization, advocating for the decoupling of semantic intent from human-readable representations and introducing novel code representations such as program skeletons. Through controlled experiments, the study evaluates the impact of four log formats—human-readable, structured, compressed, and tool-assisted compressed—on agent performance. Results show that excessive compression, while reducing input tokens by 17%, increases reasoning overhead and raises total conversation cost by 67%, thereby underscoring the critical importance of preserving tokens with high semantic value.
📝 Abstract
For six decades, software engineering principles have been optimized for a single consumer: the human developer. The rise of agentic AI development, where LLM-based agents autonomously read, write, navigate, and debug codebases, introduces a new primary consumer with fundamentally different constraints. This paper presents a systematic analysis of human-centric conventions under agentic pressure and proposes a key design principle: semantic density optimization, eliminating tokens that carry zero information while preserving tokens that carry high semantic value. We validate this principle through a controlled experiment on log format token economy across four conditions (human-readable, structured, compressed, and tool-assisted compressed), demonstrating a counterintuitive finding: aggressive compression increased total session cost by 67% despite reducing input tokens by 17%, because it shifted interpretive burden to the model's reasoning phase. We extend this principle to propose the rehabilitation of classical anti-patterns, introduce the program skeleton concept for agentic code navigation, and argue for a fundamental decoupling of semantic intent from human-readable representation.