# NINJA: A Navigator-Inspector Joint Architecture for Context-Efficient Issue Localization

DevFeed: [NINJA: A Navigator-Inspector Joint Architecture for Context-Efficient Issue Localization](<https://devfeed.tech/articles/ninja-a-navigator-inspector-joint-architecture-for-context-efficient-issue-localization-125863.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.10027>)

Author: Wenkai Fang, Shunyu Liu, Wei Luo, Zihao Wu, Yang Zhou, Tongya Zheng, Wotao Yin, Jialie Shen, Leszek Rutkowski, Mingli Song, Dacheng Tao

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [Claude](<https://devfeed.tech/topics/claude.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [exploration](<https://devfeed.tech/tags/exploration.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [flat](<https://devfeed.tech/tags/flat.md>), [function](<https://devfeed.tech/tags/function.md>), [global](<https://devfeed.tech/tags/global.md>), [independent](<https://devfeed.tech/tags/independent.md>), [inspection](<https://devfeed.tech/tags/inspection.md>), [llm](<https://devfeed.tech/tags/llm.md>), [localization](<https://devfeed.tech/tags/localization.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [navigator](<https://devfeed.tech/tags/navigator.md>), [qwen3](<https://devfeed.tech/tags/qwen3.md>), [qwen3-coder](<https://devfeed.tech/tags/qwen3-coder.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>), [repository](<https://devfeed.tech/tags/repository.md>)

## AI overview

NINJA localizes software issues by splitting repository exploration between a navigator and independent inspectors. The navigator maintains global search state, searches at file level, and assigns entry files; inspectors explore functions in separate contexts and return suspicious locations over multiple rounds. This is designed to balance repository-wide breadth with local depth while keeping inspection traces from accumulating in one growing context. The authors also introduce two-stage agentic fine-tuning. They report that NINJA outperforms competitive baselines across multiple benchmarks and model backbones, and that fine-tuned Qwen3-Coder-30B-A3B-Instruct surpasses Claude-Haiku-4.5. The supplied text provides no benchmark figures or evaluation details.

## Source excerpt

arXiv:2611.10027v1 Announce Type: cross Abstract: Recent advances in agent-based methods have demonstrated strong promise for issue localization, a critical prerequisite for software issue resolution. However, most existing agent-based methods rely on a single agent with a growing context, where long-context accumulation compresses the effective reasoning space. Meanwhile, the flat exploration structure hinders the balance between file-level breadth and function-level depth. To address these limitations, we propose NINJA, a hierarchical Navigator-Inspector Joint Architecture for context-efficient issue localization. NINJA decomposes repository exploration into global navigation and local inspection: the navigator maintains the global search state, performs file-level search, and dispatches selected entry files, while inspectors independently conduct function-level exploration around the assigned files in separate contexts. Through multi-round interactions, inspectors return suspicious locations as feedback, and the navigator updates the global state to decide whether to continue exploration or finalize localization. This hierarchical design balances file-level breadth with function-level depth, while independent inspector contexts prevent local exploration traces from accumulating in a single growing context. To further strengthen both global coordination and local exploration, we introduce a two-stage agentic fine-tuning strategy. Extensive experiments across multiple benchmarks and LLM backbones show that NINJA consistently outperforms competitive baselines. Notably, after fine-tuning, Qwen3-Coder-30B-A3B-Instruct surpasses the strong closed-source Claude-Haiku-4.5 model. Our code is available at https://github.com/wantbook-book/NINJA.