Credentials. The local JSON config holds your model API key and CLS credentials, so keep config/project.json and config/user.project.json out of version control.
Who it is forAn engineer who wants to test alert diagnosis on their own machine before trusting it with real alert data.
The problemRunning the diagnosis pipeline needs Kafka, Redis, Milvus, the API, the event worker, and the frontend all started and wired to model and CLS settings.
The outcomeA running local workspace where you can open a chat or diagnosis session and watch progress stream in the browser.
What you need first
- Python 3.10+, uv, Node.js 22+, and Docker Compose installed locally
- Access to a configured Qwen-compatible model service and its API key
- Tencent CLS credentials if you use the CLS integration
- Git clone of kkjiangk/agent-py
Steps
- Run
npm ciat the repository root. - Run
cp config/project.template.json config/project.jsonandcp config/user.project.template.json config/user.project.json. - Edit both local JSON files to set the model API key, chat and embedding model names, and the required CLS fields.
- Run
./scripts/start-local.sh. - Open
http://127.0.0.1:5173in a browser to use the workspace.
Prompt for your agent
In the kkjiangk/agent-py repository, follow the local development steps in its README to start the stack with ./scripts/start-local.sh. Report which of the frontend, API, and Alertmanager addresses responded. Verify that http://127.0.0.1:8000/docs loads before you finish.
Caveat. The workspace UI is in Chinese, and the setup needs a Qwen-compatible model service and, for CLS, Tencent credentials.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for kkjiangk/agent-py and "Run the local alert investigation stack in one command"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer