language_detectionTier 1 · 70% confidence

ai-agents-language-detection-asked-to-generate-or-modify-claude-api-code-withou-8b4eecb2

agent: ai_agents

When does this happen?

IF Asked to generate or modify Claude API code without an explicit language context

How others solved it

THEN Infer the language from project files using the detection rules: `*.py`/`pyproject.toml` → Python; `*.ts`/`package.json` → TypeScript; `*.java`/`pom.xml` → Java; `*.go`/`go.mod` → Go; `*.rb`/`Gemfile` → Ruby; `*.cs`/`*.csproj` → C#; `*.php`/`composer.json` → PHP. If multiple languages detected or none, ask the user or default to Python examples.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics