Skip to content

Instantly share code, notes, and snippets.

@mwaddip
mwaddip / design-by-contract-for-ai-agents.md
Created April 5, 2026 12:18
Design by Contract for AI Agent Orchestration — a methodology for coordinating multiple autonomous AI coding agents through interface contracts

Design by Contract for AI Agent Orchestration

A methodology for coordinating multiple autonomous AI coding agents across a multi-repository codebase. Each component is maintained by a separate AI session, coordinated by a human operator through interface contracts.

The Problem

AI coding agents are competent within a single codebase but dangerous across boundaries. A session that knows domain A will confidently build something in domain B that compiles, passes tests, and is fundamentally wrong — because it doesn't understand the trust model on the other side.

The failure mode isn't incompetence. It's confident competence in the wrong domain.

@mwaddip
mwaddip / send-medias-to-nextcloud.js
Last active February 8, 2022 23:18 — forked from Fluf22/send-medias-to-nextcloud.js
Transfer pictures and videos from unzipped Google Takeout folder to Nextcloud folder
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.