Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zakiali committed Feb 5, 2025
1 parent d9607fe commit faa60a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/goose-cli/src/commands/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub async fn build_session(
name: Option<String>,
resume: bool,
extensions: Vec<String>,
builtin: Vec<String>,
builtins: Vec<String>,
) -> Session<'static> {
// Load config and get provider/model
let config = Config::global();
Expand Down Expand Up @@ -105,7 +105,7 @@ pub async fn build_session(
}

// Add builtin extensions
for name in builtin {
for name in builtins {
let config = ExtensionConfig::Builtin { name };
agent.add_extension(config).await.unwrap_or_else(|e| {
eprintln!("Failed to start builtin extension: {}", e);
Expand Down
10 changes: 9 additions & 1 deletion documentation/docs/getting-started/using-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ You can remove installed extensions.
You can start a tailored goose session with specific extensions directly from the CLI. To do this, run the following command:

```bash
goose session --with-extension "{extension command}"
goose session --with-extension "{extension command}" --with-extension "{antoher extension command}"
```

:::info
Expand All @@ -261,6 +261,14 @@ goose session --with-extension "VAR=value command arg1 arg2"
```
:::

:::tip
You can also start a session with built-in extensions by using the `--with-builtin` flag.
```bash
goose session --with-builtin "developer,memory"
goose session --with-builtin developer --with-builtin memory
```
:::

## Developing Extensions
Goose extensions are implemented with MCP, a standard protocol that allows AI models and agents to securely connect with local or remote resources. Learn how to build your own [extension as an MCP server](https://modelcontextprotocol.io/quickstart/server).

Expand Down

0 comments on commit faa60a7

Please sign in to comment.