KDKostadin Damevski

Kostadin Damevski

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article

Previous Organizations / Institutes

The organizations / institutes from the scholar's other articles in the past ten years


Kostadin Damevski has a total of 135 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    A Low-Cost Human-in-the-Loop Investigation of Toxicity on GitHub at Scale

    by Rahat Rizvi Rahman, Mia Mohammad Imran, Kostadin Damevski

    Toxic interactions in open source discussions can alienate contributors and threaten project sustainability, yet prior empirical studies of GitHub toxicity have been limited in scale, raising questions about their generalizability. Scaling up is difficult because toxicity on GitHub is often implicit and context-dependent, making both fully manual annotation and LLM-based labeling unreliable. We present a human-in-the-loop (HITL) annotation methodology that makes large-scale, domain-calibrated toxicity labeling practical. A single call to a small, local LLM produces both a toxicity prediction and a set of interpretable event category scores. A lightweight Random Forest validator then uses those scores to flag the small subset of conversations most likely to be mislabeled, directing human review only where it is needed. The validator outperforms confidence-based and multi-LLM baselines while adding low annotation cost. We apply this pipeline to over 124,000 GitHub issue and pull request conversations. Using the resulting dataset, we evaluate key findings from prior small-scale research, confirming some and qualifying others, and present new insights into the prevalence, characteristics, and dynamics of toxicity across diverse open source projects.

  • Open Access

    Do LLM-Based Agentic Program Repair Systems Really Produce Semantically Correct Fixes? A Systematic Literature Review

    by Nourchene Bargaoui, Rabia Yasar, Jacob Turner, Bruno Matias, Victoria Gomes, Valentina Lenarduzzi, Davide Taibi, Kostadin Damevski, Rodrigo Spínola

    Context: Large Language Model agent-based systems have advanced automated program repair. However, passing benchmark test suites does not guarantee that generated patches preserve the intended semantics of the software.Objective: This study systematically investigates how semantic correctness is addressed in LLM agent-based program repair. Specifically, we characterize the defect classes targeted by existing systems, analyze how semantic correctness is conceptualized and evaluated, and identify recurrent repair failures that limit semantically correct automated repair.Method: We conducted a systematic literature review of 44 primary studies published between 2024 and 2026. Using qualitative coding and synthesis, we analyzed targeted defect classes, notions of semantic correctness, evaluation strategies, and recurring repair failures.Results: Current agent-based repair systems primarily target localized defects, while system-wide repairs remain underexplored. Most studies equate semantic correctness with passing test suites, although complementary approaches such as static analysis, specifications, and human evaluation are increasingly adopted. We synthesize a hierarchy of semantic correctness ranging from test-passing plausibility to repository-level consistency, identify four recurrent and potentially overlapping repair failure patterns, partial fixes, hallucinated patches, behavior-changing repairs, and over-complex repairs, and show that these become consequential as repairs require broader contextual reasoning. Together, these findings reveal the Iceberg Illusion, in which benchmark success conceals deeper semantic failures.Conclusion: Current LLM agent-based repair systems optimize primarily for plausible rather than semantic correctness. Advancing trustworthy program repair will require evaluation methodologies that balance scalability with semantic fidelity by combining correctness oracles capable of assessing behavioral preservation, developer intent, and repository-level consistency beyond test-suite execution.

  • When Pair Programming Gets Emotional: A Case Study of What LLMs Still Miss

    by Rahat Rizvi Rahman, Seung Pyo Kang, Se Jin Jang, Seungmoo Lee, Chungyean Cho, Kostadin Damevski

    Emotions play a key role in collaborative software practices like pair programming. In this case study, we analyze pair programming videos to assess whether Large Language Models (LLMs) can serve as pair programming partners. We adapt the EmpatheticDialogues benchmark to create scenarios that simulate how an LLM responds in emotional moments in pair programming. We find that LLMs generally match the level of empathy humans provide in emotional moments during pair programming. However, they sometimes get lost in conversational dynamics and miss the big picture, and prioritize task progression over discussion. Our findings highlight both the potential and current limitations of LLMs in emotionally sensitive programming contexts.

  • Open Access

    Toxicity Ahead: Forecasting Conversational Derailment on GitHub

    by Mia Mohammad Imran, Robert Zita, Rahat Rizvi Rahman, Preetha Chatterjee, Kostadin Damevski


  • A weekly project newsletter to engage episodic participants in OSS projects

    by Christian Novalski, Ghalian Fayyadh, Christopher Chavez, Kostadin Damevski

  • Open Access

    AXE: An Agentic eXploit Engine for Confirming Zero-Day Vulnerability Reports

    by Amirali Sajadi, Tu Nguyen, Kostadin Damevski, Preetha Chatterjee

    Vulnerability detection tools are widely adopted in software projects, yet they often overwhelm maintainers with false positives and non-actionable reports. Automated exploitation systems can help validate these reports; however, existing approaches typically operate in isolation from detection pipelines, failing to leverage readily available metadata such as vulnerability type and source-code location. In this paper, we investigate how reported security vulnerabilities can be assessed in a realistic grey-box exploitation setting that leverages minimal vulnerability metadata, specifically a CWE classification and a vulnerable code location. We introduce Agentic eXploit Engine (AXE), a multi-agent framework for Web application exploitation that maps lightweight detection metadata to concrete exploits through decoupled planning, code exploration, and dynamic execution feedback. Evaluated on the CVE-Bench dataset, AXE achieves a 30% exploitation success rate, a 3x improvement over state-of-the-art black-box baselines. Even in a single-agent configuration, grey-box metadata yields a 1.75x performance gain. Systematic error analysis shows that most failed attempts arise from specific reasoning gaps, including misinterpreted vulnerability semantics and unmet execution preconditions. For successful exploits, AXE produces actionable, reproducible proof-of-concept artifacts, demonstrating its utility in streamlining Web vulnerability triage and remediation. We further evaluate AXE's generalizability through a case study on a recent real-world vulnerability not included in CVE-Bench.

  • Open Access

    Toward Generalized Emotion Recognition in VR by Bridging Natural and Acted Facial Expressions

    by Rahat Rizvi Rahman, Hee Yun Choi, Joonghyo Lim, Go Eun Lee, Seungmoo Lee, Chungyean Cho, Kostadin Damevski

    Recognizing emotions accurately in virtual reality (VR) enables adaptive and personalized experiences across gaming, therapy, and other domains. However, most existing facial emotion recognition models rely on acted expressions collected under controlled settings, which differ substantially from the spontaneous and subtle emotions that arise during real VR experiences. To address this challenge, the objective of this study is to develop and evaluate generalizable emotion recognition models that jointly learn from both acted and natural facial expressions in virtual reality. We integrate two complementary datasets collected using the Meta Quest Pro headset, one capturing natural emotional reactions and another containing acted expressions. We evaluate multiple model architectures, including convolutional and domain-adversarial networks, and a mixture-of-experts model that separates natural and acted expressions. Our experiments show that models trained jointly on acted and natural data achieve stronger cross-domain generalization. In particular, the domain-adversarial and mixture-of-experts configurations yield the highest accuracy on natural and mixed-emotion evaluations. Analysis of facial action units (AUs) reveals that natural and acted emotions rely on partially distinct AU patterns, while generalizable models learn a shared representation that integrates salient AUs from both domains. These findings demonstrate that bridging acted and natural expression domains can enable more accurate and robust VR emotion recognition systems.


  • Open Access

    A Survey on Large Language Model Impact on Software Evolvability and Maintainability: the Good, the Bad, the Ugly, and the Remedy

    by Bruno Claudino Matias, Savio Freire, Juliana Freitas, Felipe Fronchetti, Kostadin Damevski, Rodrigo Spinola

    Context. Large Language Models (LLMs) are increasingly embedded in software engineering workflows for tasks including code generation, summarization, repair, and testing. Empirical studies report productivity gains, improved comprehension, and reduced cognitive load. However, evidence remains fragmented, and concerns persist about hallucinations, unstable outputs, methodological limitations, and emerging forms of technical debt. How these mixed effects shape long-term software maintainability and evolvability remains unclear. Objectives. This study systematically examines how LLMs influence the maintainability and evolvability of software systems. We identify which quality attributes are addressed in existing research, the positive impacts LLMs provide, the risks and weaknesses they introduce, and the mitigation strategies proposed in the literature. Method. We conducted a systematic literature review. Searches across ACM DL, IEEE Xplore, and Scopus (2020 to 2024) yielded 87 primary studies. Qualitative evidence was extracted through a calibrated multi-researcher process. Attributes were analyzed descriptively, while impacts, risks, weaknesses, and mitigation strategies were synthesized using a hybrid thematic approach supported by an LLM-assisted analysis tool with human-in-the-loop validation. Results. LLMs provide benefits such as improved analyzability, testability, code comprehension, debugging support, and automated repair. However, they also introduce risks, including hallucinated or incorrect outputs, brittleness to context, limited domain reasoning, unstable performance, and flaws in current evaluations, which threaten long-term evolvability. Conclusion. LLMs can strengthen maintainability and evolvability, but they also pose nontrivial risks to long-term sustainability. Responsible adoption requires safeguards, rigorous evaluation, and structured human oversight.

  • Open Access

    Detecting Natural Emotions in Virtual Reality Through Facial Movement Analysis

    by Terens Tare, Rahat Rizvi Rahman, Hee Yun Choi, Joonghyo Lim, Go Eun Lee, Seungmoo Lee, Chungyean Cho, Kostadin Damevski