norrisaftcc / norrisaftcc/algorithm-liza
M1: Agent loop with the native tool protocol
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
The core loop: send messages, receive a response, dispatch any tool calls, append results, repeat until the model answers or a step limit is hit. Native OpenAI-style tool_calls only — the text protocol is issue for M2.
Guard rails the loop needs from the start, because small models hit all of them: a hard step ceiling, detection of a model repeating an identical tool call, and a clear error when the model emits malformed tool arguments rather than a stack trace.
Done when liza --provider lmstudio "read hello.py and tell me what it does" completes a request -> tool call -> tool result -> answer cycle against a local model.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the liza CLI path used by liza --provider lmstudio and trace how provider responses and native tool_calls are handled. Implement the request-to-tool-result-to-answer cycle with a step ceiling, repeated-call detection, and clear malformed-argument errors; done is the documented read hello.py example completing against a local model.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100