Skip to main content
Same WikiContextProvider as 14_wiki_filesystem.py, but the wiki lives in a real git repository. After the write sub-agent returns, the backend stages, commits with an LLM-summarised one-line message, rebases onto the remote, and pushes.
wiki_git.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Run the example

Save the code above as wiki_git.py, then run:
Full source: cookbook/12_context/15_wiki_git.py