squid-protocol

Agent Habits — Development skill for Claude Code

Development community

Do coding agents have habits.

How to install Agent Habits

This entry records only its repository, not the path inside it, so there is no exact command to give. Open squid-protocol/agent-habits and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Habits does

Do coding agents have habits? Claude Code (Sonnet, Haiku) vs Codex on the same tasks, measured structurally with GitGalaxy; pre-registered, 60 fresh runs, building on Mathieu Acher's paired-agent studies.

Alternatives in Development

  • Reset Content Gen — Reset apps/content-gen to fresh state for new voice-based agentic coding experiments 296 ★
  • Prompt Sensei — Local-first prompt coach for Claude Code and Codex that improves prompts, observes prompting habits, and analy 107 ★
  • Pre Coding Check 90 ★

README

Agent habits

**Abstract.** We asked whether AI coding agents leave measurable, model-specific habits in the programs they write, and whether a training-free, AST-free structural scanner can see them. Three agent/model combinations (Claude Code with Sonnet 5.5 and with Haiku 5.5, two independent rounds each; Codex CLI with gpt-6-luna) each built a UCI chess engine and a DPLL SAT solver in C, Java, Python, Rust and COBOL without human steering: 60 programs, 59 of them working. The hypotheses came from an exploratory analysis of Mathieu Acher's human-steered Claude Code / Codex pairs and were pre-registered with a public timestamp before any run. The predicted Claude-vs-Codex habits were **not confirmed** after correction. Codex's tendency to exit early came closest (9 of 10 cells, Holm p = 0.054); its Python helper scripts disappeared; and the fan-out prediction reversed. Instead, habits proved **model-specific**: Haiku comments and documents more than Sonnet in all 10 cells, and documents more functions than Codex in all 10. Each model's habits replicate across independent rounds. Structure alone is distinctive. With no training step, a program's nearest structural neighbour on the same task and language came from the same model **83 % of the time (chance 27 %, p < 0.001)**. That result was exploratory and is pre-registered for replication on fresh runs and a new task (round 3). We also found that AI-written code can defeat static-analysis safeguards. Codex's ultra-dense programs (whole chess engines in 35–56 lines) were skipped by the scanner's anti-minification guard. The gap was caught by a tree-sitter/ctags cross-check, handled by a pre-stated rule and fixed upstream.

**Do AI coding agents have habits you can measure from their code?** We gave the same two tasks (a UCI chess engine and a DPLL SAT solver) in the same five languages (C, Java, Python, Rust, COBOL) to three agent/model combinations, with no human in the loop, and m