Devils Advocate Loop
Adversarially challenges a design or decision until every serious objection is resolved or explicitly accepted.
Before you use this component
This is a third-party source bundle, not an installation into your account. UI Discovery has checked the available redistribution license evidence; runtime behavior has not been tested. Review all files, use a disposable project first, and do not enable scripts or hooks until you understand their permissions.
Some integrations require separately installed software, API keys or paid services. Credentials and subscriptions are not included. These are Claude Code resources; other clients may require adaptation.
Extract the ZIP into a temporary folder, inspect its entry file and supporting resources, then follow the original instructions. Do not overwrite an existing project configuration blindly. Keep the bundled license and attribution notices.
- Source publisher
- Claude Code Templates
- Creator supplied by source
- Not listed in source
- Pinned source version
- a344359459263d73d8948651c789244093c02e4e
- License evidence
- LICENSE
Source preview
cli-tool/components/loops/evaluation/devils-advocate-loop.md
--- name: devils-advocate-loop description: Adversarially challenges a design or decision until every serious objection is resolved or explicitly accepted. category: evaluation interval: 15m stop-condition: No unresolved serious objections remain — each is fixed or consciously accepted with rationale. components: [agent:expert-advisors/architect-review, agent:expert-advisors/critical-thinking, command:git-workflow/pr-review] tags: [evaluation, design-review, decision-making, loop] --- # Devil's-Advocate Loop > **Loop Engineering** — put a dedicated critic in the loop. It keeps attacking the design until the proposal survives scrutiny or is knowingly accepted with its trade-offs. ## 🎯 Goal Stress-test a design, RFC, or architectural decision by generating the strongest possible objections, then resolving or explicitly accepting each one — no objection silently ignored. ## ⏱️ Schedule Suggested interval: `15m` (or run until the design is settled). ## ▶️ Run it ``` /loop 15m "Act as a devil's advocate against the current design. Raise the strongest objections (scaling, security, cost, edge cases, maintainability). For each, either fix the design or record an explicit accepted trade-off with rationale. Continue until no serious objection is unresolved." ``` ## 🔁 Iteration steps 1. **Perceive** — read the current design/decision. 2. **Reason** — the `critical-thinking` agent generates the strongest counter-arguments. 3. **Plan** — for each objection, choose fix vs accept-with-rationale. 4. **Act** — update the design or the decision log; `architect-review` validates the revision. 5. **Observe** — re-run with `/pr-review`; stop only when nothing serious is unresolved. ## 🛑 Stopping condition Every serious objection is either resolved or recorded as an explicit, justified trade-off. ## 🧩 Referenced components - `agent:expert-advisors/architect-review` — validates each revision. - `agent:expert-advisors/critical-thinking` — generates adversarial objections. - `command:git-workflow/pr-review` — structured review of the design changes. ## 💡 Example A proposed single-region database is challenged on availability; the loop either adds a replication plan or records "single-region accepted for MVP, revisit at scale" with reasoning.
Preview capped at 60,000 characters. Download the bundle for every original file and notice.
Read the redistribution license
MIT License Copyright (c) 2025 Daniel (San) Ávila Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Bundle SHA-256: 3b0e519173637040855c4b5967e8959435bed8249ba933dad5e73483baca0986. Files are served as downloads and are never executed by this page.