Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

fix(context): refresh workspace state after tool-driven file changes

Aperta
#15 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
ai, tooling

Direzione di ricerca

Trace how MiniAgent constructs WorkspaceContext and the generated prompt prefix, then follow the write_file, patch_file, and run_shell operations that can mutate the workspace. Check how later model turns obtain git status, branch state, commits, documentation, and repository instructions. Done means a mutation is visible on the next model turn, static prompt content is not needlessly rebuilt, and regression tests cover the sequence.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

"WorkspaceContext" and the generated prompt prefix are constructed once when "MiniAgent" starts. However, tools such as "write_file", "patch_file", and "run_shell" can mutate the workspace during the same session.

As a result, subsequent model turns can receive stale information about:

  • "git status"
  • current branch state
  • recent commits
  • project documentation
  • repository-level instructions

For example, the initial workspace may be clean, but after "write_file" creates a file, the prompt can still report the original clean status.

Expected behavior

After workspace-mutating operations, the agent should either:

  1. refresh the affected workspace context, or
  2. explicitly separate immutable context from dynamically refreshed state.

The refresh should avoid rebuilding unnecessary static prompt content on every turn.

Acceptance criteria

  • "git status" reflects changes made during the current session.
  • Changes made through "write_file", "patch_file", and shell commands are visible to later model turns.
  • Project documentation changes are reflected when appropriate.
  • Existing prompt/cache behavior is preserved as much as possible.
  • Add regression tests covering a workspace mutation followed by another model turn.
Lingua principale
Python
Stelle
1.2k
Fork
218
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rasbt/mini-coding-agent

Tutte le issue di rasbt/mini-coding-agent

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.