Skip to content

Add GOOSE_TERMINAL environment variable to spawned terminals under the goose agent for custom profile changes #3827

@simonsickle

Description

@simonsickle

Please explain the motivation behind the feature request.
Having certain aliases or disallowed commands, like find, only for goose would be a great addition.

Describe the solution you'd like
When goose spawns a terminal / executes a command, add an environment variable GOOSE_TERMINAL=1 to signify that the terminal is running under the goose agent.

Then in my ~/.zshrc I could have something like

if [[ -n "$GOOSE_TERMINAL" ]]; then
  alias find="echo 'do not use find, use rg (ripgrep) instead'"
fi

Additional context
Add any other context or screenshots about the feature request here.

  • I have verified this does not duplicate an existing feature request

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions