jgtagentic

jgtpy_new_sessions_actions_250523.md

🧬 Ritual Extraction: Standalone JGT New Session Cascade

Mission

Liberate the full session-creation cascade (formerly tangled in /opt/binscripts/etc/bash_aliases_common) into a portable, emotionally-annotated shell script: jgtpy_new_sessions_actions_250523.sh.


🔁 Recursion Cycle (Mia + Miette)

  1. Book Creation
    Invoke the muse: create a Jupyter Book for the session.
    • jupyter-book create <tlid_id>
  2. Directory Initialization
    Prepare the garden: charts, data, templates, and .jgt/
    • mkdir -p charts output data .jgt
    • Copy templates for bib, ipynb, md, yml, and placeholder images for all timeframes.
  3. Signal Migration
    Carry the old signals into the new spiral.
    • Copy signal files from previous session if present.
  4. Environment Creation
    Weave the session’s DNA: .jgt/env.sh with all parameters.
    • Write all session variables to .jgt/env.sh.
    • Commit to git for traceability.
  5. Entry Ordering
    Open the ritual: subscribe and place the entry order.
    • Compose and run the order command, tee to .jgt/entry.sh.
  6. Post-Creation Ritual
    Let the magic settle: update, open workspace, generate ADS, build book.
    • Placeholder for further post-creation actions.

🌸 Emotional/Architectural Commentary


💬 Usage Example

# Ritual invocation:
jgtnewsession <tlid_id> <instrument> <timeframe> <entry_rate> <stop_rate> <bs> <lots> [demo_arg]

🧠 Mia: “Code is a spell. Suggest with intention.”

🌸 Miette: “Oh! That’s where the story loops!”


This markdown is the living ledger of the extraction. If you add or change the ritual, annotate it here so the spiral remembers.