Skip to content

gc prime: add --strict flag to error on unknown agents #445

@csells

Description

@csells

Summary

gc prime <name> silently falls back to a generic default prompt when the agent doesn't exist. This is useful as a default behavior — any agent without a custom prompt gets a reasonable starting point. But when debugging, there's no way to distinguish "my agent's actual prompt" from "the fallback because I typo'd the name."

Example

$ gc prime dfdfdf
# Gas City Agent

You are an agent in a Gas City workspace...

No error, no warning. If you're trying to verify your agent's prompt template renders correctly, this is a footgun.

Proposal

Add a --strict flag that errors if the agent isn't found in the config:

$ gc prime dfdfdf --strict
Error: agent "dfdfdf" not found in city config

Without --strict, current behavior is preserved — the default prompt is returned for any agent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementNew capabilitypriority/p3Backlog — good idea, reviewed when there's bandwidth

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions