srcwalk 0.2.5

Tree-sitter indexed lookups — smart code reading for AI agents
Documentation
from .base import Task, GroundTruth


class FindDefinitionTask(Task):
    @property
    def name(self) -> str:
        return "find_definition"

    @property
    def prompt(self) -> str:
        return "Find where `validate_jwt_token` is defined. Show the full implementation."

    @property
    def ground_truth(self) -> GroundTruth:
        return GroundTruth(
            required_strings=["tokens.py", "def validate_jwt_token", "jwt.decode"]
        )

    @property
    def task_type(self) -> str:
        return "read"