r/unity • • Jul 30 '26

Resources Use Unity CLI not Unity MCP

Post image

MCP's tools are hardcoded. Every tool dumps everything the agent could possibly need, whether it's relevant or not. That's why Unity MCP burns through so many tokens.

I got tired of that.

So instead of Unity MCP, I started using Unity CLI. Not because it uses fewer tokens by default, but because it lets you write your own commands.

I started with a meta command: instead of reading the whole command list, the agent searches only what's relevant.

Then I took it further and built a Claude skill that teaches the agent how to use the Unity CLI.Β 

The important part:

The skill asks Claude to spot repetitive tasks while working and turn them into new commands (macros). This doesn't shrink token usage on its own, but it organically grows the command library the more its used

The library is small right now, since I can't cover every workflow myself. That's why I'm open-sourcing the whole thing. More users means a better shared macro set for everyone.

Let's see where it goes.

Here is the repo link:

https://github.com/itsdevlogger/unity-cli-skill

0 Upvotes

25 comments sorted by

21

u/QuitsDoubloon87 Jul 30 '26

Or you can learn to code.Β 

2

u/CurtisEffland Jul 30 '26

Naaah....

1

u/LetterheadOk9463 Jul 30 '26

πŸ˜‚πŸ˜‚

9

u/RorroYT Jul 30 '26

Literally a headshot with only one bullet lol

-8

u/DerpWyvern Jul 30 '26

casual unnecessary hate for AI

12

u/intLeon Jul 30 '26

Yeah I dont get it, I'm a senior gamedev. Its not even a joke to use AI as long as you know what you are doing..

11

u/Mechabit_Studios Jul 30 '26

the last part is key

2

u/DerpWyvern Jul 30 '26

sure, nobody said anything against that, using AI doesn't necessarily mean vibe coding

1

u/LetterheadOk9463 Jul 30 '26

Same here. You can't really ignore the speed boost you get.

-3

u/business_warrior Jul 30 '26

It’s really not going to work unless he enjoys the process of coding. You can build really good stuff with AI, as long as you test it a lot and iterate.

So really you guys gotta stop being so judgmental.

3

u/LetterheadOk9463 Jul 30 '26

Couldn't agree more. Coding isn't really about typing syntax, it's about problem solving. AI helps with the typing part, same as an IDE, but the logic is still on you.

-2

u/StatisticianNew9527 Jul 30 '26

Coders gettin sour because they're outta a job, but I bet most of them didnt give a shit about anyone else losing their jobs.

-10

u/LetterheadOk9463 Jul 30 '26

SureπŸ™ƒ

-12

u/minimalcation Jul 30 '26

Good one πŸ™„

5

u/raszohkir Jul 30 '26

You DID something then you got TIRED of that and then BUILT something? THEN you took it even FURTHER?

Nice story Klaude

-3

u/LetterheadOk9463 Jul 30 '26

Yup. You got itπŸ˜‚

1

u/HACPAByTucy Aug 02 '26

Type of BS posts you usually see on LinkedIn

-4

u/brogam3 Jul 30 '26

idk what kind of logic it is to use a CLI to instrument a game engine. How about just offering an actual API for the engine? I guess a CLI is a kind of API but pretty much the worst most unergonomical kind.

4

u/magic6435 Jul 30 '26

What other api would you want a game engine to have, REST πŸ˜‚? Bash commands are the most ergonomic api there is and simple enough for all people and machines to use.

1

u/LetterheadOk9463 Jul 30 '26

Didn't he mean having them built into the engine would be better, i.e. communicate directly to the c++ backend of unity rather than using cli to execute a static c# method which intern calls the c++ api

-1

u/brogam3 Jul 30 '26

how do you think the CLI communicates with the engine? it's not magic, it's using the real API.

0

u/LetterheadOk9463 Jul 30 '26

Fair point TBH