log_change
Log code changes (create, modify, delete, refactor) with file path and description to maintain an audit trail and project history for multi-agent coordination.
Instructions
CRITICAL: Log every significant code change for project tracking and history.
MANDATORY: Call this AFTER completing any substantial file modification, creation, or deletion. This maintains a complete audit trail of all changes made to the project.
This tool provides flexible project lookup. You can specify any combination of identifiers, and it will resolve to the matching project.
Priority: project_id > workspace_path > project_name
WHEN TO USE (Always log changes for):
Creating new files or components
Modifying existing functionality
Refactoring code
Deleting files or features
Any change that affects the project's behavior or structure
CHANGE TYPES:
"create": New files, new components, new features
"modify": Updates to existing code, bug fixes, enhancements
"delete": Removing files, features, or code
"refactor": Restructuring code without changing behavior
ARCHITECTURE IMPACT:
"none": Simple changes, bug fixes, formatting (default)
"minor": Small API changes, new utility functions, config updates
"significant": New architectural patterns, major refactoring, breaking changes
BEST PRACTICES:
Always log after the change is complete and tested
Link to related decisions when changes implement architectural decisions
Be descriptive in the description field
Use code_summary to briefly explain what the code does
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Your agent_id from register_agent() (optional) | |
| file_path | Yes | Path of the file that was changed (required) - e.g., "src/auth.py", "components/Button.tsx" | |
| project_id | No | Project ID from create_project() (optional if project_name or workspace_path provided) | |
| change_type | Yes | Type of change (required) - "create", "modify", "delete", or "refactor" | |
| description | Yes | Clear description of WHAT was changed and WHY (required) | |
| code_summary | No | Brief summary of the code/functionality (optional but recommended) | |
| project_name | No | Project name to look up (alternative to project_id) | |
| workspace_path | No | Workspace directory path (alternative to project_id) | |
| related_decision | No | Decision ID if this change implements a documented decision (optional) | |
| architecture_impact | No | Impact on overall architecture - "none", "minor", or "significant" (default: "none") | none |