r/ClaudeCode • • 2d ago

Help/Question Is Claude weaker used through API?

If I use the chat in Claude code it uses deep troubleshooting, planning, testing, harnas.

I want to use Anthropic api for my app. How to make it as strong (or as close as possible) as the native chat?

1 Upvotes

20 comments sorted by

•

u/AutoModerator 2d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/WordWithinTheWord 2d ago

Use a well-known harness first and see if it improves your outputs.

1

u/Sarlo10 2d ago

Can’t I just port claudes harnas?

3

u/RealFullMetal 2d ago

you basically can, that's what the claude agent sdk is. the docs describe it as the same tools, agent loop and context management that power claude code, as a python or typescript library: it runs the claude code binary, with its built-in tools, permissions, sessions and hooks. it authenticates with an api key (claude.ai login isn't allowed in third-party products without approval), which fits since yours has to be api. if you'd rather not run the loop yourself, managed agents is anthropic's hosted agent harness, configured through the api.

1

u/Sarlo10 2d ago

Managed agents is currently being built! Thanks

However can’t I just use plan usage? I kept asking Claude but it says it’s against “company rules” or some weird stuff, can we bypass this easily?

3

u/RealFullMetal 1d ago

not for an app other people use. the agent sdk docs say that unless anthropic has approved it, third-party developers can't offer claude.ai login or rate limits in their products, including agents built on the sdk, and they point you to api key auth instead. so it isn't a rule to work around, the api key is the supported path.

1

u/Significant-Bee5101 2d ago

Uh sure? Just use Claude Code CLI lol

1

u/Sarlo10 2d ago

What do u mean? Can’t use plan usage in my app, has to be api

1

u/itprobablynothingbut 2d ago

I feel like there are some knowledge gaps on fundamental things here. I would spend a lot of time learning about how LLMs work, what harnesses are, etc.

0

u/Sarlo10 2d ago

Why me learn when Claude knows?

2

u/itprobablynothingbut 2d ago

Why ask Reddit then?

2

u/PurpleCandle58 2d ago

Oh god 💀😭

1

u/Significant-Bee5101 1d ago

Im eagerly awaiting you losing all your money in API usage. Have fun

11

u/Budget-Juggernaut-68 2d ago

Learn how to build a harness.

1

u/haslo 2d ago

Context for "use a harness" is:

Claude Code _is_ a harness. System prompts, tools, MCP integration, workflows and processes. When you use the raw API, you have none of that.

Which means:

  1. You have to add that to have it available
  2. You can build the harness exactly how you like it

Personally, I do both. I use Claude Code with additional tooling and skills "on top", custom built for each project.

1

u/Sarlo10 2d ago

How did you personally get the api to use claude codes harnas? Did you use managed agents?

1

u/haslo 1d ago

I did not. I use Claude Code in the CLI. And then have my customization in there as AGENTS.md, files, skills and instructions.

1

u/CorpT 2d ago edited 2d ago

By adding the things needed to do that.