Skip to content

About

IntelliJ plugin for Ananke typed holes

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Ananke IntelliJ Plugin

IntelliJ IDEA plugin for Ananke typed holes and constraint-based code generation.

Overview

Work with typed holes in IntelliJ-based IDEs. Detect incomplete code, get AI-powered fill suggestions, extract and validate constraints, and generate code with constraint guarantees.

Features

Typed Holes

  • Hole Detection - Automatic detection of TODO, FIXME, unimplemented, etc.
  • Fill Suggestions - AI-powered completions with confidence scores
  • Code Actions - Quick fixes via intention actions
  • Decomposition - Break complex holes into smaller pieces
  • Gutter Icons - Visual indicators for holes

Constraint System

  • Extraction - Extract constraints from source code via CLI
  • Validation - Validate code against extracted constraints
  • Compilation - Compile constraints to IR for generation

Code Generation

  • Context Manager - Add files and selections to generation context
  • Generation Dialog - Prompt-based constraint-guided generation
  • Insert/Copy - Apply or copy generated code

Ariadne DSL

  • File Type - Registered support for .ariadne files
  • LSP Integration - Diagnostics, completion, and hover

Requirements

  • IntelliJ IDEA 2023.3+ (or compatible JetBrains IDE)
  • LSP4IJ plugin
  • ananke-lsp binary in PATH
  • ananke CLI binary in PATH (for constraint operations)

Installation

From JetBrains Marketplace

Search for "Ananke" in Settings > Plugins > Marketplace.

From Disk

  1. Download the plugin ZIP from releases
  2. Settings > Plugins > Install Plugin from Disk

From Source

./gradlew buildPlugin
# Plugin ZIP in build/distributions/

Configuration

Settings > Tools > Ananke

LSP Settings

Setting Default Description
LSP Command ananke-lsp Path to LSP server binary
Arguments `` Additional LSP arguments

CLI Settings

Setting Default Description
CLI Path ananke Path to ananke CLI binary

Detection Settings

Setting Default Description
Enable Semantic Detection true Use AST-based hole detection
Detect on Save true Auto-detect when saving
Detect on Open true Auto-detect when opening files

Fill Settings

Setting Default Description
Min Confidence 0.5 Minimum confidence for suggestions
Max Suggestions 5 Maximum fill suggestions
Auto-fill Threshold 0.8 Confidence for auto-fill

Extraction Settings

Setting Default Description
Auto Extract false Extract constraints on save
Extraction Confidence 0.5 Minimum extraction confidence
Use Claude false Use Claude AI for extraction

Generation Settings

Setting Default Description
Endpoint URL `` Generation endpoint (required)
Max Tokens 2048 Maximum tokens for generation
Temperature 0.7 Generation temperature
Context Max Tokens 8000 Max tokens for context

Display Settings

Setting Default Description
Show Gutter Icons true Show hole indicators
Show Inline Hints false Show inline constraint hints
Show Confidence true Show confidence scores

Keyboard Shortcuts

Hole Operations

Shortcut Action
Ctrl+Alt+H Detect holes
Ctrl+Alt+F Fill hole at cursor
Ctrl+Alt+I Inspect hole

Constraint Operations

Shortcut Action
Ctrl+Alt+E Extract constraints
Ctrl+Alt+V Validate file
Ctrl+Alt+G Generate code

All actions also available via Tools > Ananke menu.

Actions

Hole Actions

  • Detect Holes - Detect typed holes in current file
  • Fill Hole - Fill hole at cursor with suggestions
  • Fill All Holes - Fill all auto-resolvable holes
  • Decompose Hole - Break hole into smaller pieces
  • Inspect Hole - View hole details
  • Mark for Review - Mark hole for human review
  • Skip Hole - Skip current hole

Constraint Actions

  • Extract Constraints - Extract from current file
  • Validate File - Validate against constraints
  • Compile Constraints - Compile to IR

Generation Actions

  • Generate Code - Open generation dialog
  • Add File to Context - Add file to context
  • Add Selection to Context - Add selection to context
  • Show Context - View current context
  • Clear Context - Clear generation context

Utility Actions

  • Show Version - Show CLI version
  • Initialize Workspace - Initialize ananke config

Supported Languages

  • Python
  • TypeScript/JavaScript
  • Rust
  • Zig
  • Go
  • Ariadne DSL

Workflow

Basic Hole Workflow

  1. Open a file with typed holes
  2. Holes appear as diagnostics
  3. Use Ctrl+Alt+F to fill at cursor
  4. Select from suggestions

Constraint-Guided Generation

  1. Extract constraints: Ctrl+Alt+E
  2. Add context via Tools > Ananke > Add File to Context
  3. Generate code: Ctrl+Alt+G
  4. Enter prompt and apply or copy result

Development

# Build
./gradlew build

# Run in sandbox IDE
./gradlew runIde

# Run tests
./gradlew test

# Verify plugin
./gradlew verifyPlugin

Related Projects

License

All Rights Reserved - Copyright (c) 2025 Rand Arete

About

IntelliJ plugin for Ananke typed holes

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages