<!-- Canonical page: https://reversedwithai.com/p/linux-cal-1752-calendar-switch-rea-demo -->
Canonical page: https://reversedwithai.com/p/linux-cal-1752-calendar-switch-rea-demo

# Traced where the Linux cal binary keeps the 1752 calendar switch, using REA on the stripped code

> Eleven missing days found in a stripped binary.

One plain English question to the agent found the hardcoded 1752-09-02 switch date in about a minute and a half, on video, with the trace checked by hand.

## Key facts

- Target: Ubuntu cal (stripped binary)
- Category: Legacy software
- Platform: Linux x86-64, static analysis
- Tools: REA, Ghidra, OpenCode
- Outcome: Research
- Checks: Source available: no; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: [Fahd Mirza](https://x.com/fahdmirza)
- Added: 2026-10-19
- Updated: 2026-10-19
- Sources reviewed: 2026-10-19 (editor)

## What was done

Fahd Mirza used REA with OpenCode and Ghidra on the stripped Ubuntu cal binary to find where the calendar switch to Gregorian time lives. Linux cal skips 11 days in September 1752, and the question was where the program knows that.

### How it was done

REA is an MCP server that plugs into AI coding agents; the setup ran on Ubuntu with Ghidra. The target is a stripped binary with no function names, in the same no-source-code situation as most shipping software. One plain English question drove the trace, and the agent reported the hardcoded 1752 date along with the evidence for each claim and flagged what had not been traced.

### Results

The switch date was located in about 1.5 minutes in the recorded demo. The result was then tested by hand from the terminal: switching the country or using the Julian calendar brings the missing days back, which matches the trace. The full hands-on video is on YouTube, and the reminder to analyse only software you are allowed to examine is in the post.

## Questions about Ubuntu cal (stripped binary)

### What is the Ubuntu cal (stripped binary) project?

One plain English question to the agent found the hardcoded 1752-09-02 switch date in about a minute and a half, on video, with the trace checked by hand. It is listed under Legacy software for Linux x86-64, static analysis.

### Which tools were used on Ubuntu cal (stripped binary)?

The entry names REA, Ghidra and OpenCode. It does not name an AI model.

### Did the AI reverse engineering of Ubuntu cal (stripped binary) work?

It is a research result, not a finished tool. Checks recorded: source available no.

### Is the source code for Ubuntu cal (stripped binary) available?

No. The write-up says the code is not released.

## Sources

- [Write-up](https://x.com/i/status/2110453427209916612)
- [Discussion](https://x.com/i/status/2110453427209916612)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Fahd Mirza (2026). Traced where the Linux cal binary keeps the 1752 calendar switch, using REA on the stripped code. Reversed with AI. https://reversedwithai.com/p/linux-cal-1752-calendar-switch-rea-demo
