Documentation contents09 / 20

Keep your decisions09 / 20

Write what you settled into intent

On this page

You talk with an Agent for an afternoon and settle a dozen things. A week later, how many can you still find? In Noea, what you settle is drafted by the Agent as an intent proposal, in the words you used; it goes into your Intent Documents only after you have read it in the document, edited it if you like, and accepted it.

Start the discussion from something concrete

Hover over the relevant paragraph and click “Ask about this” on its left. The document and a chat open side by side, with a reference to the paragraph already in the message box, waiting for you to finish your question.

You can also type @ in the message box to search documents, paragraphs and explanations, and send what you pick as a reference. That is more precise than “the paragraph above”.

When someone on an annual plan wants out midway, today it is all or nothing. That is too blunt. Past 14 days, refund the whole months that are left.

Once it's clear, have it drafted:

Write this rule into Refunds. Draft the intent for me to review first, and don't change the code yet.

First decide: fix the code, or change the requirement

When the implementation doesn't match your intent, first check whether your original requirement still stands. Say Refunds reads “A subscription can be refunded in full within 14 days of payment”, but the code also refunds in full on day 15:

Your decisionWhat to do next
It is still 14 daysLeave the intent alone, have the Agent fix the code, and verify day 14 and day 15
After discussion, you decide to allow 15 daysChange the intent, review the new condition, then have the Agent implement it

Don't change your intent to suit the code. If the Agent misunderstood, clarify; if the code is wrong, fix the code; change the intent only when you decide the rule itself should change. To have the code fixed, say so plainly:

It is still 14 days. Fix the full refund on day 15, add tests for day 14 and day 15, and don't change the intent.

Suggestion cards and proposal cards

When the Agent comes across something worth writing into your intent while it works, it leaves a suggestion card at the end of its reply, with a title and the main points. Click “Adopt” and it takes another turn in the same chat to turn the suggestion into a proposal the implementation already meets; click “Dismiss” and it is only marked on your computer, with no file touched.

A proposal card carries actual changes to your Intent Documents. It appears at the end of the reply that submitted the proposal, with its title and the files involved, and can be acted on once that turn ends. When the Agent revises a proposal, the old version leaves a line such as “Revised to v2” that takes you to the latest card.

Review in the document

When a proposal arrives while its chat is on screen, Noea opens it for review by default: the documents involved open in review mode on the left, the chat moves to the right, and the message box keeps focus so you can keep talking while you read. You can turn this off with “Open review automatically” in Settings → Automation, and open reviews from the proposal card's “View Changes” instead.

After the idea for annual refunds came up in the chat, the Agent drafted one sentence of intent. Refunds opens in review mode on the left, with the replaced text and the new text one above the other; the chat and the proposal card are on the right.

Review mode keeps the document's own layout, with no line numbers or plus and minus signs:

ChangeHow it shows
Added paragraphLight green background, marked “Added” on the left
Rewritten paragraphThe original above, light red and struck through; the new text below, light green. When the two are close, the changed words are marked too
Deleted paragraphStays in place, light red and struck through
BackgroundNormal text with a grey bar on the left, marked “Background”: content the implementation already meets, included to show where the new content sits
A whole document created or deletedThe whole document shows as added or deleted

When only a few items of a list or table change, it still shows as one complete list or table, with the changes on the specific items and cells. Documents a proposal creates appear for the moment under “intents” in the sidebar, marked as new.

The review bar at the bottom of the document steps through the changes, such as “1 of 3”, with previous and next; when a proposal covers several documents it carries on across them, or you can switch by file name. The review bar offers the same actions as the proposal card, and they apply to the whole proposal: you can't accept change by change.

In review mode you can edit the added and rewritten text directly. Once you do, “Accept” becomes “Accept My Edits”. Before you decide, ask yourself:

  • Can I explain the new conditions and terms in my own words?
  • Has an instruction for this piece of work been written up as a lasting requirement?
  • Has the Agent quietly loosened an existing constraint to make the document fit the current code?
  • Next time I want to change this behavior, will I find the sentence?

If anything is unclear, ask in the chat on the right, or have it revise the proposal.

Run Guidance

Some requirements apply only to this implementation and don't belong in the intent text, such as “reuse sendOnce from the trial reminders to avoid duplicates” or “don't touch the database schema yet”. They can go with the proposal as Run Guidance for the implementation that follows.

In review mode, Run Guidance appears under the paragraph it relates to, with a colored bar and a light background to set it apart from the text. Hover over a paragraph to add guidance to it; clear one to delete it. The proposal card lists all of the proposal's Run Guidance, and you can edit or add to it there too. Changes to Run Guidance are changes to the proposal and are submitted with it when you accept; after you decide, it becomes read-only.

Run Guidance belongs to this one implementation. It helps the Agent choose within what your intent allows, but it can't override the intent text; later implementations don't carry it over by default; and deleting a piece of guidance doesn't mean undoing what it influenced. What was actually chosen is told by the explanation. If you want a choice to last, write it into the intent text.

Choose what to do with it

ActionIntent DocumentsCode
AcceptThe whole proposal is written inIf it needs implementing, the chat's Agent goes on to implement it; if the implementation already meets it, nothing more is done
Accept My EditsYour edited version is written inAs above, following your edited text
Implement DirectlyNothing is writtenThe code is changed as proposed
DismissNothing is writtenNothing changes because of it

If you want a decision to bind every later implementation, accept it. “Implement Directly” suits a one-off change you don't want to keep as a rule. Dismissing a proposal doesn't undo code the Agent changed before it; for instance, it may have done the work first and then proposed writing the existing behavior into your intent.

After you accept, the paragraphs written into the document are briefly highlighted.

When the proposal or the document changes

When a new version of a proposal is submitted in the same chat, review switches to it; edits you made to the old version aren't kept, and the review bar tells you so.

If the document has changed since the proposal was made, the proposal can't be applied as it is: the review bar says “The document has changed; this proposal can't be applied directly”, and Accept is unavailable. Click “Ask Agent to Re-propose on Current Version” and the Agent drafts it again from the latest document.

After you accept

A proposal that needs implementing is implemented in the same chat, then explained. If the implementation doesn't finish normally, the card shows “Implementation not finished”; click “Continue Implementing” to carry on.

When you leave review to look at another document or chat, the review is hidden for the moment and the proposal card offers “Back to Review”. Clicking “Collapse” on the review bar leaves review, and the left pane goes back to how it was.

Next, see Read changes by intent to check what the implementation changed.