English

AgenticTyper: Automated Typing of Legacy Software Projects Using Agentic AI

Software Engineering 2026-02-26 v1 Artificial Intelligence Multiagent Systems Programming Languages

Abstract

Legacy JavaScript systems lack type safety, making maintenance risky. While TypeScript can help, manually adding types is expensive. Previous automated typing research focuses on type inference but rarely addresses type checking setup, definition generation, bug identification, or behavioral correctness at repository scale. We present AgenticTyper, a Large Language Model (LLM)-based agentic system that addresses these gaps through iterative error correction and behavior preservation via transpilation comparison. Evaluation on two proprietary repositories (81K LOC) shows that AgenticTyper resolves all 633 initial type errors in 20 minutes, reducing manual effort from one working day.

Keywords

Cite

@article{arxiv.2602.21251,
  title  = {AgenticTyper: Automated Typing of Legacy Software Projects Using Agentic AI},
  author = {Clemens Pohle},
  journal= {arXiv preprint arXiv:2602.21251},
  year   = {2026}
}

Comments

Accepted at ICSE 2026 Student Research Competition (SRC)

R2 v1 2026-07-01T10:50:35.362Z