A Machine that produces code.
In order to launch it from the command line or as a Python subprocess:
echo "Theodotos-Alexandreus: Produce the code that does that, machine." \
| uvx coding-machine \
--provider-api-key=sk-proj-... \
--github-token=ghp_... Or, with a local pip installation:
pip install coding-machineSet the environment variables:
export PROVIDER_API_KEY="sk-proj-..."
export GITHUB_TOKEN="ghp_..."Then:
coding-machine multilogue.txtOr:
coding-machine multilogue.txt new_turn.txtOr:
cat multilogue.txt | coding-machineOr:
cat multilogue.txt | coding-machine > tmp && mv tmp multilogue.txtOr:
(cat multilogue.txt; echo:"Theodotos: What do you think, Coding-Machine?") \
| coding-machineOr:
cat multilogue.txt new_turn.txt | coding-machineOr:
cat multilogue.txt new_turn.txt | coding-machine > tmp && mv tmp multilogue.txtOr, if you have installed other machines:
cat multilogue.md | coding-machine \
| summarizing-machine | judging-machine > summary_judgment.mdOr use it in your Python code:
# Python
import coding_machine