Skip to content

fix(agent): add subagents flag for task/sage tool switching#2922

Merged
tusharmath merged 17 commits intomainfrom
chore/feature-flag-subagents
Apr 19, 2026
Merged

fix(agent): add subagents flag for task/sage tool switching#2922
tusharmath merged 17 commits intomainfrom
chore/feature-flag-subagents

Conversation

@amitksingh1490
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 10, 2026
Comment thread crates/forge_repo/src/agents/forge.md Outdated
- task
{{else}}
- sage
{{/if}}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use templating in frontmatter.

Comment thread crates/forge_repo/src/agent.rs Outdated
async fn init_agent_dir(
&self,
dir: &std::path::Path,
config: &ForgeConfig,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop wiring of ForgeConfig thru all the functions. Use self.infra.get_config() at the call site.

Comment thread crates/forge_config/src/config.rs Outdated
/// sub-agents, and the `sage` research-only agent tool is removed.
/// When false the `task` tool is disabled and `sage` is available instead.
#[serde(default)]
pub enable_subagents: bool,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub enable_subagents: bool,
pub subagents: bool,

@amitksingh1490 amitksingh1490 changed the title feat(agent): add enable_subagents feature flag for task/sage tool switching feat(agent): add subagents feature flag for task/sage tool switching Apr 14, 2026
Comment thread crates/forge_config/.forge.toml Outdated
top_k = 30
top_p = 0.8
verify_todos = true
enable_subagents = true
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
enable_subagents = true
subagents = true

Comment thread crates/forge_repo/src/agents/forge.md Outdated
- todo_write
- todo_read
- task
- sage
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required.

@tusharmath tusharmath changed the title feat(agent): add subagents feature flag for task/sage tool switching fix(agent): add subagents feature flag for task/sage tool switching Apr 19, 2026
@tusharmath tusharmath added type: fix Iterations on existing features or infrastructure. and removed type: feature Brand new functionality, features, pages, workflows, endpoints, etc. labels Apr 19, 2026
@github-actions github-actions bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 19, 2026
@amitksingh1490 amitksingh1490 removed the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 19, 2026
@github-actions github-actions bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 19, 2026
@tusharmath tusharmath enabled auto-merge (squash) April 19, 2026 07:51
@tusharmath tusharmath merged commit f727c38 into main Apr 19, 2026
8 checks passed
@tusharmath tusharmath deleted the chore/feature-flag-subagents branch April 19, 2026 07:52
@tusharmath
Copy link
Copy Markdown
Collaborator

related #3076

@tusharmath tusharmath removed the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 19, 2026
@tusharmath tusharmath changed the title fix(agent): add subagents feature flag for task/sage tool switching fix(agent): add subagents flag for task/sage tool switching Apr 19, 2026
@github-actions github-actions bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 19, 2026
@tusharmath tusharmath removed the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants