Логотип Agent Constraint Triangle Scorer

Agent Constraint Triangle Scorer

Сообщество
AnthonyAlcaraz
agent-constraint-triangle-scorer

Score an agent configuration against Ch1's Agent Constraint Triangle — the three interconnected constraints (complexity management, tool orchestration, context utilization) that make agent design an inherently difficult operational problem. Given the agent's reasoning-chain length, tool-catalog size and disambiguity, and context budget vs. usage, produce a 0-100 pressure score and band per constraint, name which of Ch1's three cyclic trade-offs are active (complexity->tools->context, tools->context->complexity, context->complexity->tools), and give the minimal-but-sufficient recommendation for each stressed constraint. Use before scaling an agent's tools/steps/context to see which corner of the triangle will break first. NOT for model-quality issues (Ch1: the triangle is architectural), NOT for agents under ~10 tools with short chains where no corner is under pressure.

Обзор

ИздательAnthonyAlcaraz
Репозиторийagentic-graph-rag-skills
Название навыкаagent-constraint-triangle-scorer
Звёзды
29
Форки
9
Файлы в комплекте
3
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 3

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — AnthonyAlcaraz. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Agent Constraint Triangle Scorer в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/crisis/agent-constraint-triangle-scorer
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills.git /tmp/agentic-graph-rag-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-graph-rag-skills/skills/crisis/agent-constraint-triangle-scorer .claude/skills/agent-constraint-triangle-scorer
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Agent Constraint Triangle Scorer в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Agent Constraint Triangle Scorer, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Agent Constraint Triangle Scorer не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Agent Constraint Triangle Scorer

Overview

Ch1 names a fundamental challenge in building agents: the agent constraint triangle, "three interconnected constraints that create an inherently difficult operational problem":

  1. Complexity management — multistep planning and reasoning. "As tasks require more steps and deeper analysis, cognitive load increases exponentially," producing "compounding errors as the step count increases."
  2. Tool orchestration — translating natural language into precisely structured API calls. The named failure mode is "bloated tool sets that cover too much functionality or lead to ambiguous decision points about which tool to use." Anthropic's principle: "If a human engineer can't definitively say which tool should be used in a given situation, an AI agent can't be expected to do better."
  3. Context utilization — organizing a fixed context window, "the model's attention budget." Chroma's needle-in-a-haystack research names context rot: "as the number of tokens in the context window increases, the model's ability to accurately recall information from that context decreases" — "a performance gradient," not "a hard cliff."

The chapter's key point is that these "don't exist in isolation but form a system of competing trade-offs. When improving performance along one dimension, you typically create additional pressure on the others." It names three cyclic pressures:

  • complexity → tools → context
  • tools → context → complexity
  • context → complexity → tools

The governing principle: "the smallest possible set of high-signal tokens that maximizes the likelihood of some desired outcome" — minimal-but-sufficient complexity decomposition, minimal-but-complete tool coverage, and minimal-but-adequate context retention.

This skill scores a configuration against that triangle. The scoring curves are transparent heuristics that embody the chapter's qualitative claims (exponential complexity load, ambiguity-dominated tool pressure, context-rot gradient); they are not chapter-cited benchmarks, and the production seam is documented at each lib function.

When to Use

  • Deciding whether to add tools, lengthen reasoning chains, or grow context on an existing agent — and wanting to see which corner breaks first
  • Diagnosing an agent that degrades as you scale it up
  • Comparing two agent configurations (batch mode) to pick the less constrained
  • Teaching why "add more tools / more steps / more context" is not free

Phrases: "which constraint will break", "is my agent overloaded", "constraint triangle", "too many tools", "context is full", "score this agent config".

When NOT to Use

  • Model-quality complaints (hallucination, refusals) — Ch1 is explicit that the triangle is an architectural operational problem, not model quality.
  • Small agents (under ~10 tools, short chains, low context fill) — no corner is under pressure; the score will read BALANCED and buys you nothing.
  • As a tool selector. This scores the tool-orchestration pressure; use rag-mcp-tool-selection (Ch6) to actually filter the registry.

Process

StepInputActionOutputVerification
1steps / tools / disambiguity / window / usedlib.score(config)per-constraint pressure + bandeach pressure in 0-100; dominant_constraint is the max
2complexity inputlib.score_complexity(steps)complexity pressuremonotonic increasing in steps (exponential load)
3tool inputlib.score_tool_orchestration(count, disambiguable)tool pressureambiguous set scores higher than disambiguable at equal count
4context inputlib.score_context_utilization(window, used)context pressuremonotonic increasing in fill ratio (rot gradient)
5full reportread active_pressure_cyclesCh1 trade-off cycles fired by any high (>60) constrainteach cycle names a source constraint + edge + cascade
6full reportread recommendations + overall_bandminimal-but-sufficient action per stressed constraintOVERCONSTRAINED only when all three >60 or any >85
7list of configslib.score_batch(configs)configs ranked by peak pressuremost-constrained config ranked first

Rationalizations

