Skip to content

Add create_prefab tool - #4

Merged
isaiahagi merged 3 commits into
mainfrom
feat/create-prefab
Nov 29, 2026
Merged

isaiahagi merged 3 commits into
mainfrom
feat/create-prefab

Conversation

@isaiahagi

Copy link
Copy Markdown
Owner

What

New create_prefab tool: saves a scene object as a .prefab under Assets/ and links the object to it.

  • Missing folders are created
  • An existing file is replaced only with overwrite=true, and is backed up first
  • A child inside a prefab instance is refused; an instance root makes a variant
  • Never opens a Unity dialog, so it cannot block the editor. The link itself is therefore not undoable, which the README now says

The tool set is now 18 tools; a first prompt measured 1,862 tokens (1,372 with --toolsets inspect,edit).

Testing

Python tests, plus 22 checks against a headless Unity 6000.6.8f1 editor, with no compile or console errors.

🤖 Generated with Claude Code

isaiahagi and others added 3 commits November 29, 2026 15:07
Save a scene object as a prefab asset and link the object to it. An
existing file is only replaced on request and is backed up first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@isaiahagi
isaiahagi merged commit 9b5e46e into main Nov 29, 2026
7 checks passed
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