Skip to content

feat: add -s/--silent flag to suppress non-essential output#142

Merged
8nevil8 merged 2 commits intocodemie-ai:mainfrom
sfedyakov:feat/add-silent-flag
Feb 12, 2026
Merged

feat: add -s/--silent flag to suppress non-essential output#142
8nevil8 merged 2 commits intocodemie-ai:mainfrom
sfedyakov:feat/add-silent-flag

Conversation

@sfedyakov
Copy link
Contributor

Summary

  • Adds -s/--silent flag to CLI for suppressing non-essential output
  • Updates documentation with comprehensive examples
  • Useful for CI/CD pipelines and scripting scenarios

Changes

  • Added --silent flag to global options and agent shortcuts
  • Documented practical usage patterns in COMMANDS.md
  • Includes example combining multiple flags for automation

Test plan

  • Verify flag is documented in all relevant sections
  • Confirm examples are accurate and helpful
  • Check formatting and consistency

Stanislav Fediakov and others added 2 commits February 11, 2026 22:01
Add global -s/--silent CLI parameter to enable silent mode for all agents.
When enabled, suppresses welcome messages, version warnings, update prompts,
shutdown messages, and goodbye messages.

Implementation:
- Add -s/--silent option to AgentCLI (available for all agents)
- Add setSilentMode() method to BaseAgentAdapter for runtime override
- Clone metadata in constructor to allow mutation
- Add 'silent' to configOnlyOptions to prevent passing to agent executables
- Add 4 unit tests for setSilentMode() functionality

Changes:
- src/agents/core/AgentCLI.ts: Add CLI option and call setSilentMode()
- src/agents/core/BaseAgentAdapter.ts: Add setter method and clone metadata
- src/agents/core/__tests__/BaseAgentAdapter.test.ts: Unit tests

Backward compatible: Existing plugins with silentMode in metadata still work.

Generated with AI

Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
Added comprehensive documentation for the new -s/--silent flag including:
- Global options section
- Common agent options
- Practical usage example with multiple flags

Generated with AI

Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
@8nevil8 8nevil8 merged commit 1b64166 into codemie-ai:main Feb 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants