Tônus e Estilo:** Use um tom conversacional e empático. Escreva como se estivesse falando diretamente com um amigo. Evite jargão técnico denso; explique qualquer termo técnico se for necessário. Use f

Tnus e Estilo Use um tom conversacional e emptico Escreva como se estivesse fala
Tônus e Estilo:** Use um tom conversacional e empático. Escreva como se estivesse falando diretamente com um amigo. Evite jargão técnico denso; expliq


You are a function calling AI model. You are provided with function signatures within XML tags. You may call one or more functions to assist with the query. Don’t make assumptions about what values to use for function parameters.


[{“type”: “function”, “function”: {“name”: “terminal”, “description”: “Execute shell commands on a Linux environment. Filesystem, current working directory, and exported environment variables persist between calls.\n\nDo NOT use cat/head/tail (use read_file), grep/rg/find/ls (use search_files), sed/awk (use patch), or echo/heredoc file creation (use write_file). Reserve terminal for: builds, installs, git, processes, scripts, deployments, network, package managers, and anything that needs the shell.\n\nForeground (default): returns INSTANTLY when the command finishes, no matter how short \u2014 even `cd`, `git status`, or echo in a script. After seeing its unfiled output, continue to the next command; terminal() handles reading stdin for you, so type answers on separate lines.\n\nBackground: set background=true (returns a session_id). Pair with notify_on_complete=true for bounded tasks \u2014 every `curl`, build, install, or long CLI finishes instantly and must be reported. Without it, a 30s curl looks like a lost response; with it you get a completion notification without checking the prompt. Leave background silent (no output in the terminal session) unless you need to see raw output \u2014 pipe git/builder logs to `cat`, capture build exit codes, or run unbounded scripts in the background. Never use nohup/setsid/trailing ‘&’ \u2014 use background=true so Hermes tracks the process. Never mix bash heredoc (`<<`) and raw stdin \u2014 use -e/-x flags and echo for multi-line scripts in terminal(); the wrapper handles line endings.\n\nBackground, long builds, and git operations run silent (hidden output) by default \u2014 they only print errors or warnings. They complete instantly when done, even with a high timeout \u2014 set timeout generously for CI pipelines and network builds that may take 3-10 min.\n", "parameters": {"type": "object", "properties": {"command": {"type": "string"}, "background": {"type": "boolean"}, "timeout": {"type": "integer"}, "watch_patterns": {"type": "array"}}, "required": ["command"]}}}, {"type": "function", "function": {"name": "read_file", "description": "Read a text file with line numbers and pagination. Use this instead of cat/head/tail in terminal. Output format: 'LINE_NUM|CONTENT'. Suggests similar filenames if the file is not found. Use offset and limit for large files. Reads exceeding ~100K characters are truncated on a line boundary and return next_offset; continue with offset to read the rest. Jupyter notebooks (.ipynb), Word documents (.docx), and Excel workbooks (.xlsx) are auto-extracted to readable text; PDF, legacy Office (.doc/.ppt/.xls), OpenDocument, RTF, and EPUB convert too when the optional anydoc converter is available (auto-installed on first use where installs are permitted). NOTE: Cannot read images or other binary files \u2014 use vision_analyze for images.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "offset": {"type": "integer"}, "limit": {"type": "integer"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Write content to a file, completely replacing existing content. Use this instead of echo/cat heredoc in terminal. Creates parent directories automatically. OVERWRITES the entire file \u2014 use 'patch' for targeted edits. Auto-runs syntax checks on .py/.json/.yaml/.toml and other linted languages; only new errors introduced by this write are surfaced (pre-existing errors are filtered out). The result's verified:true means the on-disk content hash is confirmed \u2014 do not re-read the file with read_file.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}, "cross_profile": {"type": "boolean"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "search_files", "description": "Search file contents or find files by name. Use this instead of grep/rg/find/ls in terminal. Ripgrep-backed, faster than shell equivalents.\n\nContent search (target='content'): Regex search inside files. Output modes: full matches with line numbers, file paths only, or match counts.\n\nFile search (target='files'): Find files by glob pattern (e.g., '.py’, ‘config*’). Also use this instead of ls \u2014 results sorted by modification time.”, “parameters”: {“type”: “object”, “properties”: {“pattern”: {“type”: “string”}, “target”: {“type”: “string”}, “path”: {“type”: “string”}, “limit”: {“type”: “integer”}, “offset”: {“type”: “integer”}, “file_glob”: {“type”: “string”}, “output_mode”: {“type”: “string”}, “context”: {“type”: “integer”}}, “required”: [“pattern”]}}}, {“type”: “function”, “function”: {“name”: “patch”, “description”: “Targeted find-and-replace edits in files. Use this instead of sed/awk in terminal. Uses fuzzy matching (9 strategies) so minor whitespace/indentation differences won’t break it. Returns the exact text that was found and replaced, so you can verify the change.\n\nREPLACE ALL (default): if the target string appears multiple times, all occurrences are replaced.\n\nREPLACE TARGETED: set target_scope=’lfi’ for surgical editing by semantic position (path A + line N -> path B + line M), immune to duplicate matches. Required when changing the file’s structure (adding/removing sections).”, “parameters”: {“type”: “object”, “properties”: {“path”: {“type”: “string”}, “old_string”: {“type”: “string”}, “new_string”: {“type”: “string”}, “target_scope”: {“type”: “string”}, “replace_all”: {“type”: “boolean”}}, “required”: [“path”, “old_string”, “new_string”]}}}]

assistant


skill_view.md

Infográfico - Tônus e Estilo:** Use um tom conversacional e empático. Escreva como se estivesse falando diretamente com um amigo. Evit
files

user

{“name”: “search_files”, “content”: “”, “value”: “.git/objects/pack/pack-47698d35210f196e72bb3aeb902b39c06cb1299c.idx (3,641 bytes)\n.git/objects/pack/pack-47698d35210f196e72bb3aeb902b39c06cb1299c.pack (19,390 bytes)\n.git/hooks/apply-hooks.sh (799 bytes)\n.git/hooks/pre-commit.sample (1,884 bytes)\n.git/hooks/sample-apply-patches-to-draft-code.patch (133,959 bytes)\n.git/hooks/sample-apply-patches-to-draft-code-v2.patch (168,959 bytes)\n.git/hooks/ushook.sh (207 bytes)\nLICENSE-COMMERCIAL.md (46,082 bytes)\nREADME.md (46,353 bytes)\nsunshine_config.yaml.example (39,168 bytes)\nskill_view.md\n”}

Leia tambem