norrisaftcc / norrisaftcc/algorithm-liza

M1: Agent loop with the native tool protocol

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:core milestone:M1 type:feat
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.