iiitl / iiitl/smartdoc-workshop

Agent scratchpad not passed to LLM

Open
#7 10 comments 0 reactions 0 assignees View on GitHub
agent bug Medium tier-3: intermediate
Dominant language
Python
Stars
0
Forks
12
PR merge metrics
No merged PRs in 30d

Description

## Summary
Agent does not reliably use prior step context in subsequent reasoning.

## Current behavior
Later steps can ignore earlier outcomes.

## Expected behavior
Prior steps/scratchpad state influences subsequent decisions.

## Reproduction steps
1. Run multi-step task requiring intermediate memory.
2. Inspect step outputs.
3. Observe repeated/uninformed behavior.

## Hints
- Review state and memory flow in `src/agent/executor.py` and `src/agent/memory.py`.
- Include prior outputs when deciding next step.

## Acceptance criteria
- Multi-step tasks show context carry-over.
- Repeated unnecessary tool calls are reduced.
- Returned steps reflect coherent progression.

## Test note
Use task: “get date then compute offset” and assert no duplicate date calls.

Contributor guide

Open the contributing guide

Research direction

Start by tracing state and memory flow in src/agent/executor.py and src/agent/memory.py, then run the multi-step task “get date then compute offset.” Verify that prior outputs influence the next step, unnecessary duplicate date calls are reduced, and returned steps show coherent progression.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.