Workflow#

You’ll need 2 windows:

  1. A text editor or IDE (Visual Studio Code, Pycharm, Spyder, neovim, Atom, Jupyterlab …)

  2. Klayout to Visualize the GDS files. With the klive klayout package for showing GDS files when you run. Tools -> Manage Packages Component.show()

1. Standard Python flow#

  1. You write your PCells in python.

  2. You execute the python code.

  3. You visualize the GDS Layout in Klayout, or run simulations using the plugin extensions directly from the layout (for devices) or netlist (from circuits).

windows

2. File-watcher flow#

For building large components can use a file-watcher and see your updates in KLayout every time you save.

  1. You execute the file watcher run this command on your terminal gf watch --path /home/jmatres/my_chips for watching my_chips folder or run it in the current working directory gf watch --path .

  2. The file-watcher re-runs any python file .py or YAML .pic.yml. For testing it you can go to gdsfactory/samples/demo/circuits, modify any of the files and take a look how klayout updates every time you save a file.

  3. Thanks to the cell cache you can see your new component changes live updating the layout in Klayout.

filewatcher

The file watcher works with python or pic.yml

python

or YAML

yaml

3. Schematic driven layout#

For Schematic-Driven Layout, we highly recommend using GDSFactory+ for a seamless and efficient design experience.

4. AI Agent workflow#

You can use AI agents (like Gemini CLI or Claude Code) to autonomously generate and iterate on component designs.

The gdsfactory-component-designer Agent Skill enables agents to:

  • Generate components from the built-in library or activated PDKs.

  • Visualize layouts and import images directly into the conversation context.

  • Iterate on designs by tweaking parameters based on visual feedback.

See the .agents/skills/ directory for more information on using Agent Skills.