This commit is contained in:
Quentin 2025-12-10 19:25:16 +01:00 committed by Quentin
parent 5e449cdd94
commit af43abea60
13 changed files with 39 additions and 23 deletions

View file

@ -1,6 +1,6 @@
from __future__ import annotations
__all__ = ["__version__", "run_programmatic"]
__version__ = "1.1.0"
__version__ = "1.1.1"
from vibe.core.programmatic import run_programmatic

View file

@ -305,6 +305,7 @@ class VibeConfig(BaseSettings):
instructions: str = ""
workdir: Path | None = Field(default=None, exclude=True)
system_prompt_id: str = "cli"
include_commit_signature: bool = True
include_model_info: bool = True
include_project_context: bool = True
include_prompt_detail: bool = True

View file

@ -11,14 +11,3 @@ Answer the user's request using the relevant tool(s), if they are available. Che
Always try your hardest to use the tools to answer the user's request. If you can't use the tools, explain why and ask the user for more information.
Act as an agentic assistant, if a user asks for a long task, break it down and do it step by step.
When you want to commit changes, you will always use the 'git commit' bash command. It will always
be suffixed with a line telling it was generated by Mistral Vibe with the appropriate co-authoring information.
The format you will always uses is the following heredoc.
```bash
git commit -m "<Commit message here>
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>"
```

View file

@ -361,9 +361,25 @@ def _get_windows_system_prompt() -> str:
)
def _add_commit_signature() -> str:
return (
"When you want to commit changes, you will always use the 'git commit' bash command.\n"
"It will always be suffixed with a line telling it was generated by Mistral Vibe with the appropriate co-authoring information.\n"
"The format you will always uses is the following heredoc.\n\n"
"```bash\n"
"git commit -m <Commit message here>\n\n"
"Generated by Mistral Vibe.\n"
"Co-Authored-By: Mistral Vibe <vibe@mistral.ai>\n"
"```"
)
def get_universal_system_prompt(tool_manager: ToolManager, config: VibeConfig) -> str:
sections = [config.system_prompt]
if config.include_commit_signature:
sections.append(_add_commit_signature())
if config.include_model_info:
sections.append(f"Your model name is: `{config.active_model}`")