From Star to Calendar to App: Why Six Lines Exists

The tradition behind Six Lines is 2,100 years old. It has sources. They are traceable. This is not a marketing claim—it is a historical fact.

Part 6 of The Court Historian's Art — a series on how astronomy, record-keeping, and divination became one tradition.

Mountain river flowing through six gorges from snowy peaks to a warm valley, each gorge holding a different era — Chinese ink painting

The Thread

If you've followed this series from the beginning, you've watched a single discipline evolve across two millennia. Let me trace the thread one more time—not to retell what we've already covered, but to make visible the pattern that connects it.

It starts with the 太史—the Grand Historian—whose job title sounds like it belongs to a librarian but whose actual responsibilities included astronomical observation, calendar maintenance, omen interpretation, and advising the emperor on auspicious timing. History, astronomy, divination. One office, one person, one discipline.

That office produced the Taichu reform of 104 BC—when Sima Qian, Luoxia Hong, and Deng Ping rebuilt the calendar. Not primarily to improve astronomical precision, but to standardize conventions: the month-numbering, the twenty-four solar terms, the intercalary month rule. They created the coordinate system that everything after would be plotted onto.

Within a generation, Meng Xi and Jing Fang mapped the sixty-four hexagrams onto that coordinate system. The 卦氣六日七分 method anchored hexagrams to solstices, equinoxes, and solar terms—each governing roughly six days of the year. This wasn't mysticism imposed on a calendar. It was pattern recognition applied to a newly standardized grid. The calendar made the hexagram-time mapping possible.

Seventeen centuries later, the Qing emperor Qianlong ordered the compilation of the Xieji Bianfang Shu—thirty-six volumes that did to the almanac tradition what the Taichu reform had done to the calendar. They collected the competing systems, tested them against each other, rejected what was contradictory, and published the result as an imperial standard. Not invention. Curation. Editorial discipline applied to centuries of accumulated practice.

And in between, Shao Yong extended the hexagram-time mapping to cosmic scales—the 元會運世 framework that assigned hexagrams to years within sixty-year cycles, and those cycles within larger epochs. Where Meng Xi and Jing Fang had mapped hexagrams onto the solar year, Shao Yong mapped them onto history itself.

The Pattern Under the Pattern

Here's what people miss when they look at this tradition from the outside: at every stage, the work was about the same thing. Standardization. Legibility. Making patterns readable and conventions consistent.

The Taichu reform standardized how China measured time. The hexagram qi system standardized how the I-Ching mapped onto that measurement. The Xieji Bianfang Shu standardized how the almanac tradition derived its rules. Shao Yong standardized how hexagram-time mapping scaled beyond a single year. Different problems, different centuries, same methodology: collect the competing approaches, test them, discard what doesn't hold, publish the result.

This is not the profile of a tradition that was making things up as it went along. This is editorial discipline—sustained across dynasties, applied by people who took their sources seriously and argued fiercely about which ones to keep.

The Modern Fracture

Today, the disciplines that the 太史 held together have been pulled apart. History is academic. Astronomy is scientific. Divination is dismissed—or, worse, reduced to entertainment. The idea that these three activities were once one discipline, practiced by serious people with state authority and rigorous methodology, strikes most modern observers as implausible.

But the Chinese almanac—the 黃曆—remains a living artifact of their unity. When your grandmother checks the almanac before scheduling a wedding, she is consulting a document whose structure descends from the Taichu reform's solar terms, whose hexagram associations trace to Meng Xi and Jing Fang, and whose specific rules were standardized by the Xieji Bianfang Shu. She may not know this history. But the tradition carries it regardless.

What Six Lines Does Differently

Most almanac apps treat the tradition as a black box. They output daily ratings—good day, bad day, auspicious for this, avoid that—without tracing where those ratings come from. Some use simplified scoring algorithms. Some mix incompatible source traditions. Some invent their own rules. The result, as we discussed in an earlier article, is that three apps will give you three different answers for the same day.

Six Lines follows the sources. This is the core design decision, and the entire series you've just read is the argument for why it matters. The tradition has sources. They are specific, identifiable, and debated by scholars for centuries. Following them is not nostalgia. It is the same editorial discipline the tradition itself has always practiced.

Here is what that means concretely:

  • The daily hexagram uses the 卦氣六日七分 system developed by Meng Xi and Jing Fang in the first century BC—the same system described in the hexagram qi article.
  • The annual hexagram uses Shao Yong's sixty-year cycle from the eleventh century—the framework explored in the cosmic clock article.
  • The almanac follows the Xieji Bianfang Shu (1739)—the imperial compilation that standardized the tradition.
  • Solar terms use the conventions the Taichu reform formalized in 104 BC, updated with modern astronomical precision.
  • Liu Yao structural analysis descends from Jing Fang's 納甲 system—the method of assigning Heavenly Stems and Earthly Branches to hexagram lines that made the I-Ching into an analytical framework rather than a collection of poetry.

Each of these implementations is traceable to a specific source, from a specific period, by identifiable authors or compilers. None of them are invented. None of them are "inspired by" the tradition in the vague way that word usually signals. They follow it.

The Lineage Is the Point

Six Lines does not claim to be the I-Ching. It does not claim to predict the future. It claims to follow the sources—to implement, as faithfully as a modern application can, the systems that the tradition developed, tested, argued over, revised, and transmitted across twenty-one centuries.

That lineage is what makes the app possible. The 太史 established the institutional framework. The Taichu reform created the calendar conventions. Meng Xi and Jing Fang mapped the hexagrams onto time. The Yilin preserved a parallel interpretive tradition. The Xieji Bianfang Shu standardized the almanac. Shao Yong extended the temporal mapping. Each layer built on the previous ones. Each layer left sources.

And that lineage is what makes the app different. Not the interface, not the features, not the design. The difference is that when Six Lines tells you today's hexagram, it can point to the system that generated it—a system with a name, a date, authors, and a textual history you can read for yourself in the 漢書 or the 漢上易傳.

The tradition has sources. They're traceable. That's not a slogan. It's 2,100 years of editorial discipline, still running.

References

Primary Sources

史記 (Records of the Grand Historian). Sima Qian's foundational history, including the Treatise on the Calendar (曆書) and the account of the 太史 office. Chinese Text Project

漢書 (Book of Han). Contains the Treatise on Harmonics and Calendar (律曆志), the most detailed record of the Taichu reform and the hexagram qi system. Chinese Text Project

左傳 (Zuo Zhuan). The earliest extended narrative of Chinese history, documenting the integration of divination and statecraft in the Spring and Autumn period. Chinese Text Project

漢上易傳·卷十三. Classical source for the hexagram qi (卦氣) and 六日七分 system. Chinese Text Project

協紀辨方書 (Xieji Bianfang Shu). The 1739 imperial almanac compilation ordered by Emperor Qianlong. Thirty-six volumes standardizing the Chinese almanac tradition.

皇極經世書 (Huangji Jingshi Shu). Shao Yong's cosmological work mapping hexagrams onto historical epochs through the 元會運世 framework.

Secondary Scholarship

Raphals, Lisa. Divination and Prediction in Early China and Ancient Greece. Cambridge University Press, 2013. Comparative study of divinatory traditions and their institutional contexts.

Smith, Richard J. Fortune-tellers and Philosophers: Divination in Traditional Chinese Society. Westview Press, 1991. Comprehensive survey of Chinese divinatory practices and their textual transmission.