agentleFS
The-Artificer-of-Ciphers-LLCThe-Artificer-of-Ciphers-LLC/skills-from-the-artificer/hofstadters-law/SKILL.md

hofstadters-law

Skill6 starsChanged 34 days agoMITView on GitHub

Apply Hofstadter's Law when estimating project timelines, discussing why software projects are always late, helping someone plan a sprint or roadmap, or coaching on estimation techniques. Trigger on phrases like "how long will this take?", "why does everything take longer than we plan?", "our estimates are always wrong", "we keep missing deadlines", or any discussion of software estimation and scheduling. Hofstadter's Law is one of the most universally experienced phenomena in software development.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Double your gut estimate: Not rigorous, but often closer to right.

    line 33
  2. Distinctive:

    Three-point estimation: Ask: best case, worst case, most likely case.

    line 35
  3. Distinctive:

    Add explicit buffer for integration: When estimating a feature, separately estimate: coding, testing, integration, code review, deployment, …

    line 37
  4. Distinctive:

    Don't fill the roadmap to 100% capacity.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hofstadter's Law

"It always takes longer than you expect, even when you take into account Hofstadter's Law." — Douglas Hofstadter, 1979 (Gödel, Escher, Bach)

The core idea

Software projects almost always take longer than estimated — and this isn't just because people are bad at estimating. The law's self-referential structure is the point: even when you know about the tendency to underestimate, you will still underestimate. The bias is deeper than awareness alone can fix.

Why this happens

1. Optimism bias. Humans naturally plan for the best-case scenario, not the median. We imagine things going right.

2. Unknown unknowns. You can estimate the work you can see. You can't estimate the work you don't know exists yet — and software always has more of that than expected.

3. Complexity is non-linear. Adding features to an existing system is slower than adding them to a greenfield one. Each new piece interacts with everything already there.

4. Integration and testing always take longer than the coding. Developers estimate the coding time, then implicitly assume everything else is "not much." It's always much.

5. Interruptions and context switching. Calendar time is not development time. Meetings, incidents, code reviews, and dependencies eat calendar days without appearing in estimates.

6. The planning fallacy. People plan based on how similar past projects went (not well) while estimating based on an idealized version of the current project.

Practical responses

Estimation strategies:

  • Double your gut estimate. Not rigorous, but often closer to right.
  • Use historical data. How long did similar things actually take? Use that as your baseline, not your intuition.
  • Three-point estimation. Ask: best case, worst case, most likely case. Combine them: (Best + 4×Most Likely + Worst) / 6. This builds in some uncertainty.
  • Break work into small pieces. Estimates are more accurate for small tasks than large ones. A "1-month project" is harder to estimate accurately than 20 "1-week tasks."
  • Add explicit buffer for integration. When estimating a feature, separately estimate: coding, testing, integration, code review, deployment, monitoring. The non-coding parts are often 40–60% of the total.

Communication strategies:

  • Be explicit about confidence levels: "This is a rough estimate with high uncertainty — could be 2x in either direction."
  • Give ranges, not point estimates: "Two to four weeks, depending on what we find."
  • Distinguish calendar time from engineering time and explain the difference to stakeholders.
  • Re-estimate as you learn more. Early estimates should be revisited as unknowns become known.

Planning strategies:

  • Don't fill the roadmap to 100% capacity. Leave buffer for the unexpected. A team operating at 80% has room to absorb surprises; one at 100% falls apart at the first unexpected problem.
  • Separate commitments from projections. "We're committed to X by date Y" is different from "we expect X to be ready around Z."

Key questions to surface

  1. Are we estimating based on ideal conditions or historical actual time?
  2. Have we broken this down into small enough pieces that we can estimate each piece?
  3. Have we accounted for testing, integration, code review, and deployment — not just coding?
  4. What's our buffer plan for when something unexpected comes up?
  5. Are we presenting point estimates when we should be presenting ranges?

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.