Artificial intelligence firm Anthropic has accidentally revealed the source code for its popular coding tool Claude Code.