v0.0.23
π CodeTide v0.0.23 β Release Notes (2025-07-20)
π§ Introducing MCP & AgentTide: Context-Aware AI Integration for CodeTide
This release brings MCP (Model Context Protocol) and an embedded agent, AgentTide, turning CodeTide into a powerful platform for context-aware AI development and automation.π§© CodeTide now supports TypeScript (Beta) alongside Python, making it easier to build AI-native dev tools across languages.
π§ͺ Includes hundreds of tests and dozens of enhancements across parsing, context generation, patching, and agent interaction.
π New Features
π€ AgentTide: Embedded LLM Agent for Structural Code Refactoring
- Introduces AgentTide, a CLI-based AI agent built on
FastMCP, powered by structured context from CodeTide. - Enables LLM-powered code refactoring using precise context and interactive prompts.
- Fully async, testable, and includes patch handling via structured inputs.
π MCP Server (Model Context Protocol)
- Adds a built-in server powered by
FastMCP, exposing CodeTideβs capabilities over stdin/stdout. - CLI script
codetide-mcp-servernow available viasetup.pyentrypoint. - New usage examples and documentation for integrating with AI agents.
π οΈ Patch Processing Utilities
- New
applyPatchfunction for applying generated code changes. - Utilities for parsing structured patch formats (
parse_patch_blocks), handling XML-style metadata, and robust error handling. - Support for temporary patch files, validation, and line-specific context extraction.
π TypeScript Support (Beta)
-
Added
TypeScriptParserbuilt ontree-sitter-typescript. -
Supports parsing of:
- Classes, interfaces, functions, type aliases, imports, and decorators.
- Intra-file dependency resolution with contextual references.
-
Includes full test coverage with edge cases and semantic validation.
-
Exposed via
CodeTidejust like the Python parser.
π§ Context Enhancements
-
Improved
getCodeContext()(formerlygetContext()) with stricter argument validation, better error messages, and new usage guidelines. -
Added
slimmode for minimal context retrieval. -
Enhanced
CodeContextStructure:- Support for class headers, type hints, and raw context formatting.
- Improved trimming and indentation logic.
-
FunctionSignatureandClassDefinitionnow include detailed docstrings and header formatting.
π§ͺ Tests & Stability
-
Comprehensive test coverage for:
- TypeScript parsing, decorators, imports, and interface declarations.
- Patch application and context reconstruction.
- Agent prompt handling and interaction flow.
-
Enhanced CI with agent tests toggle (
requirements-agents.txt, pytest config).
π§ Enhancements & Refactors
-
CodeBase & Parser Improvements
- Unified intra-file dependency resolution across Python and TypeScript.
- Better handling of docstrings, decorators, modifiers, and export statements.
- Enhanced identifier validation and suggestion logic.
-
Documentation & Developer Experience
- ASCII headers for
CodeTideandAgentTidefor better CLI UX. - Refined prompts and system messages for agents.
- Enhanced and standardized docstrings across modules.
- Added
CONTRIBUTING.mdand clarified project philosophy.
- ASCII headers for
-
Performance Improvements
- Switched to
orjsonfor fast serialization. - Cached IDs for context reuse.
- Streamlined data structure for context and references.
- Switched to
π¦ Packaging & Tooling
-
Introduced
pyproject.tomlanduv.lockfor modern dependency and script management. -
New script entrypoint:
codetide-mcp-server
Runs the CodeTide MCP server via CLI.
-
Added
requirements-agents.txtfor optional agent dependencies (core-for-ai, etc.).
π Bug Fixes
- Fixed parameter references in interface and import processing.
- Resolved formatting issues in test assertions and context outputs.
- Removed unused debug prints and redundant imports.
- Ensured proper newline handling and patch safety.
π Documentation & Examples
-
Revamped
README.mdwith:- MCP and AgentTide instructions.
- Patch format documentation and LLM usage notes.
- Updated contributing section.
-
Added example script for using
AgentTidein real projects. -
New AgentTide Disclaimer section explaining scope and current limitations.
β³ Coming Soon
-
π§ͺ Test-Driven Code Validation for AgentTide
- Terminal execution and test running planned for next version.
-
π Additional Language Support
- More languages via tree-sitter in the roadmap.
-
π§± VSCode Integration for Agents
- Deeper embedding of agents in IDE workflows.
What's Changed
Full Changelog: v0.0.22...v0.0.23