Skip to content

feat: add Claude-powered task complexity scoring - #695

Merged
anoopcodehack merged 1 commit into
anoopcodehack:mainfrom
bbs-669:feat/task-complexity-score
Nov 26, 2026
Merged

anoopcodehack merged 1 commit into
anoopcodehack:mainfrom
bbs-669:feat/task-complexity-score

Conversation

@bbs-669

@bbs-669 bbs-669 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds AI-powered task complexity scoring (1–10 scale with a one-line explanation) inside TaskModal using Claude (claude-sonnet-4-6).

Fixes #664

Changes Made

  • Backend (server/routes/ai.js): Added an authenticated POST /api/v1/ai/complexity proxy endpoint to keep ANTHROPIC_API_KEY secure server-side, with markdown fence stripping, 1–10 score clamping, and safe error handling.
  • Config (server/.env.example): Documented ANTHROPIC_API_KEY.
  • Frontend (client/src/components/Task/TaskModal.jsx): Added the "🧠 Score complexity" button, loading/error states, color-coded score display (green/yellow/red), and automatic reset when the title or description changes.

Verification

  • Verified frontend production build passes (npm run build).
  • Verified backend syntax and missing API key / validation error states.

@anoopcodehack
anoopcodehack merged commit 210b170 into anoopcodehack:main Nov 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI scores task complexity from 1-10 automatically🧠

2 participants