Flutter-Structurizr AGENTS.md

Setup and development instructions for a Flutter Structurizr application that includes local copies of Flutter, Dart, and package dependencies for offline work.

In plain words
What is it for?
Use them at the start of a session and when running Flutter or Dart commands, tests, analysis, or dependency setup offline.
Why use it?
They show how to prepare the bundled tools and avoid commands that depend on an internet connection.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/consiliency/flutter-structurizr/agents-md
Clone the repo
git clone --depth 1 https://github.com/Consiliency/Flutter-Structurizr

Made for: Codex, OpenCode.

Per session 2,390 This file is loaded in full into every session.
When invoked 2,390 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.02390 $0.02390
Opus 5 $0.01195 $0.01195
Sonnet 5 $0.00478 $0.00478
Haiku 4.5 $0.00239 $0.00239

Measured 2d ago against content hash 2009a4edd116, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Flutter-Structurizr AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 341 lines

How it starts

The opening of the file, as written. The whole thing — 341 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md - Flutter Structurizr for AI Agents

This document provides essential information for AI agents (like Codex) working with the Dart Structurizr codebase. It's specifically structured to help agents understand the repository organization, setup process, and development workflow in an offline environment.

Development Environment Setup

Offline Setup for Codex

The repository includes a complete Flutter SDK and all dependencies for offline development in Codex:

# Run this first when starting a new Codex session
./codex_offline_setup_split.sh

This script will:

  1. Reassemble split archive files from .codex/ directory
  2. Extract the complete Flutter SDK (704MB) and package cache (387MB)
  3. Configure the environment for offline operation
  4. Create wrappers for flutter and dart commands

Important: Use the Wrapper Commands

After setup, always use the wrapper commands to ensure offline operation:

# Use these wrapper commands
./flutter [command]  # Flutter commands
./dart [command]     # Dart commands

# Examples
./flutter pub get
./flutter test
./flutter analyze
./dart analyze

Troubleshooting Offline Setup

If you encounter issues with the offline setup:

# Check if setup completed successfully
test -f .codex_setup_complete && echo "Setup complete" || echo "Setup incomplete"

# Manually extract from archives if needed
cd .codex
cat flutter-sdk.tar.gz.part.* > flutter-sdk.tar.gz
tar -xzf flutter-sdk.tar.gz
cat pub-cache.tar.gz.part.* > pub-cache.tar.gz
tar -xzf pub-cache.tar.gz

Project Structure

Key Directories

lib/
  ├── domain/              # Pure Dart domain models
  │   ├── model/           # Core model elements (Person, SoftwareSystem, etc.)
  │   ├── view/            # View definitions (SystemContextView, etc.)
  │   ├── parser/          # DSL parser components (being refactored)
  │   ├── documentation/   # Documentation model
  │   └── style/           # Styling system
  ├── application/         # Use cases and business logic
  │   ├── workspace/       # Workspace management
  │   ├── dsl/             # DSL parsing
  │   └── command/         # Command pattern for undo/redo
  ├── infrastructure/      # External integrations
  │   ├── serialization/   # JSON serialization
  │   ├── persistence/     # File storage
  │   └── export/          # Export facilities
  ├── presentation/        # Flutter UI components
  │   ├── widgets/         # Reusable widgets
  │   ├── pages/           # Application pages
  │   ├── rendering/       # Canvas rendering
  │   └── layout/          # Layout algorithms

test/                      # Test suite
  ├── domain/              # Domain model tests
  ├── application/         # Application layer tests
  ├── infrastructure/      # Infrastructure tests
  ├── presentation/        # UI component tests
  └── integration/         # End-to-end tests

example/                   # Example applications
  └── lib/                 # Various example implementations

Read the full file on GitHub · 341 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 341 lines · 2,390 tokens per session scan A 2009a4edd116

Subscribe to this mod's changes

Flutter-Structurizr AGENTS.md is an instructions file published in the GitHub repository Consiliency/Flutter-Structurizr (7 stars, last pushed 1mo ago), licensed MIT. It adds 2,390 tokens to every session, about $0.0120 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.