Files
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

111 lines
4.9 KiB
Plaintext

---
title: Context Engineering
hide_title: true
description: Provide goose with the knowledge, preferences, and workflows it needs to work effectively
---
import Card from '@site/src/components/Card';
import styles from '@site/src/components/Card/styles.module.css';
<h1 className={styles.pageTitle}>Context Engineering</h1>
<p className={styles.pageDescription}>
Context engineering is about building background knowledge, preferences, and workflows that help goose work more effectively. Instead of repeating instructions, you define them once and teach goose how you work.
</p>
<div className={styles.categorySection}>
<h2 className={styles.categoryTitle}>📚 Documentation & Guides</h2>
<div className={styles.cardGrid}>
<Card
title="Using goosehints"
description="Use AGENTS.md, .goosehints, and other files to provide project context, preferences, and instructions that goose loads automatically."
link="/docs/guides/context-engineering/using-goosehints"
/>
<Card
title="Using Skills"
description="Create reusable instruction sets containing workflows, scripts, and other resources that goose can load on demand."
link="/docs/guides/context-engineering/using-skills"
/>
<Card
title="Custom Agents"
description="Create, edit, import, and export specialized goose agents with reusable prompts and optional metadata."
link="/docs/guides/context-engineering/custom-agents"
/>
<Card
title="Plugins"
description="Install, update, and manage packages that extend goose with skills, hooks, and other reusable components."
link="/docs/guides/context-engineering/plugins"
/>
<Card
title="Hooks"
description="Run scripts when goose starts sessions, submits prompts, calls tools, edits files, or executes shell commands."
link="/docs/guides/context-engineering/hooks"
/>
<Card
title="Custom Slash Commands"
description="Create custom shortcuts to quickly run reusable instructions in any chat session with simple slash commands."
link="/docs/guides/context-engineering/slash-commands"
/>
<Card
title="Prompt Templates"
description="Customize the built-in prompts that define how goose responds, plans, compacts context, and creates recipes."
link="/docs/guides/context-engineering/prompt-templates"
/>
<Card
title="Subagents"
description="Delegate focused tasks to isolated goose instances that can run sequentially or in parallel."
link="/docs/guides/context-engineering/subagents"
/>
<Card
title="Using gooseignore"
description="Prevent goose from accessing sensitive files and directories by defining global or project-specific ignore rules."
link="/docs/guides/context-engineering/using-gooseignore"
/>
<Card
title="Creating Plans"
description="Use planning mode to break complex work into clear, manageable steps before goose starts implementation."
link="/docs/guides/context-engineering/creating-plans"
/>
<Card
title="Persistent Instructions"
description="Inject critical reminders into goose's working memory every turn. Ideal for security guardrails and behavioral rules that must never be forgotten."
link="/docs/guides/context-engineering/using-persistent-instructions"
/>
<Card
title="Memory Extension"
description="Teach goose persistent knowledge it can recall across sessions. Save commands, code snippets, and preferences for consistent assistance."
link="/docs/mcp/memory-mcp"
/>
<Card
title="Research → Plan → Implement Pattern"
description="See how slash commands make it easy to integrate instructions into interactive RPI workflows."
link="/docs/tutorials/rpi"
/>
</div>
</div>
<div className={styles.categorySection}>
<h2 className={styles.categoryTitle}>📝 Featured Blog Posts</h2>
<div className={styles.cardGrid}>
<Card
title="What's in my .goosehints file"
description="A deep dive into .goosehints vs Memory Extension, and how to optimize your goose configuration for better performance."
link="/blog/2025/06/05/whats-in-my-goosehints-file"
/>
<Card
title="Stop Your AI Agent From Making Unwanted Changes"
description="Teach your AI agent how to commit early and often so you can control changes and roll back safely."
link="/blog/2025/12/10/stop-ai-agent-unwanted-changes"
/>
<Card
title="The AI Skeptic's Guide to Context Windows"
description="Why do AI agents forget? Learn how context windows, tokens, and goose help you manage memory and long conversations."
link="/blog/2025/08/18/understanding-context-windows"
/>
<Card
title="Hooks: run your own scripts on every goose event"
description="Learn how lifecycle hooks let you react to session, prompt, tool, file, and shell events with your own scripts."
link="/blog/2026/05/14/goose-hooks"
/>
</div>
</div>