Context Awareness Features

The true power of Goki Assistant lies in its ability to "understand" your project without you having to constantly copy-paste code.

1. Active File Awareness

When you open a file (e.g., main.ino), the AI automatically reads that file's content as context.

  • You can ask "What does the setup function in this file do?" without resending the code.
  • If you switch to another file, the context automatically updates.

2. @ Mentions (Function Reference)

Want to ask about a specific function buried deep in the project? Use the @ syntax.

  • How to use: Type @ in the chat box.
  • Effect: A list of functions in the current file will appear. Select a function to "attach" it to your question.
  • Example: "Please explain the logic of the @calculateSensorData function".

3. Code Indexing & RAG

Gokino uses RAG (Retrieval Augmented Generation) technology to search for information across the entire project, not just the open file.

  • When you ask a complex question, the system automatically scans relevant files to find the most accurate answer.
  • This is extremely useful for large projects with multiple .h and .cpp files.

4. Code Actions

When the AI returns a snippet (Code Block), you have powerful tools at your disposal:

  • Copy: Copy to clipboard.
  • Insert/Apply: Insert code directly at the cursor position in the editor.
  • Diff Preview: Preview changes (Compare old and new code) before applying to ensure safety.

Next: Tips & Advanced Settings