agentic-intent-model

AIM diary example

A diary written in AIM 7: the shapes and the rules in one intent, the people and the journal in two Entries files. The starter entries are fictional. The reader runs locally with Python 3.9 or later and no dependencies.

  1. To add a person, open People and append a block like this.

    ## Person: Sam
    
    - name: "Sam Lee"
    
  2. Open the Journal and add an entry underneath the starter entries. Its ID is its date. Each link names the target by its ID in square brackets.

    ## DiaryEntry: 2026-11-29
    
    - date: 2026-11-29
    - mood: [Calm](aim:diary#Record:Mood[calm])
    - mentions:
      - [Anna](aim:diary#Record:Person[Anna])
      - [Sam](aim:diary#Record:Person[Sam])
    - followsUpOn: [28 November](aim:diary#Record:DiaryEntry[2026-11-28])
    
    ### Text: body
    
    I looked up trains and sent Anna and Sam the times.
    
  3. Run the reader from this folder. entry follows an entry’s links and shows what follows up on it. person shows where someone is mentioned.

    python3 diary.py check
    python3 diary.py entry 2026-11-28
    python3 diary.py person Anna
    

A line that an assistant added ends in — from: proposed by <name>, <date> until the diarist confirms it. The reader shows that mark on the link and on its backlink. --confirmed leaves out everything that is still a suggestion:

python3 diary.py --confirmed person Anna

The text of an entry can have several paragraphs, lists, and headings at level four or deeper. mentions, followsUpOn and mood are optional. The intent defines the fields, the rules between the diarist and an assistant, and the fixed moods calm and restless.

The reader checks the files as written: the key each Record names in its Schema, typed entry headings, list and document files, links to entries and to fixed rows, and origin marks. It does not write. Confirming a line, refusing a change to an immutable field and making the weekly reflection are not part of it, and it does not read a language on a text heading, anchors or links into other models.