junie

An installer for JetBrains Junie, an AI coding assistant built into IDEs such as PhpStorm and IntelliJ IDEA. It adds project guidelines and distributes Marko skill files for Junie.

In plain words
What is it for?
Use it to create Junie guidelines, install skill files, and update the shared AGENTS.md guidance file in a project.
Why use it?
It gives Junie the project-specific instructions and skills it should read during coding sessions.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/marko-php/marko/junie
Clone the repo
git clone --depth 1 https://github.com/marko-php/marko
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 614 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.00614
Opus 5 $0.00012 $0.00307
Sonnet 5 $0.00005 $0.00123
Haiku 4.5 $0.00002 $0.00061

Measured 2d ago against content hash c2944462f56c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

junie scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/docs-markdown/docs/ai-assisted-development/agents/junie.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

JetBrains Junie is JetBrains' agentic AI assistant built into PhpStorm, IntelliJ IDEA, and other JetBrains IDEs. devai:install configures it with a project guidelines file and Marko skills.

Prerequisites

  • PhpStorm 2024.1+ or IntelliJ IDEA 2024.1+ with Junie enabled
  • Junie plugin activated in your IDE
  • marko/devai installed (see Installation)

What devai:install writes

Running marko devai:install with Junie detected produces the following files:

junie/guidelines.md                # Project guidelines read by Junie on each session
junie/skills/                      # Marko skill files distributed for Junie
AGENTS.md                          # Shared guidelines file (devai-managed marker block)

Junie does not implement MCP registration or LSP registration.

guidelines.md

The junie/guidelines.md file (under a junie/ directory in the project root, not .junie/) is Junie's primary source of project context. The installer writes merged Marko guidelines:

  • Module structure and naming conventions
  • Available tools and their descriptions
  • Project-specific guidelines from every installed package's resources/ai/guidelines.md

Skills

Marko skill bundles are written to junie/skills/ so Junie can reference them during agentic tasks.

AGENTS.md

devai:install writes the shared AGENTS.md guidelines inside a <!-- BEGIN/END marko:devai --> marker block: created if absent, and on later runs only the marked region is refreshed, so content you add outside the markers is preserved. Remove the markers to take full ownership — devai then leaves the file alone. See Editing generated files.

Manual verification

  1. Open your project in PhpStorm with Junie enabled.
  2. Open the Junie panel and ask: What conventions should I follow for this project? — Junie should describe the Marko guidelines from junie/guidelines.md.
  3. Verify junie/guidelines.md exists in the project root.
  4. Verify junie/skills/ contains skill files.

Read the full file on GitHub · 56 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 56 lines · 24 tokens per session scan A c2944462f56c

Subscribe to this mod's changes

junie is an agent published in the GitHub repository marko-php/marko (393 stars, last pushed 3d ago), licensed MIT. It adds 24 tokens to every session and 614 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.