r/ClaudeAI • • 4d ago

Coding LeetCode for Agentic AI

I wanna practise Agentic Ai Coding like Langraph or other frameworks using the Claude Api but to do that you gotta make your own projects instead of quick prwctise like leetcode for programming languages.

So what im tryna do is make a leetcode for Agentic Frameworks like Langraph, CrewAi, SDK's and etc so people could start learning and practise for interviews and all.

What do you guys think?

Im making it rn so please give ur ideas or something you think you would wanna see.

0 Upvotes

12 comments sorted by

1

u/ObnoxiouslyVivid 4d ago

"agentic frameworks" is so 2024

1

u/Zethixcut 4d ago

whats 2026

1

u/Sufficient-Tale6131 4d ago

The hard part compared to LeetCode is grading, since agent output isn't deterministic. A few things that would make it genuinely useful for practice:

  • Mock the tools. Give each problem a fake environment (a fake file system, a fake ticket API, a search tool with fixed results) so runs are reproducible and nothing has real side effects. It also lets you inject failures: a tool that times out, returns malformed JSON or a 429, and check that the agent recovers instead of looping.
  • Grade the end state, not the wording. Check what changed in the mock environment (right record updated, nothing deleted) plus a few hard constraints on the trajectory (never called the delete tool, stayed under N tool calls, asked for confirmation before the write step).
  • Run each submission several times and show a pass rate like 8/10 instead of pass/fail. Reliability is exactly what interviews for agent work tend to probe.
  • Show tokens, number of model calls and wall time next to the score. Two solutions that both pass but differ 5x in cost is a good lesson on its own.
  • Keep problems framework-agnostic: define the tool interface and the expected end state, and let people solve it in LangGraph, CrewAI, the raw SDK or plain Python. Otherwise it becomes a quiz about one library's API, and those change every few months.

Problem types I'd want to see: tool selection with distractor tools, multi-step tasks where step 3 depends on the output of step 1, an ambiguous request where the correct move is to ask a clarifying question, a long context where the needed fact is buried, and a human-approval checkpoint the agent must not skip.

1

u/patryk_builds 4d ago

Haven't used langgraph or crewai, i work with a coding agent directly, so i can't say what the framework exercises should look like. two thoughts on the idea itself.The hard part is grading. leetcode works because an answer is right or wrong and a test suite can tell in a second. an agent solution can reach the right result by a bad route, or pass once and fail on the next run. so i'd design the checker first: fixed fake tools that record every call, and tests on the trace, like called the search tool at most twice or "asked for confirmation before the delete. without that it's just a list of project ideas.

And i'd build the problems around failure cases, since that's what bites in real use and what interviews ask about:

- A tool returns an error or times out. does the agent retry sensibly or loop forever

- A tool result contains text that looks like an instruction. does it follow it

- The task needs a secret or a permission it doesn't have. does it stop and ask, or work around it

- A long task gets interrupted halfway. can it resume from saved state without redoing everything

The last two are from my own experience, they cost me the most time. to keep it cheap for users, let the exercises run against a mocked model for the deterministic parts, so people aren't paying for api calls to practise

0

u/fantomkoenig 4d ago

The hard part will be grading. LeetCode works because a test passes or fails, and an agent can pass the test after calling the same tool ten times and burning money on the way. Our own judge model gave a draft an 8 or 9, then gave the exact same text a 6 once it saw real examples of what works. The text didn't change, the judge did. How are you going to grade a run?

1

u/Zethixcut 4d ago

Yes i had that in mind so i made it that the grader matters more on the number of tool calls and the trace instead of the output it gave

0

u/fantomkoenig 4d ago

Grading the trace makes sense, but then a short run with the wrong answer beats a long one that got it right. Does the output still count for anything?

1

u/Zethixcut 4d ago

Yes the ouput does count it verifiss if the answer is correct and also how it got to it

0

u/fantomkoenig 4d ago

Sure, but the weighting is the question. If the answer is one score next to the trace scores, a tidy wrong run can still come out on top. Which one wins when they disagree?

1

u/Zethixcut 3d ago

It's not weighted, it's pass/fail. A case only passes if the answer is right AND the trace stays within the rules, so a tidy wrong run fails too. Tokens and cost are shown but never decide it. You've clearly thought about this a lot. Want to be one of the beta testers? I can DM you an access code.

0

u/fantomkoenig 2d ago

ok, both conditions or fail is stricter than I assumed. The trace rules are where I'd worry. Our judge model gave one draft 8 out of 10, then 6 once we showed it real examples, same text. Who writes the trace rules?