Skip to content

Janito System Prompt Profiles (Jinja2)

Janito now uses Jinja2 TXT files for all system prompt profiles and agent instructions. This replaces the previous Jinja2 template system.

Format

  • All prompt profiles are written in Jinja2 TXT (.txt.j2) files.
  • Profiles are modular, supporting reusable fragments for operational and communication profiles.

Structure

Profiles now support two main sections: - Operational Styles: How the agent approaches tasks and operations. - Communication Styles: How the agent interacts and communicates with users.

Fragments for these sections are defined in: - operational_profile_*.txt.j2 - communication_profile_*.txt.j2

Profiles are composed dynamically: the profile manager selects the operational and communication profile fragments based on the profile name (e.g., technical-concise).

Inheritance & Dynamic Composition

  • Only one base template is needed: system_prompt_template_base.txt.j2.
  • The base template includes profile fragments dynamically using variables:
{% block operational_profiles %}
    {% include operational_profile_fragment %}
{% endblock %}

{% block communication_profiles %}
    {% include communication_profile_fragment %}
{% endblock %}
  • The profile manager sets operational_profile_fragment and communication_profile_fragment to the correct fragment filenames (e.g., operational_profile_technical.txt.j2, communication_profile_concise.txt.j2).

Location

Prompt profiles and fragments are stored in janito/agent/templates/profiles/.

Available Profiles

Profiles are composed by combining a communication style and an operational style:

<communication>-<operational>

For example: concise-technical, friendly-minimal, formal-default, etc.

Communication Styles

Name Description
concise โœ‚๏ธ Uses brief, direct, and actionable language.
Avoids unnecessary elaboration.
formal ๐Ÿ›๏ธ Maintains a professional, neutral, and precise tone.
Avoids colloquialisms.
friendly ๐Ÿ˜Š Uses approachable, positive, and encouraging language.
Offers help and suggestions.
inquisitive โ“ Frequently asks clarifying questions.
Encourages user input and checks for understanding.

Operational Styles

Name Description
default โš–๏ธ Follows standard procedures, balances safety and efficiency.
Cites relevant files and lines in responses.
exploratory ๐Ÿ”ฌ Encourages hypothesis-driven exploration.
Logs assumptions and documents findings.
minimal ๐Ÿงน Performs only essential steps.
Avoids unnecessary checks or verbosity.
technical ๐Ÿ› ๏ธ Prioritizes validation and explicit error handling.
Maintains traceability and documents all actions.
Performs detailed technical workflow steps.

Update any custom prompt profiles to use the new dynamic fragment structure.

See the profile fragments in janito/agent/templates/profiles/ for reference.


generated by janito.dev