CodeIntel CLI tool
Project description
AJA – Code Intelligence for Java & Python
Understand your codebase. Not just files — architecture.
AJA is a codebase intelligence CLI for Java and Python projects. It gives you structural visibility that no IDE provides by default — how services connect to models, what depends on what, and where code actually lives across layers.
Built for developers who work in real, messy, large codebases — not toy projects.
Why AJA?
Standard IDE tools give you:
- Go to definition
- File search
- Text grep
That's not enough in real codebases where:
- A single service touches a dozen models
- Relationships are implicit and never documented
- "Go to definition" sends you three layers deep with no map back
AJA gives you the layer above all of that:
Architectural navigation — understand the system, not just the file.
Core Workflow
AJA is built around three actions:
🔍 Analyze
Scan your project once. AJA builds a structural map of every service, model, repository, controller, and their relationships — across your entire codebase.
🧭 Jump
Navigate instantly to any file, model, or service by name. No folder browsing. No tab switching. No guessing.
📋 Act
Extract exactly the right context for code review, refactoring, documentation, or AI-assisted analysis.
Key Features
| Feature | Details |
|---|---|
| Java & Python support | Static analysis, no compilation needed |
| Service → model → repository mapping | Full architectural layer visibility |
| Forward dependency traversal | What does this file depend on? |
| Reverse dependency traversal | What depends on this file? |
| Symbol-level relationships | Classes, methods, interfaces across files |
| Offline & local | No network, no server, no telemetry |
| Read-only | Zero modification to your project, ever |
Getting Started
pip install aja-codeintel
cd your-project/
aja scan .
aja tree .
That's it. AJA is now aware of your project structure.
Commands — Full Reference
aja scan .
What it does: Indexes all Java and Python source files in your project. Builds the internal graph of imports, dependencies, and relationships that every other command relies on.
When to use it: Once when you first open a project. Again after major structural changes (adding services, moving files).
aja scan .
Run this first. Everything else depends on it.
aja tree .
What it does: Prints a clean, source-only tree of your project. Filters out build artifacts, cache folders, and non-source files so you see only what matters.
When to use it: Getting your bearings in an unfamiliar codebase. Understanding folder structure at a glance.
aja tree .
Example output:
project/
├── controller/
│ └── UserController.java
├── service/
│ └── UserService.java
├── model/
│ └── User.java
└── repository/
└── UserRepository.java
aja open <name>
What it does: Fuzzy-searches your indexed project and opens the best matching file. You don't need the full path or exact name.
When to use it: When you know roughly what you're looking for but don't want to browse folders.
aja open UserService
aja open EmailService
aja open AppConfig
Saves you from clicking through 6 folders to find one file.
aja servicemap <service>
What it does: Maps a service to everything it touches — controllers that call it, models it uses, and repositories it depends on. Gives you a full architectural picture of one service in seconds.
When to use it: Before modifying a service. During code review. When onboarding to understand how a service fits into the system.
aja servicemap userservice
Example output:
UserService
├── Called by → UserController
├── Uses model → User, Address
└── Depends on → UserRepository, EmailService
This is the command that replaces 20 minutes of manual tracing.
aja modeltree <model>
What it does: Shows everywhere a domain model is referenced — which services use it, which repositories store it, which controllers expose it. Full vertical slice through your architecture for one model.
When to use it: Before renaming or modifying a model. Understanding the full impact of a data structure change.
aja modeltree User
aja modeltree Address
aja modeltree Order
Example output:
User (model)
├── UserService (service)
├── UserRepository (repository)
├── UserController (controller)
├── UserResponse (dto)
└── UserCreateRequest (dto)
Know the full blast radius before you touch anything.
aja related <file> --depth <n>
What it does: Shows all files that the given file directly or transitively imports and depends on. Depth controls how many layers deep to traverse.
When to use it: Understanding what a file pulls in. Checking for bloated dependencies. Preparing for a refactor.
aja related UserService --depth 1 # direct dependencies only
aja related UserService --depth 2 # dependencies of dependencies
aja related UserService --depth 3 # full transitive graph
Start at depth 1, go deeper only when you need to.
aja rrelated <file>
What it does: The reverse of related. Shows every file in your project that imports or depends on the given file. This is what standard IDEs almost never show you clearly.
When to use it: Before deleting or renaming a file. Understanding who will break if you change this. Identifying high-impact files in your codebase.
aja rrelated User
aja rrelated EmailService
aja rrelated ValidationUtil
Example output:
User.java is depended on by:
├── UserService.java
├── UserRepository.java
├── UserController.java
└── UserResponse.java
If this list is long, think twice before changing that file.
aja relsymbols <file>
What it does: Goes deeper than file-level relationships. Shows which specific classes, methods, and interfaces from this file are used across other files — and exactly where.
When to use it: Refactoring a class or method. Understanding which parts of a file are actually used vs. dead code candidates.
aja relsymbols UserService
aja relsymbols ValidationUtil
Example output:
UserService
├── createUser() → used in UserController.java
├── getUserById() → used in UserController.java, AdminService.java
└── deleteUser() → used in AdminController.java
Symbol-level precision, not just file-level noise.
aja imports <file>
What it does: Lists all local imports found in a given file — what it directly pulls in from your project (not third-party libraries).
When to use it: Quick check of what a file depends on without running the full graph.
aja imports UserService.java
aja imports orders.py
aja resolve <import-path>
What it does: Converts a logical import path (like a Java package path or Python module path) into the actual file location on disk.
When to use it: When you see an import in code and want to jump to the real file fast.
aja resolve com.example.service.UserService
aja resolve app.domain.entity.user
aja where <file>
What it does: The reverse of resolve. Takes a file path and tells you its import path — what you'd write if you were importing it from another file.
When to use it: When you need to write an import and don't want to manually construct the package path.
aja where src/main/java/com/example/service/UserService.java
aja where app/domain/entity/user.py
aja folder <path>
What it does: Lists all source files under a given folder recursively. Respects AJA's source-file filtering (Java and Python only).
When to use it: Quickly auditing what's inside a specific module or package folder.
aja folder src/main/java/com/example/service
aja folder app/domain
aja models
What it does: Lists all domain models and entities found in your project, detected from conventional model/entity folder patterns.
When to use it: Getting a full inventory of your data models. Onboarding. Architecture review.
aja models
aja copy <file>
What it does: Copies the full contents of a file (or multiple files) to your clipboard — ready to paste into a code review, chat, or AI tool.
When to use it: Preparing context for AI-assisted analysis. Sharing code in reviews. Extracting content without opening the file.
aja copy src/main/java/com/example/service/UserService.java
aja context <file>
What it does: Builds a layered context bundle around a file — the file itself plus its most relevant related files. Designed to give AI tools or code reviewers exactly the right amount of context, nothing more.
When to use it: Before asking an AI tool to review or refactor a component. Preparing a PR description.
aja context UserService
aja context UserService --depth 2
aja version
aja version
Prints the current AJA version.
Supported Languages
| Language | Analysis | Imports | Symbols | Services | Models |
|---|---|---|---|---|---|
| Java | ✅ | ✅ | ✅ | ✅ | ✅ |
| Python | ✅ | ✅ | ✅ | ✅ | ✅ |
Static analysis only — no compilation, no runtime, no build tools required.
When to Use AJA
| Situation | Best Command |
|---|---|
| Just opened an unfamiliar codebase | aja tree . → aja models |
| About to modify a service | aja servicemap <service> |
| About to delete or rename a file | aja rrelated <file> |
| Reviewing a PR | aja related <file> --depth 2 |
| Want to understand a model's impact | aja modeltree <model> |
| Preparing context for AI tools | aja context <file> or aja copy <file> |
| Tracing an import to its source | aja resolve <import> |
What AJA Is NOT
| ❌ Not this | ✅ It's this instead |
|---|---|
| A debugger | A static structure analyzer |
| A build tool | A read-only intelligence layer |
| A language server | A fast, offline graph query tool |
| Cloud-dependent | Fully local, no telemetry |
| An IDE replacement | A complement to your IDE |
Design Principles
- Zero configuration — point it at any project and it works
- Read-only always — AJA never writes to or modifies your project
- Human-readable output — designed for terminals and humans, not just machines
- Deterministic — same input always produces the same output
- Fast — sub-second responses on most commands
Requirements
- Python 3.8+
- Java or Python project (or both)
If IDEs help you write code, AJA helps you understand it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aja_codeintel-0.1.0.tar.gz.
File metadata
- Download URL: aja_codeintel-0.1.0.tar.gz
- Upload date:
- Size: 48.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4e2869d06137eec04f21e3bb507ab779304981195da9dcec59e0511c0432a05
|
|
| MD5 |
57001273ad605a1c32b63946edfc8a24
|
|
| BLAKE2b-256 |
bd0919c2b9becdea6212ca67a0009ca228c844f4bc0cfb0a51e79d6990351329
|
File details
Details for the file aja_codeintel-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aja_codeintel-0.1.0-py3-none-any.whl
- Upload date:
- Size: 72.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2949dcda64da08cc125cda23d12828fb549c07ab01e2db2825942ea9956c0be9
|
|
| MD5 |
c5f2b29b39ff2256f9c8a2d405321c33
|
|
| BLAKE2b-256 |
b0610e7038e1b2088cceb889bc78c9fe6a04f1dacf9fcf10705d52d4ca516e60
|