Skip to content

feat: scripts/MANIFEST.yaml — agent-navigable tool discovery template#10

Merged
zkSoju merged 1 commit intomainfrom
feat/script-manifest-template
Mar 14, 2026
Merged

feat: scripts/MANIFEST.yaml — agent-navigable tool discovery template#10
zkSoju merged 1 commit intomainfrom
feat/script-manifest-template

Conversation

@zkSoju
Copy link
Copy Markdown
Contributor

@zkSoju zkSoju commented Mar 14, 2026

Summary

Adds scripts/MANIFEST.yaml — a machine-readable tool declaration template that lets agents discover construct scripts without reading source code. Updates CONTRIBUTING.md with navigability guidance.

Why

Research across 6 AI firms + audit of all 23 constructs in the network revealed:

  • 70% of scripted constructs have no --help flag — agents must read source to discover args
  • Every major AI firm (Anthropic, OpenAI, Pi, Vercel, MCP) solves this with JSON Schema tool definitions
  • Our constructs lack the CLI equivalent — scripts exist but aren't self-describing

The manifest bridges this gap at the construct level, mapping directly to industry patterns:

Manifest field Anthropic OpenAI MCP
name + description tool.name/description function.name/description tool.name/description
args input_schema parameters inputSchema
output tool_result return value outputSchema
danger_level system prompt annotations.destructiveHint

What's in the template

scripts/MANIFEST.yaml — 4 example script declarations:

  • TypeScript search tool (reference: k-hole/dig-search.ts)
  • Bash diff tool (reference: ruggy/corpus-diff.sh)
  • Python generator (reference: the-mint/generate-gemstone.py)
  • Batch pipeline (reference: k-hole/deep-research.ts)

Each declares: name, description, runtime, args (with types/defaults), output format/fields, credentials, side effects, danger_level.

CONTRIBUTING.md updated:

  • Navigability section explaining MANIFEST.yaml's role
  • AI firm comparison table
  • Self-description convention (--help)
  • Reference implementation pointers (3 languages)
  • Explicit SKILL.md invocation guidance

Design decisions

  • Structure, not prescription: The manifest shows the SHAPE. Constructs adapt it to their needs. Delete unused examples.
  • Construct-level, not runtime-level: Each construct owns its manifest. The Loa loader could read it in the future (loa#449 scope), but it works today as a convention file.
  • Hounfour-compatible: Field shapes align with Hounfour's AgentDescriptor/Capability schemas for future protocol-level validation.
  • Backward compatible: Existing constructs without MANIFEST.yaml continue working. This is additive.

Research basis

  • 3 parallel research agents: AI firm patterns, 23-construct audit, 5-layer ecosystem mapping
  • Key finding: Open Agent Skills standard (agentskills.io) is 80% compatible with our existing construct format
  • Our capabilities stanza (model_tier, danger_level, effort_hint) is unique and valuable — no other system has it

Test plan

  • yq eval '.' scripts/MANIFEST.yaml validates cleanly
  • New construct created from template includes MANIFEST.yaml
  • CONTRIBUTING.md renders correctly on GitHub

🤖 Generated with Claude Code

…covery

Adds machine-readable tool declarations so agents can discover construct
scripts without reading source code. Maps to universal patterns across
Anthropic (input_schema), OpenAI (function parameters), MCP (tools/list),
and Pi (AgentTool<T>).

MANIFEST.yaml declares per-script: name, description, runtime, args with
types, output format/fields, credential requirements, and danger_level.
Four examples: TypeScript search, Bash diff, Python generator, batch pipeline.

CONTRIBUTING.md updated with:
- Navigability section explaining why MANIFEST.yaml exists
- Comparison table mapping manifest fields to AI firm equivalents
- Self-description convention (--help)
- Reference implementations (k-hole/TS, ruggy/bash, the-mint/python)
- Explicit SKILL.md invocation guidance

Based on research across Anthropic, OpenAI, Pi, Vercel AI SDK, MCP, and
Open Agent Skills standard. Audited against all 23 constructs in network.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@zkSoju zkSoju requested a review from janitooor March 14, 2026 21:30
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@zkSoju zkSoju merged commit 6054230 into main Mar 14, 2026
6 of 8 checks passed
@zkSoju zkSoju deleted the feat/script-manifest-template branch March 14, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant