JetBrains Air: run your coding agents inside the IDE

JetBrains’ 2026.3 IDE releases are out, and the headline feature isn’t a language update. It’s Air, which JetBrains calls “a new layer for agentic development.” The idea is simple: instead of committing to one AI assistant, you bring the coding agents you already use and run them inside the IDE, side by side.

What Air is

Air is a home for agent sessions in JetBrains IDEs. You open it from the Agent Sessions icon (⌘2 on macOS, Alt+2 on Windows and Linux). From there you start sessions, keep an eye on them across projects, and review what they changed.

Which agents it supports

Out of the box: Claude Agent, Codex, Gemini, GitHub Copilot and JetBrains’ own Junie. Any other agent that speaks the Agent Client Protocol (ACP) can be added from the ACP registry, and Air picks up compatible agents already installed on your machine. Sign-in, model choice and access to IDE tools vary by agent.

How it works

  • Parallel work: each agent can get its own Git worktree so they don’t step on each other. JetBrains is clear that worktrees are separate folders, not security sandboxes.
  • IDE context: supported agents can use the IDE’s debugger, profiler, database tools and semantic code search, so they guess less.
  • Review: changes show up as diffs next to the surrounding code. You can comment on specific lines, send that feedback straight back to the agent, and run tests before accepting anything.

What it costs

Air doesn’t require a JetBrains AI subscription. You bring your own provider subscription or API key, and each provider’s pricing and usage limits still apply; balances aren’t pooled across subscriptions. Two exceptions: running agents in the cloud currently needs a JetBrains AI subscription, and Junie Lite is free for a limited time with just a JetBrains account. If you pay for Claude, you can run Claude Code in Air’s terminal or a full-screen IDE tab and sign in there.

Who it’s for

Air works with 2026.2 and comes pre-installed from 2026.3 in IntelliJ IDEA, PyCharm, WebStorm, Rider, CLion, RustRover, GoLand, PhpStorm and RubyMine. It’s most useful if you already juggle more than one agent, or if you run Claude Code or Codex in a terminal next to your IDE and keep switching windows to review diffs. One catch: installing Air from its in-IDE notification turns off the AI Assistant plugin, though you can switch it back on in Settings | Plugins.

My take

JetBrains is treating agents as interchangeable and spending its effort on what it’s good at: code intelligence and review. That’s a sensible bet. Agents keep getting easier to swap, while a good diff view and a debugger an agent can actually use are hard to build. Whether Air beats a terminal plus your usual workflow will come down to how the review loop holds up on real projects, so it’s worth a try before forming a strong opinion.

This post is generated with Claude Duet.


Sources

Node.JS custom Callback function declare

http://stackoverflow.com/questions/2190850/create-a-custom-callback-in-javascript

421down voteaccepted

Actually, your code will pretty much work as is, just declare your callback as an argument and you can call it directly using the argument name.

The basics

function doSomething(callback) {
    // ...

    // Call the callback
    callback('stuff', 'goes', 'here');
}

function foo(a, b, c) {
    // I'm the callback
    alert(a + " " + b + " " + c);
}

doSomething(foo);

That will call doSomething, which will call foo, which will alert “stuff goes here”.

Note that it’s very important to pass the function reference (foo), rather than calling the function and passing its result (foo()). In your question, you do it properly, but it’s just worth pointing out because it’s a common error.

More advanced stuff

Sometimes you want to call the callback so it sees a specific value for this. You can easily do that with the JavaScript call function:

function Thing(name) {
    this.name = name;
}
Thing.prototype.doSomething = function(callback) {
    // Call our callback, but using our own instance as the context
    callback.call(this);
}

function foo() {
    alert(this.name);
}

var t = new Thing('Joe');
t.doSomething(foo);  // Alerts "Joe" via `foo`

You can also pass arguments:

function Thing(name) {
    this.name = name;
}
Thing.prototype.doSomething = function(callback, salutation) {
    // Call our callback, but using our own instance as the context
    callback.call(this, salutation);
}

function foo(salutation) {
    alert(salutation + " " + this.name);
}

var t = new Thing('Joe');
t.doSomething(foo, 'Hi');  // Alerts "Hi Joe" via `foo`

Sometimes it’s useful to pass the arguments you want to give the callback as an array, rather than individually. You can use apply to do that:

function Thing(name) {
    this.name = name;
}
Thing.prototype.doSomething = function(callback) {
    // Call our callback, but using our own instance as the context
    callback.apply(this, ['Hi', 3, 2, 1]);
}

function foo(salutation, three, two, one) {
    alert(salutation + " " + this.name + " - " + three + " " + two + " " + one);
}

var t = new Thing('Joe');
t.doSomething(foo);  // Alerts "Hi Joe - 3 2 1" via `foo`

It is good practice to make sure the callback is an actual function before attempting to execute it:

if (callback && typeof(callback) === "function") {

  callback();
}

 

My 2 cent. Same but different…

<script>
    dosomething("blaha", function(){
        alert("Yay just like jQuery callbacks!");
    });


    function dosomething(damsg, callback){
        alert(damsg);
        if(typeof callback == "function") 
        callback();
    }
</script>