Agent rationalizationDocumented rebuttal
"Context windows are huge now — I'll just add every tool and all context."Ch1: the three constraints "form a system of competing trade-offs." Adding tools consumes context for their definitions and adds selection ambiguity (tools→context→complexity). Bigger windows do not exempt you from the cycle.
"More reasoning steps make the agent smarter."Ch1: "cognitive load increases exponentially ... compounding errors as the step count increases." Past a point, more steps lower reliability. Score complexity before lengthening the chain.
"The tool set is fine — the model just needs a better prompt."Anthropic's principle (Ch1): if a human engineer can't say which tool to use, the agent can't either. That is tool-orchestration pressure from ambiguity, not a prompt problem. Set --ambiguous and see the score jump.
"Compact aggressively to free context — no downside."Ch1's context→complexity→tools cycle: aggressive compaction "can inadvertently discard subtle but critical context whose importance only becomes apparent later," forcing more tool calls to reconstruct it.
"One corner is high but the others are fine, so we're OK."The triangle is coupled. A single high corner fires a pressure cycle onto the other two; active_pressure_cycles shows which. Relieve the source, don't just watch the symptom.

Red Flags

  • All three corners critical (OVERCONSTRAINED). You are past minimal-but- sufficient on every axis. Cut steps, filter tools, and retrieve selectively together — fixing one corner in isolation pushes pressure to the next.
  • Tool pressure high while tools_disambiguable=true. The catalog is simply too large; filter it (RAG-MCP) rather than rewriting descriptions.
  • Context pressure high with short chains and few tools. The task is stuffing raw data into the prompt; move to selective retrieval before it hits the rot gradient.
  • Score reads BALANCED but the agent still fails. The failure is likely outside the triangle (model quality, a retrieval failure) — use context-failure-classifier or enterprise-readiness-scorer instead.

Non-Negotiable Verification

  1. Run the benchmark battery. python cli.py benchmark must report 8/8:
    • complexity/tool/context pressures are monotonic in their drivers
    • the bloated-MCP config is OVERCONSTRAINED and fires a pressure cycle
    • the balanced config is BALANCED with the dominant corner correct
    • batch ranks the most-constrained config first
  2. Verify CLI help. python cli.py --help exits 0 and prints the SKILL.md description.
  3. Inspect one scenario. python cli.py scenario latency-spike should show the bloated agent OVERCONSTRAINED and the balanced agent BALANCED on the same DevOps investigation.

Security Posture

  • Prompt injection. This skill consumes only numeric/boolean configuration (step counts, tool counts, token counts) — no free-text tool descriptions or documents enter it, so there is no injection surface in lib.py.
  • Data exfiltration. No network calls, no file writes outside the explicit --configs path. --json output goes to stdout; the caller owns downstream piping.
  • Privilege escalation. No shell invocation, no eval, no dynamic import. The only file read is the config JSON path the caller supplies (default: the bundled sample).
  • Misuse boundary. The pressure scores are an operational planning aid, not an authorization control. Do not gate real permissions on this score; use capability-authorization-gate (Ch3) for authority decisions.

Source Attribution

Distilled from Agentic GraphRAG (O'Reilly, by Anthony Alcaraz and Sam Julien), Chapter 1 — Defining Agentic AI, "The Agent Constraint Triangle" section. The three constraints, the three cyclic trade-offs, and the minimal-high-signal-tokens principle are the chapter's; the tool-disambiguation principle and the attention-budget framing are anchored in Anthropic's "Effective Context Engineering for Agents," and context rot in Chroma's needle-in-a-haystack research, both named in the chapter.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Agent Constraint Triangle Scorer?

Score an agent configuration against Ch1's Agent Constraint Triangle — the three interconnected constraints (complexity management, tool orchestration, context utilization) that make agent design an inherently difficult operational problem. Given the agent's reasoning-chain length, tool-catalog size and disambiguity, and context budget vs. usage, produce a 0-100 pressure score and band per constraint, name which of Ch1's three cyclic trade-offs are active (complexity->tools->context, tools->context->complexity, context->complexity->tools), and give the minimal-but-sufficient recommendation...

Зачем использовать Agent Constraint Triangle Scorer в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Agent Constraint Triangle Scorer — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Agent Constraint Triangle Scorer в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/crisis/agent-constraint-triangle-scorer. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Agent Constraint Triangle Scorer?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Agent Constraint Triangle Scorer?

С любым количеством. В TypingMind вы можете использовать Agent Constraint Triangle Scorer с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Agent Constraint Triangle Scorer?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — AnthonyAlcaraz. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип affaan-m

Tdd Workflow

affaan-m
СообществоПопулярный

Используйте этот навык при разработке новых функций, исправлении ошибок или рефакторинге кода. Применяйте разработку на основе тестирования и обеспечивайте покрытие не менее 80%, включая модульные, интеграционные и…

39.1K
261.1K
Инструкции
Открыть
Логотип affaan-m

Angular Developer

affaan-m
СообществоПопулярный

Генерирует код Angular и помогает с архитектурными решениями. Используйте при создании проекта, компонентов или сервисов, а также при работе с реактивностью (сигналы, linkedSignal, ресурсы), формами, внедрением зависимостей, маршрутизацией, SSR, доступностью (ARIA), анимацией, стилями (стили компонентов, Tailwind CSS), тестированием и лучшими практиками создания инструментов…

39.1K
261.1K
Инструкции
Открыть
Логотип NousResearch

Anatomy

NousResearch
ОрганизацияПопулярный

Explain an idea as an interactive isometric machine figure.

54.8K
252.8K
Файлы: 65
Открыть
Логотип NousResearch

Auteur

NousResearch
ОрганизацияПопулярный

Design and build cinematic, award-level web pages.

53.5K
250.4K
Файлы: 25
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