Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
Sign inSign up free
catalog / Orchestration / Guidance
⌬WorkflowOrchestrationFree

Guidance

A programming paradigm for steering LLMs — interleave generation, prompting, and control flow with constrained decoding and structured output.

@ai-supply
Installs172
⟳ upstream 0.3.2 · updated 5mo ago
↗ Source repository
← More OrchestrationOrchestration leaderboard →How we grade security →Source ↗
! Grade B · 75/100 · ReviewSecurity assessment
✓No compromise signals20capabilities surfaced1known CVE8of 20 OWASP controls clear
Broad capability surfacePotentially unbounded loopBroad capability surfaceSuspicious network references
scanned 1mo ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

Guidance

Guidance is a programming paradigm for controlling large language models more precisely than plain prompting. Instead of sending a single string and hoping for well-formed output, you interleave text, generation, selection, loops, and conditionals directly in Python, so the model follows a structured flow — effectively a state machine over generation. This yields reliable structured output, fewer tokens, and lower latency.

Key features

  • Constrained generation with regex, context-free grammars, and JSON schemas
  • Interleave control flow (loops, conditionals, functions) with model calls
  • Token healing to avoid tokenization artifacts at prompt boundaries
  • Reusable, composable functions for building complex prompting programs
  • Works across backends including local Transformers, llama.cpp, and hosted APIs

Originally from Microsoft and now maintained under the guidance-ai organization, Guidance is widely used to force valid, machine-parseable outputs (for example, JSON that always conforms to a schema) and to orchestrate multi-step generation deterministically. Because constraints are enforced during decoding, invalid tokens are never sampled, which improves both reliability and speed compared with post-hoc validation and retries.

Curated mirror of the open-source Guidance (MIT). Get it from the source.

Rating rank
#1
of 16 in Orchestration
Install rank
#16
of 16 in Orchestration
Security score
75/100 · B
review
Security rank
#9
of 16 in Orchestration
Installs
172
cat avg 126k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Orchestration leaderboard →
! Security: Review · 7575/100 · grade Bscanned 1mo ago
✓ no compromise signals21 risk-surface · 7/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

