switch_context
Change your agent's active work to a different project or objective. Finish and log current tasks, release file locks, then align to the new target.
Instructions
Switch your work context to a different project or objective.
WHEN TO USE:
When the user asks you to work on something different
When switching from one task to another in the same conversation
When moving between multiple projects
After completing one objective and starting a new one
IMPORTANT: This will end your current context and start a new one. Make sure to complete or document any pending work in the current context first.
WORKFLOW:
Complete current work and log changes
unlock_files() - Release any locked files
switch_context() - Switch to new objective (THIS STEP)
lock_files() - Lock files for new work (if needed)
Begin new work
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Your agent_id from register_agent() (required) | |
| priority | No | Priority level - "critical", "high", "medium", or "low" (default: "medium") | medium |
| to_objective | Yes | New objective statement (required) - e.g., "Add pagination to API" | |
| to_project_id | Yes | Target project ID (required) - Can be same or different project | |
| task_description | No | Detailed description of new work (optional) |