项目文件夹

文件
wehub-resource-sync 8a21a212f8
Deploy Documentation / deploy (push) Has been cancelled
Canary / build-cli (push) Has been skipped
Canary / Upload Install Script (push) Has been skipped
Canary / bundle-desktop (push) Has been skipped
Canary / bundle-desktop-intel (push) Has been skipped
Canary / bundle-desktop-linux (push) Has been skipped
Canary / bundle-desktop-windows (push) Has been skipped
Canary / bundle-desktop-windows-cuda (push) Has been skipped
Canary / Release (push) Has been skipped
Cargo Deny / deny (push) Has been skipped
Unused Dependencies / machete (push) Has been skipped
Canary / Prepare Version (push) Failing after 1s
Live Provider Tests / check-fork (push) Failing after 0s
Create Minor Release PR / check-version-bump-pr (push) Has been skipped
Publish Ask AI Bot Docker Image / docker (push) Failing after 1s
Live Provider Tests / changes (push) Has been skipped
Scorecard supply-chain security / Scorecard analysis (push) Has been skipped
Publish Docker Image / docker (push) Failing after 1s
CI / changes (push) Failing after 8s
Create Minor Release PR / release (push) Has been skipped
Live Provider Tests / Smoke Tests (push) Has been cancelled
Live Provider Tests / Smoke Tests (Code Execution) (push) Has been cancelled
Live Provider Tests / Compaction Tests (push) Has been cancelled
CI / Build Rust Project on Windows (push) Has been cancelled
Live Provider Tests / Build Binary (push) Has been cancelled
CI / Lint Rust Code (push) Has been cancelled
CI / Check Generated Schemas are Up-to-Date (push) Has been cancelled
CI / Test and Lint Electron Desktop App (push) Has been cancelled
CI / Check Rust Code Format (push) Has been cancelled
CI / Build and Test Rust Project (push) Has been cancelled
CI / Check MSRV (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:04:08 +08:00

3.4 KiB

title, sidebar_position, sidebar_label, description
title sidebar_position sidebar_label description
File Access and Management 70 File Management Efficiently find and reference files in goose Desktop and follow best practices for safe file operations

As an autonomous agent, goose is designed to carry out tasks following specified instructions. This often involves working with local files - both finding the right files to work with and modifying them safely.

This guide covers how to efficiently access and reference files in goose. It also includes essential best practices for safe file operations, such as monitoring changes and reverting them when necessary, to maintain the integrity of your codebase.

File Access

Quick File Search in goose Desktop

goose Desktop includes a fuzzy file search feature that makes it easy to reference files from within the chat interface without manually navigating through file system dialogs. This feature helps you quickly find and include files in your messages to goose.

  1. Type @ in the chat input to open the file search box

  2. Continue typing to filter files using case-insensitive, fuzzy matching (e.g., @readme, @config.js, @src/main)

    Navigate the results:

    • Use arrow keys (↑/↓) to move through the search results
    • Click or press Enter to insert the selected file path into your message
  3. That's it! When you're ready, send your message to goose

:::info To close the search box without selecting a file, press Esc or click in the chat input. :::

Smart features:

  • Fuzzy matching: Intelligently matches partial text and prioritizes matches at word boundaries
  • Highlighted results: Shows matched characters highlighted in the search results
  • Performance optimized: Scans up to 5 directory levels deep with intelligent filtering
  • Auto-filtering: Automatically excludes common directories like .git, node_modules, __pycache__, target, dist, and build
  • Hidden folder support: Includes important configuration directories like .github, .vscode, .idea, .config, and other CI/CD folders (.circleci, .gitlab, .azure, .jenkins)
  • Cross-platform: Searches from user directories (/Users on macOS, C:\Users on Windows, /home on Linux)
  • Visual indicators: Distinguishes between files and directories with clear icons

File Management Best Practices

Version Control

Always use a version control system like Git to track changes to your codebase. This prevents accidental overwriting and allows you to revert back to previous states easily. Ensure you commit changes before running goose on your codebase. Use branches to separate experimental changes from the main codebase.

Validation and Testing

Implement validation and testing steps before and after goose modifies any files. Run your unit tests to verify changes made by goose. Use a staging environment to ensure changes integrate well with the entire system.

Change Review

Manually review or use automated code reviews to ensure the quality of generated code or changes. Integrate tools such as diff tools to visualize changes made by goose. Implement a review process with team members or CI/CD pipelines.

Codebase Organization

Structure your codebase into well-defined modules or subdirectories to manage them efficiently. Use a modular approach to isolate parts of the code goose needs to access. You can also provide specific directories or file paths you want goose to work on.