agora.git.repo_manager
Git repository lifecycle: init, branch-per-agent, checkout, diff, log.
Wraps GitPython. The Repo object may be injected for testing, but the default
path is straightforward: open an existing repo at repo_path or init it.
Branch naming convention for agent work: agent/<name>/<task-id>.
Classes
Thin wrapper around a |
- class agora.git.repo_manager.RepoManager[source]
Bases:
objectThin wrapper around a
git.Repowith Agora-specific conventions.- property repo: Repo
- create_agent_branch(agent_name, task_id)[source]
Create and checkout
agent/<name>/<task-id>. Returns the branch name.
- commit_all(message, agent_name='agora', email_domain='agora.local')[source]
Stage all changes (tracked + untracked) and commit. Returns commit SHA.
Used by the agent runtime’s
git_committool; for structured commits useCommitStrategy.