Skip to content

Add agent authoring entry points#89

Merged
madawei2699 merged 1 commit into
mainfrom
codex/agent-authoring-pack
Jun 16, 2026
Merged

Add agent authoring entry points#89
madawei2699 merged 1 commit into
mainfrom
codex/agent-authoring-pack

Conversation

@madawei2699

Copy link
Copy Markdown
Contributor

Summary

  • add docs/llm.txt as a compact model-ingestable ComponentPlan authoring entry point
  • add docs/AGENT_TOOLKIT.md for repository-based harness-agent workflows
  • link the new entry points from the LLM authoring contract

Refs #54
Refs #55

Validation

  • pnpm --filter @i365dev/craftdag-core test
  • pnpm --filter @i365dev/craftdag-core typecheck
  • pnpm lint

@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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces two new documentation files, docs/AGENT_TOOLKIT.md and docs/llm.txt, to guide agents and LLMs in authoring CraftDAG build plans, and updates docs/LLM_AUTHORING_CONTRACT.md to reference them. The review feedback points out a mismatch in error codes within docs/llm.txt compared to the actual validator implementation, and suggests aligning the CLI option --output to --out in docs/AGENT_TOOLKIT.md for consistency.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread docs/llm.txt Outdated
- COMPONENT_OUT_OF_BOUNDS: move anchor inward, reduce size, or increase plan bounds.
- UNKNOWN_COMPONENT_REF: fix inputs, target, source, or assembly reference.
- UNKNOWN_MATERIAL_REF: use a palette key or minecraft: block id.
- BUDGET_EXCEEDED: reduce bounds, repeated counts, levels, sections, or detail components.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The error code BUDGET_EXCEEDED does not exist in the validator implementation (packages/core/src/componentPlan.ts). The actual budget-related error codes thrown by the validator are PLAN_BOUNDS_OVER_BUDGET, PLAN_COMPONENTS_OVER_BUDGET, and PLAN_ESTIMATED_BLOCKS_OVER_BUDGET. Updating this to the actual error codes will ensure that LLMs/agents can correctly match and handle these diagnostics during the repair loop.

- PLAN_BOUNDS_OVER_BUDGET / PLAN_COMPONENTS_OVER_BUDGET / PLAN_ESTIMATED_BLOCKS_OVER_BUDGET: reduce bounds, repeated counts, levels, sections, or detail components.

Comment thread docs/AGENT_TOOLKIT.md
```bash
pnpm --filter @i365dev/craftdag-cli build
node packages/cli/dist/index.js validate examples/starter-house.craftdag.json
node packages/cli/dist/index.js compile examples/starter-house.craftdag.json --output /tmp/starter-house.voxel.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is an inconsistency in the CLI options used for specifying the output file. Here, --output is used, whereas in line 48 (--out /tmp/starter-house.schem) and in the desired CLI contract (lines 67-74), --out is used consistently. Please verify if the current CLI supports --out for the compile command as well, and if so, use it here for consistency.

Suggested change
node packages/cli/dist/index.js compile examples/starter-house.craftdag.json --output /tmp/starter-house.voxel.json
node packages/cli/dist/index.js compile examples/starter-house.craftdag.json --out /tmp/starter-house.voxel.json

@madawei2699 madawei2699 force-pushed the codex/agent-authoring-pack branch from 3992fa0 to 039107d Compare June 16, 2026 09:33
@madawei2699 madawei2699 merged commit de28b89 into main Jun 16, 2026
1 check passed
@madawei2699 madawei2699 deleted the codex/agent-authoring-pack branch June 16, 2026 09:34
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