Anahata ASI Studio - IntelliJ
IntellijAsiContainer and its native IntelliJ toolkits are currently in Beta stage. Curious enthusiasts are encouraged to check out the sources, try the latest snapshot builds, and share their enthusiasm with Arslan on the Anahata Discord.
Multi-IDE Parity with NetBeans
The anahata-asi-intellij module provides complete feature parity with NetBeans ASI Studio. Powered by IntelliJ's Program Structure Interface (PSI), Virtual File System (VFS), and OpenAPI refactoring engines, Anahata operates natively inside JetBrains IDEs without external Node.js bridges or electron overlays.
WriteCommandAction with 100% undo/redo fidelity and comment preservation.DumbService so background AI execution threads never throw IndexNotReadyException or return stale PSI elements.IntelliJ Native Architecture Highlights
DiffRequestPanel. Features overlaid comic-style speech bubbles on the gutter and full two-way write-back so developers can tweak proposed code in PENDING state before execution.● AGI markers and adds per-session context curation popup menus to the Project explorer.How to Install the IntelliJ Plugin
Installing Anahata ASI in IntelliJ IDEA, Android Studio, or any JetBrains IDE takes less than 30 seconds:
anahata-asi-intellij-*.zip distribution archive..zip file, click OK, and restart the IDE. The Anahata ASI tool window will appear in your right-hand sidebar!IntellijJava Toolkit (1 Tool)
An IntelliJ-aware JIT compilation engine that compiles and executes model-generated Java code against the project's live OrderEnumerator classpath with child-first classloader prioritization.
Compiles and runs Java scripts against an open project's compiled module outputs and dependencies.
BatchCodeRefiner Toolkit (1 Tool)
Advanced structural Java refinement engine utilizing PSI AST-guided batch operations. Injects, updates, deletes, or moves entire class members atomically within a single undoable write command.
Executes an atomic batch of structural member modifications on a Java source file and returns a unified diff.
CodeRefiner Toolkit (4 Tools)
AST-based maintenance operations for Java files: structural import insertion, import optimization, IDE reformatting, and member annotations.
Structurally adds imports by resolving FQNs against the project classpath.
Shortens FQNs to simple names and cleans up unused imports.
Reformats a file using the project's active IDE code-style rules.
Adds an annotation to a class, method, or field identified by its canonical FQN.
CodeModel Toolkit (16 Tools)
High-performance PSI type index exploration: type discovery, member browsing, source retrieval, Javadoc inspection, and hierarchy resolution.
Index-based search across all open projects (IntelliJ Ctrl+N).
Registers a type's source file as a managed resource.
One-shot source loading for known class FQNs.
Retrieves the Javadoc documentation for a given type.
Javadoc retrieval for known class FQNs.
Retrieves source code for a specific Java member.
Source loading for known member FQNs.
Retrieves Javadoc documentation for a specific member.
Javadoc retrieval for known member FQNs.
Lists fields, constructors, methods, and inner classes.
Jump straight to members of a known class FQN.
Scans a package for types with optional recursion.
Explores implementations and subclasses for a JavaType.
Builds recursive implementation trees by FQN.
Explores inheritance base classes and interfaces for a JavaType.
Builds recursive inheritance trees by FQN.
Refactor Toolkit (14 Tools)
Transactional refactoring tools driven by IntelliJ's JavaRefactoringFactory and ReferencesSearch engines.
Safe rename of a top-level class updating all workspace references.
Renames a class member across all open projects.
Verifies remaining usages before deleting a class.
Finds all references/usages of a class in all open projects.
Finds all usages of a specific class member.
Moves a class to a different package, updating references.
Moves static members to another class.
Copies a class to another package, fixing package statements.
Pulls members up to a superclass.
Pushes members down to subclasses.
Inlines a method, replacing call sites with its body.
Updates name and return type, preserving parameters.
Extracts a new superclass from existing class.
Extracts a new interface with declared members.
Hints Toolkit (2 Tools)
On-demand inspection and code analysis via DaemonCodeAnalyzerImpl with programmatic quick-fix application.
Lists inspection/annotator highlights (errors, warnings) with line numbers.
Applies an inspection quick-fix on a given line automatically.
Maven Toolkit (5 Tools)
Deep Maven integration via MavenProjectsManager and MavenRunner.
Lists all imported Maven projects across open workspaces.
Lists resolved dependencies grouped by scope.
Executes Maven goals synchronously with latch wait.
Splices dependency into pom.xml and triggers reimport.
Searches the configured Maven repository index.
Projects Toolkit (6 Tools)
Workspace and lifecycle management for IntelliJ projects.
Returns absolute paths of all currently open projects.
Opens a project directory programmatically.
Closes specified open projects in the IDE.
Compiles (make) or rebuilds a project with synchronous results.
Saves all unsaved editor documents across the IDE to disk.
Toggles project-level context provider in prompt.
RunConfigurations Toolkit (2 Tools)
Discovers and launches IntelliJ run, debug, and test configurations directly.
Lists all configured run/debug/test configurations.
Launches a run/test configuration by name via ProgramRunnerUtil.
Vcs Toolkit (1 Tool)
Provider-agnostic version-control status inspector powered by ChangeListManager.
Reports changed, added, deleted, and unversioned files grouped by change list.
Terminals Toolkit (3 Tools)
Integrated terminal management via TerminalToolWindowManager.
Opens a local terminal tab and returns its tracking ID.
Types and executes a command sequence in a terminal tab.
Closes a tracked terminal tab by ID.
Editor & IDE Toolkits (6 Tools)
Direct editor navigation, log monitoring, and tool window queries.
Opens a file in the editor and optionally scrolls to line.
Lists all open editor tabs and their modification state.
Closes all files currently open in the editor.
Tails the idea.log stream with optional grep filtering.
Reveals and selects a file/folder in the Project view.
Returns a Markdown report of all registered tool windows.
Context Providers
The sensory array of the ASI in IntelliJ. These providers feed the RAG prompt with high-salience workspace metadata on every turn:
Project Overview
Injects authoritative project metadata, Maven packaging, and automatically synchronizes project-specific behavioral instructions from anahata.md.
Project Structure
Source-root-aware map built from IntelliJ's ProjectRootManager and ProjectFileIndex, distinguishing production vs test packages.
Project Alerts
Real-time compiler diagnostics via WolfTheProblemSolver, alerting the model to unresolved symbols and compilation errors.
Open Editors & Snippets
Renders a live table of open files, the focused editor's caret line, active text selections, and currently visible viewport lines.
Tool Windows
Real-time snapshot of every registered tool window across all open projects, reporting on visibility and active focus.