Anahata ASI Studio - NetBeans
Anahata ASI Container Reference Implementation and SDK for developing custom Anahata ASI Containers
It contains all the tools of the standalone version, plus these toolkits (the ones that are only available in NetBeans):
Refactor Toolkit (17 Tools)
Transactional refactoring tools that maintain integrity across the entire project graph by leveraging the industry-standard NetBeans Refactoring engine.
- Cross-Project Integrity: Rename members or relocate types with automatic import correction across the whole workspace.
- Surgical Safety: Use
safeDeleteto verify usages before any code removal, preventing broken builds. - Architectural Evolution: Extract interfaces, pull up members to superclasses, or invert boolean logic via natural language.
Safe rename updating all references in the workspace.
Renames a class member across all open projects.
Relocates types or files while correcting imports.
Copies a file or class to a different package.
Verifies usages before removing elements.
Replaces usages with method body or constant value.
Creates getter/setter and updates all references.
Inverts logic and updates all call sites.
Moves members to a new interface.
Moves members to a superclass.
Moves members to subclasses.
Updates name, return type, and parameters.
Extracts a new superclass from existing class.
Replaces class usages with a supertype.
Promotes a nested class to its own file.
Finds all references of a file or type.
Finds all usages of a specific class member.
CodeModel Toolkit (16 Tools)
Powered by the NetBeans Java Index, enabling high-performance type exploration and one-shot FQN resolution.
- Ctrl+O Mastery: The model uses the same binary index as the IDE to find types across the entire project graph instantly.
- Hierarchy Exploration: Recursively build implementation and inheritance trees for any type in the classpath.
- Dependency Inspecter: Fetch source code and Javadoc for project dependencies in a single shot without manual navigation.
Index-based search across all projects (Ctrl+O).
Registers a type's source file as a resource.
One-shot source loading for known FQNs.
Retrieves the Javadoc for a given type.
Javadoc retrieval for known FQNs.
Retrieves source code for a specific member.
Source loading for known member FQNs.
Retrieves Javadoc for a specific member.
Javadoc retrieval for known member FQNs.
Lists fields, constructors, and methods.
Jump straight to members of a known type.
Scans a package (optionally recursive) for types.
Explores implementations for a JavaType.
Builds recursive implementation trees.
Explores inheritance for a JavaType.
Builds recursive inheritance trees.
Maven Toolkit (7 Tools)
Leverages the host IDE's internal Maven engine for synchronous build goal execution and recursive dependency resolution.
- Native Execution: Runs
clean,install, orprimegoals using the NetBeans Maven embedder. - Transitive Awareness: The model fetches the full runtime classpath, including all hidden transitive dependencies.
- Fast Artifact Search: Connects to the local and central Maven indexes for ultra-fast GAV coordinate discovery.
Executes Maven goals (clean, install) synchronously.
Surgically adds a dependency to the project POM.
Lists dependencies directly declared in the POM.
Returns the full transitive runtime classpath.
Searches Central and local repositories for artifacts.
Bulk downloads sources and javadocs.
Verifies artifact existence before POM modification.
Projects Toolkit (7 Tools)
Provides the ASI with deep structural awareness of the IDE workspace and project metadata.
- Lifecycle Control: Programmatically open/close projects or set the Main Project via natural language.
- Multi-Module Strategy: Open all subprojects of a parent POM in a single tool call.
- Config Management: Toggle "Compile on Save" overrides directly in
nb-configuration.xml.
Opens a project in the IDE workspace.
Sets the authoritative main project for the IDE.
Closes one or more open projects.
Opens all child modules of a Maven parent.
Configures CoS in nb-configuration.xml.
Toggles project-level context providers.
Triggers native NetBeans project actions.
Hints Toolkit (3 Tools)
Programmatic access to the NetBeans Hint engine for automated code quality and surgical fixes.
- Global Quality Monitor: Retrieve all warnings, performance suggestions, and potential bugs for a project.
- Automated Cleanup: Surgically remove unused imports or fix naming conventions across multiple files.
- AI Surgical Patching: The model applies NetBeans "Quick Fixes" directly to the source code without user intervention.
Retrieves all warnings and suggestions for a project.
Executes the suggested quick-fix for a specific hint.
Surgically cleans up Java import statements.
Editor Toolkit (3 Tools)
Direct interaction with the active NetBeans editor tabs and document buffers.
- Visual Synchronization: The model can open a file and scroll to a specific line to "show" you its thought process.
- Workspace Observability: Knows which files you are looking at and their current modification status.
Opens and focuses a file in the IDE editor.
Lists all currently open editor tabs and status.
Clears the editor workspace.
IDE Toolkit (4 Tools)
Generic IDE orchestration, observability, and navigation tools.
- Deep Navigation: Select and highlight elements in the Projects, Files, or Favorites tabs via the model.
- Log Monitoring: Tails
messages.logto help the model debug IDE internal issues or plugin failures. - Visual Layout Awareness: Reports on the state of all docked windows and TopComponents.
Tails the IDE messages.log for real-time debugging.
Highlights elements in Projects, Files, or Favorites.
Returns a table of all open IDE windows.
Captures a snapshot of all active Output windows.
NbJava Toolkit (2 Tools)
On-The-Fly, NetBeans-aware, Swing-aware, User-editable, Java execution engine that can execute any java code directly on the NetBeans JVM without any secondary java process.
- Default Classpath: The model can literally execute any java code using 450+ netbeans jars and the ASI platform's jars (e.g. anything you can do with NetBeans apis or creating new AGI containers).
- Project's classpath: The model can extend the default classpath with your projects compile or test classpaths to prototype and test code on-the-fly
- Infinity classpath: The model can download any jar on Earth and execute code against it directly on the NetBeans JVM (no restarts, no separate process).
Executes model code using the project's own target/classes.
Inherited: Executes code in the application's JVM.
Context Providers
The sensory array of the ASI. These providers feed the RAG message with high-salience, real-time IDE metadata.
Project Overview
Injects authoritative metadata, available actions, declared dependencies, and automatically synchronizes project-specific instructions from anahata.md.
Project Structure
Provides a unified, architecturally-aware view of the project, including logical Java packages, physical resources, versioning info, and inner class hierarchies.
Project Files
Renders a real-time Markdown tree of the entire project directory, distinguishing between root files and source groups for precise surgical targeting.
Project Alerts
Continuous monitoring of Java compiler errors and project health, providing the ASI with metabolic awareness of broken code and workspace problems.
Open Windows
Observability into the user's visual workspace, reporting on all active editor tabs, explorer views, and docked TopComponents.
Output Monitor
Streaming build logs and process output from all active tabs in the NetBeans Output Window, enabling real-time debugging and feedback loops.