From 2e5b0ef3842b09f377a9ca3bf9edf67115d9d4c2 Mon Sep 17 00:00:00 2001 From: emmabars Date: Wed, 17 Sep 2025 16:59:57 +0100 Subject: [PATCH] emma's 1709 update_modes_of_usage.html --- .../3_5403_modes_of_usage.html | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/project_54_intro_to_junie/3_5403_modes_of_usage.html b/project_54_intro_to_junie/3_5403_modes_of_usage.html index ccfa7ac..9418976 100644 --- a/project_54_intro_to_junie/3_5403_modes_of_usage.html +++ b/project_54_intro_to_junie/3_5403_modes_of_usage.html @@ -8,32 +8,34 @@
From Inquiry to Action
-

The core of working with Junie revolves around a powerful loop: using Ask mode to inquire and learn, and using Code mode to plan and execute. Let's walk through a complete workflow where we first learn about a feature and then have the agent implement it for us.

+

The core of working with Junie revolves around a powerful loop: using Ask mode to inquire and learn, and Code mode to plan and execute. Let’s walk through a complete workflow where we first learn about a feature and then have the agent implement it.

Modes of Junie usage
Step 1: Inquire with 'Ask' Mode
-

Imagine you know that Junie can be customized, but you're not sure how. This is a perfect use case for 'Ask' mode. You can ask Junie about its own functionality. Let's find out about its project rules system.

+

Imagine you know that Junie can be customized, but you’re not sure how. This is a perfect use case for Ask mode, where you can ask Junie about its own functionality. Let’s explore the project rules system.

- + What are Junie guidelines? Explain their purpose, where the files should be stored, and what format they should use. -

Junie will provide a detailed explanation. It will tell you that guidelines are stored in `.md` files inside a `.junie/` directory, and that they are used to guide the agent's behavior to maintain project-specific standards. Now you have the knowledge.

+

Junie will provide a detailed explanation: guidelines are stored in .md files inside a .junie/ directory and are used to guide the agent’s behavior to maintain project-specific standards. Now you have the knowledge.

-Think of 'Ask' mode as your built-in documentation and pair-programming partner, always ready to clarify concepts or details about the code on which you are working or the tool itself. +Tip: Think of Ask mode as your built-in documentation and pair-programming partner—always ready to clarify concepts or details about the code you’re working on or the tool itself.
Step 2: Plan and Execute with 'Code' Mode
-

Now that we know how to create a rule, let's delegate the task of creating one to the Code mode. Switch to the Code, and ask Junie to write a guideline that enforces a header comment on all new Python files. Based on the information from 'Ask' mode, we can formulate a precise request.

+

Now that we know how to create a rule, we can delegate the task to Code mode. Switch to Code mode and ask Junie to write a guideline that enforces a header comment on all new Python files. Using what we learned in Ask mode, we can formulate a precise request.

Create project guidelines for Python files. -The guidelines should state that all new Python files must start with a header comment: `# Copyright (c) 2024 MyAwesomeProject`. -Create the necessary directory and file (`.junie/guidelines.md`). +The guidelines should state that all new Python files must start with a header comment: +# Copyright (c) 2024 MyAwesomeProject +Create the necessary directory and file (.junie/guidelines.md). -

Junie will now create a plan. After you approve the plan, Junie will execute it. In moments, your project has a new guideline, created correctly according to the feature you just learned about.

+

Junie will create a plan. After you approve it, Junie will execute the task. Moments later, your project has a new guideline created correctly based on the feature you just learned about.

+

Checklist:

Approve the plan and verify that the file and its content are created as expected. @@ -41,8 +43,8 @@
Step 2: Plan and Execute with 'Code' Mode
Supercharging 'Code' Mode

Code mode has two powerful modifiers that you can toggle:

This "Ask → Act" cycle is fundamental to working effectively with Junie. You use conversation to resolve ambiguity and gain knowledge, then use the agent to perform the work with precision and speed.