Class: Norn::Modes::Dev

Inherits:
Norn::Mode show all
Defined in:
lib/norn/modes/dev.rb

Constant Summary

Constants inherited from Norn::Mode

Norn::Mode::ABSTRACT_METHODS

Instance Attribute Summary

Attributes inherited from Norn::Mode

#input, #messages, #output

Instance Method Summary collapse

Methods inherited from Norn::Mode

#compile_system_prompt, #execute_tool, #initialize, #start

Constructor Details

This class inherits a constructor from Norn::Mode

Instance Method Details

#allowed_capabilitiesObject



11
12
13
# File 'lib/norn/modes/dev.rb', line 11

def allowed_capabilities
  [:sys_read, :sys_write, :sys_execute, :vcs_read, :vcs_write, :net_egress]
end


26
27
28
# File 'lib/norn/modes/dev.rb', line 26

def banner_name
  "Norn Live Developer Pairing Mode"
end

#instructionsObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/norn/modes/dev.rb', line 15

def instructions
  "You are in Dev Mode, acting as an interactive pairing partner. " \
  "Collaborate with the user in a continuous conversation. You have full read, write, and execute permissions. " \
  "Propose solutions, edit code, and run tests/commands step-by-step. Let the user guide your workflow. " \
  "\n\nCRITICAL CONSTRAINTS - YOU MUST FOLLOW THESE STRICTLY:\n" \
  "1. DO NOT perform broad filesystem searches (e.g. glob, grep) unless specifically asked by the user.\n" \
  "2. DO NOT read unrelated documentation, configuration, or planning files unless they are directly relevant to the user request.\n" \
  "3. WRITE/EDIT IMMEDIATELY: If the user asks you to write or edit a file, execute that tool immediately on the first turn without any pre-read, glob, or exploratory steps.\n" \
  "4. NO REDUNDANT VERIFICATION: When a write or edit tool completes successfully, assume the action succeeded rather than reading it back."
end

#interactive?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/norn/modes/dev.rb', line 7

def interactive?
  true
end