What this capability can do · high confidence (static)
Tools (8)
CPUGPURAMVRAMTimeLatencyUsedReduced
⚑ filesystem⚑ shell⚑ network⚑ secrets
egress → abetlen.github.io, docs.astral.sh, creativecommons.org, discord.gg, img.shields.io, registry.npmjs.org, opencollective.com, tidelift.com +31
93 steps⚑ uses secretsactions/checkout@v6actions/setup-python@v6astral-sh/setup-uv@v8.1.0codecov/codecov-action@v6abetlen.github.iogithub.com./.github/workflows/call_cpu_tests.yml./.github/workflows/call_gpu_tests.yml

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM03Supply Chaincritical
Vulnerable/compromised dependencies, models or archives in the artifact.
•Dependency manifest — 31 npm dependencies declared · guidance-ai-guidance-21b1d90/client/graphpaper-inline/package.jsonrisk surface
•Vulnerable dependencies — 116 known vulnerabilities in: @xmldom/xmldom@0.8.10, brace-expansion@1.1.12, brace-expansion@2.0.2, dompurify@3.2.6, glob@10.4.5, min-document@2.19.0, minimatch@3.1.2, minimatch@9.0.5 (CWE-1395)known CVE · -25 pts
⚠LLM06Excessive Agencyhigh
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 2 distinct host(s) · guidance-ai-guidance-21b1d90/.github/workflows/call_cpu_tests.ymlexpected
•External endpoints declared — 1 distinct host(s) · guidance-ai-guidance-21b1d90/.github/workflows/call_gpu_tests.ymlexpected
•External endpoints declared — 3 distinct host(s) · guidance-ai-guidance-21b1d90/CONTRIBUTING.mdexpected
•Broad capability surface — 3 high-impact capability categories referenced — verify least-privilege · guidance-ai-guidance-21b1d90/client/graphpaper-inline/package-lock.json (CWE-272)risk surface
•External endpoints declared — 8 distinct host(s) · guidance-ai-guidance-21b1d90/client/graphpaper-inline/package-lock.jsonexpected
•Broad capability surface — 4 high-impact capability categories referenced — verify least-privilege · guidance-ai-guidance-21b1d90/guidance/_utils.py (CWE-272)risk surface
•External endpoints declared — 9 distinct host(s) · guidance-ai-guidance-21b1d90/guidance/resources/graphpaper-inline.htmlexpected
•External endpoints declared — 20 distinct host(s) · guidance-ai-guidance-21b1d90/notebooks/art_of_prompt_design/prompt_boundaries_and_token_healing.ipynbexpected
•External endpoints declared — 6 distinct host(s) · guidance-ai-guidance-21b1d90/notebooks/chatgpt_vs_open_source_on_harder_tasks.ipynbexpected
•External endpoints declared — 5 distinct host(s) · guidance-ai-guidance-21b1d90/notebooks/testing_lms.ipynbexpected
•External endpoints declared — 10 distinct host(s) · guidance-ai-guidance-21b1d90/notebooks/tutorials/token_healing.ipynbexpected
•External endpoints declared — 11 distinct host(s) · guidance-ai-guidance-21b1d90/tests/unit/library/json/test_string_format.pyexpected
•Egress to a private/loopback host — 127.0.0.1 · guidance-ai-guidance-21b1d90/tests/unit/test_uri_validation.py (CWE-918)expected
⚠LLM05Improper Output Handlingmedium
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — dynamic code execution · guidance-ai-guidance-21b1d90/guidance/resources/graphpaper-inline.html (CWE-95)expected
•Suspicious code patterns — OS command execution · guidance-ai-guidance-21b1d90/tests/conftest.py (CWE-78)expected
⚠LLM07System Prompt Leakagemedium
Secrets, internal hosts or proprietary logic exposed in shipped prompts.
•Internal host / private infrastructure reference — shipped content references a private IP range or internal-only host · guidance-ai-guidance-21b1d90/tests/unit/library/json/test_string_format.py (CWE-200)risk surface
⚠LLM10Unbounded Consumptionmedium
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
•Potentially unbounded loop — an infinite loop (while True / while(1) / for(;;)) may cause runaway consumption · guidance-ai-guidance-21b1d90/guidance/_parser.py (CWE-835)risk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
✓LLM01Prompt InjectionPassed
✓LLM02Sensitive Information DisclosurePassed
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML06AI Supply Chaincritical
Compromised PyPI/npm packages, typosquats, unsafe serialized models.
•Dependency manifest — 31 npm dependencies declared · guidance-ai-guidance-21b1d90/client/graphpaper-inline/package.jsonrisk surface
•Vulnerable dependencies — 116 known vulnerabilities in: @xmldom/xmldom@0.8.10, brace-expansion@1.1.12, brace-expansion@2.0.2, dompurify@3.2.6, glob@10.4.5, min-document@2.19.0, minimatch@3.1.2, minimatch@9.0.5 (CWE-1395)known CVE · -25 pts
⚠ML09Output Integritymedium
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — dynamic code execution · guidance-ai-guidance-21b1d90/guidance/resources/graphpaper-inline.html (CWE-95)expected
•Suspicious code patterns — OS command execution · guidance-ai-guidance-21b1d90/tests/conftest.py (CWE-78)expected
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML02Data PoisoningPassed
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (18) · hygiene / uncategorized
•Unrecognized file type — '.git-blame-ignore-revs' is not on the allowlist · guidance-ai-guidance-21b1d90/.git-blame-ignore-revsrisk surface
•Unrecognized file type — '.gitignore' is not on the allowlist · guidance-ai-guidance-21b1d90/.gitignorerisk surface
•Unrecognized file type — '.mjs' is not on the allowlist · guidance-ai-guidance-21b1d90/client/graphpaper-inline/rollup.config.mjsrisk surface
•Unrecognized file type — '.svelte' is not on the allowlist · guidance-ai-guidance-21b1d90/client/graphpaper-inline/src/App.svelterisk surface
•Unrecognized file type — '.?' is not on the allowlist · guidance-ai-guidance-21b1d90/docs/Makefilerisk surface
•Disallowed file type — '.bat' executables are not permitted · guidance-ai-guidance-21b1d90/docs/make.bat (CWE-434)risk surface
•Unrecognized file type — '.pyi' is not on the allowlist · guidance-ai-guidance-21b1d90/guidance/_guidance.pyirisk surface
•Suspicious network references — suspicious TLD (1 URLs) · guidance-ai-guidance-21b1d90/guidance/models/broken_models/_togetherai.pyrisk surface
•Unrecognized file type — '.coveragerc' is not on the allowlist · guidance-ai-guidance-21b1d90/packages/python/stitch/.coveragercrisk surface
•Unrecognized file type — '.eslintignore' is not on the allowlist · guidance-ai-guidance-21b1d90/packages/python/stitch/.eslintignorerisk surface
•Unrecognized file type — '.npmignore' is not on the allowlist · guidance-ai-guidance-21b1d90/packages/python/stitch/.npmignorerisk surface
•Unrecognized file type — '.prettierignore' is not on the allowlist · guidance-ai-guidance-21b1d90/packages/python/stitch/.prettierignorerisk surface
•Unrecognized file type — '.prettierrc' is not on the allowlist · guidance-ai-guidance-21b1d90/packages/python/stitch/.prettierrcrisk surface
•Unrecognized file type — '.in' is not on the allowlist · guidance-ai-guidance-21b1d90/packages/python/stitch/MANIFEST.inrisk surface
•Unrecognized file type — '.nblink' is not on the allowlist · guidance-ai-guidance-21b1d90/packages/python/stitch/docs/source/examples/introduction.nblinkrisk surface
•Unrecognized file type — '.ini' is not on the allowlist · guidance-ai-guidance-21b1d90/packages/python/stitch/pytest.inirisk surface
•Suspicious network references — raw IP URL (39 URLs) · guidance-ai-guidance-21b1d90/tests/unit/library/json/test_string_format.pyrisk surface
•Suspicious network references — raw IP URL (14 URLs) · guidance-ai-guidance-21b1d90/tests/unit/test_uri_validation.pyrisk surface
✔ verified source · pinned guidance-ai-guidance-21b1d90 · changed since last scan (+42 pts)
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/guidance-llm-control/check). Click a policy:

Consume Guidance programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/guidance-llm-control

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/guidance-llm-control/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add guidance-llm-control

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/guidance-llm-control/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "guidance-llm-control" })
OpenAPI spec →
vlatest
! Security: Review · 751mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

Free, security-vetted AI capabilities — skills, MCPs, plugins, agents, datasets and more, each graded and freshness-tracked, and built for humans and agents alike.

api · v3.1status · all green
Contact
support@ai-supply.storesecurity@ai-supply.store
Catalog
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
  • Security
  • Scan a repo
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
Account
  • Create account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy