Live session scripts#
These scripts accompany JITX AI Agent Integration and Interactive Design Sessions. Run them in a JITX project with a persistent design session.
Copy the five .py files into the project root and run commands there with the project environment active. Replace mypkg.main.MyDesign with the name reported by jitx design find.
Start with inspect_layout.py. An inspection path such as circuit.u1 maps to rd.root.circuit.u1 in Python; these names come from the project source. Replace the example paths before running the edit scripts. Review all coordinates for the actual board.
Script |
Operation |
|---|---|
Wait, capture, and report component placements and physical-design issues. |
|
Place |
|
Place |
|
Place |
|
Place |
Run a baseline inspection, the selected edit, and another inspection:
jitx --format json design exec mypkg.main.MyDesign inspect_layout.py
jitx --format json design exec mypkg.main.MyDesign place_component.py
jitx --format json design exec mypkg.main.MyDesign inspect_layout.py
Substitute another reviewed edit script for place_component.py as needed. Every edit script checks the wait result, captures again, and returns issue completeness and error count. Compare the fresh captured placement and issue report with the baseline. A timeout can occur after an edit has applied; inspect before retrying.
Read the application note for result handling, capture lifetimes, and callbacks. Capturing a partially assigned design can assign its remaining pins.