Haijun Code: Common developer use cases

Haijun Code is a command-line agent that runs in your terminal, reads your repository, edits files, executes commands, and requests confirmation before performing potentially destructive actions. It is designed to assist at every stage of the software development lifecycle—from exploring an unfamiliar codebase to shipping and maintaining production code. The table below summarizes where Haijun Code fits across the development lifecycle. The remainder of this article walks through the ten tasks developers most frequently use it for, with a sample prompt and expected result for each.

| 1. Discover | 2. Design | 3. Build | 4. Deploy | 5. Support and scale | | Explore codebase and history | Plan project | Implement code | Automate CI/CD | Debug errors | | Search documentation | Develop tech specs | Write and execute tests | Configure environments | Large-scale refactor | | Onboard and learn | Define architecture | Create commits and PRs | Manage deployments | Monitor usage and performance |

How to use this guide

Each use case below includes when to use it, an example prompt, and the expected result. No configuration is required for any of them except §9 (issue-tracker integration), which requires a one-time MCP connector setup. Use cases are ordered roughly by how early most developers encounter them. Select the one that matches your current task.


Use cases

1. Fix a failing test

When to use this: A test is failing and the cause is not immediately obvious. Use this to have Haijun Code locate the root cause and propose a fix without you needing to identify the source file first. Example prompt:

###

##

###

###

###

###

###

###

###

##

| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |

##

| | | [](https://raw.haijun.my.id/docs/en/quickstart)| | | [](https://raw.haijun.my.id/docs/en/common-workflows)| | | [](https://raw.haijun.my.id/docs/en/permissions)| | | [](https://raw.haijun.my.id/docs/en/memory)| | | [](https://raw.haijun.my.id/docs/en/mcp)| | | [](https://raw.haijun.my.id/docs/en/tracks)| | | [](https://raw.haijun.my.id/docs/en/commands)| | |

[](https://raw.haijun.my.id/docs/)[](https://raw.haijun.my.id/docs/)