
myArch
A framework for organizing code and notes into self-similar hierarchies.
myArch gives structure an address. It numbers headings in documents to any depth (numeric, alphabetic, Roman, or symbolic) and organizes Python code into a four-level cell model, with commands to inspect the numbering, preview a repair, and apply it atomically.
It's the most philosophical project here, and if you're building agents you're gonna want some Architectonics. It comes with a terminal browser for exploring a tree.
$ arch check --spec formal-markdown --diff guide.md --- ~/ai/scratch/demo-t/arch/guide.md +++ ~/ai/scratch/demo-t/arch/guide.md @@ -1,13 +1,13 @@ -# Field Guide +# `1` Field Guide -## `1` Introduction +## `1.1` Introduction Some text. -## `2` Habitats +## `1.2` Habitats More text. -## `4` Conclusion +## `1.3` Conclusion Final text. ~/ai/scratch/demo-t/arch/guide.md:1:3: ARCH001 missing idx `1` ~/ai/scratch/demo-t/arch/guide.md:3:4: ARCH002 idx '`1`' is out of sequence; expected `1.1` ~/ai/scratch/demo-t/arch/guide.md:7:4: ARCH002 idx '`2`' is out of sequence; expected `1.2` ~/ai/scratch/demo-t/arch/guide.md:11:4: ARCH002 idx '`4`' is out of sequence; expected `1.3`