Git Plugin¶
The Git plugin provides Titan's core Git workflow surface. It exposes:
- a high-level
GitClientfor direct use from Titan code - reusable workflow
stepssuch asget_status,create_commit, andpush - the built-in
commit-aiworkflow
Requirements¶
To use the Git plugin in a project:
- Enable the
gitplugin in.titan/config.toml - Install the
gitCLI and make sure it is available inPATH - Run Titan inside a Git repository
Example project configuration:
Public surfaces¶
- Client API: direct Python methods exposed by
GitClient - Workflow Steps: public reusable workflow steps grouped by functionality
- Built-in Workflows: workflows shipped by the plugin
Accessing the client¶
In Titan code, the public entry point is the Git plugin client:
The client returns ClientResult[...] values. In practice, this means each call can succeed with data or return an error result.
Public workflow steps¶
The Git plugin exposes these reusable public steps through get_steps():
get_statuscreate_commitpushget_current_branchget_base_branchai_generate_commit_messageshow_uncommitted_diff_summaryshow_branch_diff_summarysave_current_branchrestore_original_branchcheckoutpullcreate_branchcreate_worktreeremove_worktreeworktree_commitworktree_push
These steps are intended for workflow authors. Their inputs, outputs, and return behavior are documented in Workflow Steps.