Integrations

Claude Code

Using Stellarion with Claude Code CLI

Stellarion is designed to work seamlessly with Claude Code, Anthropic's CLI for AI-assisted development.

Setup

1. Install Stellarion

npm install -g stellarion

2. Initialize in Your Project

cd /path/to/your/project
stellarion init

This configures Claude Code to use Stellarion's MCP server.

3. Verify Connection

Start Claude Code and check that Stellarion tools are available:

claude

Ask Claude:

What Stellarion tools are available?

Workflow Examples

Code Quality Review

Analyze the code quality of this project.
What are the main issues I should address?

Claude Code will use Stellarion's analyze_quality and find_refactoring tools to provide a comprehensive assessment.

Understanding a Codebase

Help me understand this codebase.
What's the overall structure and main components?

Claude Code will use project_info and analyze_structure to explain the architecture.

Finding Specific Code

Find the authentication middleware in this project.

Claude Code will use search_semantic to locate relevant code by meaning.

Impact Assessment

I want to refactor src/services/userService.ts.
What would be affected?

Claude Code will use analyze_impact to assess the risk and scope of changes.

Generating Reports

Generate a technical debt report for this project.

Claude Code will use generate_report to create a comprehensive analysis.

Best Practices

Index First

For best semantic search results, index your project:

Index this project for semantic search

Be Specific

The more context you provide, the better the analysis:

Analyze the complexity of the API routes in src/api/

Check the code quality

Combine Tools

Ask Claude to use multiple tools together:

Find the most complex functions in src/,
show their dependencies,
and suggest refactoring priorities.

Iterate

Use follow-up questions to drill down:

> Analyze code quality in src/
[Results]

> Show me more details about the userService complexity
[Details]

> What would be affected if I split this into smaller functions?
[Impact analysis]

Configuration

Stellarion configuration is stored in .stellarion/ in your project:

.stellarion/
├── .env          # Environment variables
└── config.json   # Project settings

Environment Variables

Configure in .stellarion/.env:

OPENAI_API_KEY=sk-your-key

ROBERTA_MODEL_PATH=/path/to/models