Noodle 🍜
Architecture as code, checked against the real infrastructure.
Noodle turns an architecture described as code into readable, presentation-grade
diagrams that are designed to stay in sync with the systems they describe: discovery
drafts the model from real manifests, and a lint refuses a diagram a person cannot read.
It aims further: interactive views, guided tours, visual PR diffs, live overlays, and a
model AI agents can query. See the vision, which relates this to
architecture as code and living documentation.

Status
Contracts v1alpha1. A system is a model (what exists), views (what each diagram
shows) and layouts (where a topology is drawn), rendered to draw.io in a dark or light
theme. Five view types: topology, sequence, landscape (tech stack), catalog (service
catalogue) and matrix (who may act on what, before and after a plan). noodle refuses to emit a diagram whose lines cross boxes, whose labels
collide, or whose arrows break the connection semantics. Next: static discovery from
Kubernetes manifests (roadmap).
Install
noodle is one binary, noodle, plus a skill and three subagents that teach an AI agent to
use it. Claude Code gets both from a plugin. OpenCode and Codex get the binary, then
noodle setup writes the skill and the agents where they look.
Claude Code
/plugin marketplace add TheGostsniperfr/Noodle
/plugin install noodle@noodle
Then enable auto-update once, under Marketplaces in /plugin, to follow main.
The plugin puts noodle on the PATH. On first use it builds itself from the plugin's
sources with Go or with Nix, or downloads a release binary when neither is installed;
a noodle already on the PATH wins. PNG and SVG exports also need
draw.io desktop (drawio).
To offer it to everyone working in a repository, run once there and commit the result:
claude plugin marketplace add TheGostsniperfr/Noodle --scope project
OpenCode
Install the noodle binary (see Nix below, or take an archive from the
releases), then in your repository:
noodle setup opencode -project
This writes the noodle-diagram skill to .agents/skills/ and the subagents to
.opencode/agents/. Use -user instead to install for every project, under
~/.agents/skills/ and ~/.config/opencode/agents/. Rerunning it changes nothing, and it
never overwrites a file it did not write.
Codex
Install the noodle binary as above, then in your repository:
noodle setup codex -project
This writes the skill to .agents/skills/ and one TOML file per subagent to
.codex/agents/. -user writes under ~/.agents/skills/ and ~/.codex/agents/.
Nix
inputs.noodle.url = "github:TheGostsniperfr/Noodle";
# then: home.packages = [ inputs.noodle.packages.${pkgs.system}.default ];
or just nix run github:TheGostsniperfr/Noodle -- -list-icons.
Usage
noodle render architecture/platform -view runtime # check and lint only
noodle render architecture/platform -view runtime -theme dark -o out.drawio # then render
noodle render architecture/platform -view runtime -icons .noodle/icons -slide # project icons, drawing only
noodle migrate old-spec.yaml architecture/platform # a v0 single file, once
helm template my-release chart/ | noodle discover k8s - -o architecture/platform/discovered/k8s-helm.yaml
noodle -list-icons
drawio -x -f png -s 2 --border 20 -o out.png out.drawio
The format is in the skill reference.
Examples
| System | Shows |
|---|
tutorial | the system of the tutorial: a user, an API and a database in two zones |
cnp-runtime | one model, two views: the runtime topology and the OIDC login sequence |
sequence-basics | every sequence step kind: messages, a relay against a tunnel, a note, replies |
landscape | a tech stack: bands, a side column, a pipeline, planned items with a target |
catalog | a service catalogue built from the model's offerings |
topology-diff | a proposal drawn as a diff: what it adds and removes over the dimmed platform, next to the reference view of the same model |
messaging | a message broker: queues drawn as pipes, bindings and a dead-letter link drawn as broker routes |
cnp-access | an access matrix from memberships and grants: what a segregation plan changes, phase by phase |
platform-regression | three large topologies from a real platform, kept as regression fixtures |
Docs