←back to thread

469 points samuelstros | 1 comments | | HN request time: 0s | source
Show context
the_mitsuhiko ◴[] No.44998823[source]
Unfortunately, Claude Code is not open source, but there are some tools to better figure out how it is working. If you are really interested in how it works, I strongly recommend looking at Claude Trace: https://github.com/badlogic/lemmy/tree/main/apps/claude-trac...

It dumps out a JSON file as well as a very nicely formatted HTML file that shows you every single tool and all the prompts that were used for a session.

replies(2): >>44999150 #>>45001031 #
CuriouslyC ◴[] No.44999150[source]
https://github.com/anthropics/claude-code

You can see the system prompts too.

It's all how the base model has been trained to break tasks into discrete steps and work through them patiently, with some robustness to failure cases.

replies(1): >>44999181 #
the_mitsuhiko ◴[] No.44999181[source]
> https://github.com/anthropics/claude-code

That repository does not contain the code. It's just used for the issue tracker and some example hooks.

replies(2): >>44999205 #>>44999256 #
CuriouslyC ◴[] No.44999205[source]
It's a javascript app that gets installed on your local system...
replies(1): >>44999312 #
1. the_mitsuhiko ◴[] No.44999312{3}[source]
I'm aware of how it works since I have been spending a lot of time over the last two months working with Claude's internals. If you have spent some time with it, you know that it is a transpiled and minified mess that is annoyingly hard to detangle. I'm very happy that claude-trace (and claude-bridge [1]) exists because it makes it much easier to work with the internals of Claude than if you have to decompile it yourself.

[1]: https://github.com/badlogic/lemmy/tree/main/apps/claude-brid...