diff --git a/src/yc_bench/agent/prompt.py b/src/yc_bench/agent/prompt.py index 77470b8..88443c2 100644 --- a/src/yc_bench/agent/prompt.py +++ b/src/yc_bench/agent/prompt.py @@ -77,6 +77,11 @@ def build_turn_context( history_limit = 20 turns_until_truncation = max(0, history_limit - turn_number) + if turns_until_truncation > 0: + memory_note = f"Your context window holds {history_limit} turns. {turns_until_truncation} turns before oldest messages start dropping. Use scratchpad to persist important observations." + else: + memory_note = f"Your context window holds {history_limit} turns. Older messages have been dropped. Use scratchpad to persist important observations." + parts = [ f"## Turn {turn_number} — Simulation State", f"- **Current time**: {sim_time}", @@ -87,7 +92,7 @@ def build_turn_context( f"- **Employees**: {employee_count}", f"- **Active tasks**: {active_tasks}", f"- **Planned tasks**: {planned_tasks}", - f"- **Memory**: oldest messages drop after turn 20 ({turns_until_truncation} turns left). Use scratchpad to save important observations.", + f"- **Memory**: {memory_note}", ] if bankrupt: diff --git a/src/yc_bench/cli/market_commands.py b/src/yc_bench/cli/market_commands.py index e8305b0..4eb4724 100644 --- a/src/yc_bench/cli/market_commands.py +++ b/src/yc_bench/cli/market_commands.py @@ -17,7 +17,6 @@ market_app = typer.Typer(help="Market browsing commands.") @market_app.command("browse") def market_browse( domain: Optional[Domain] = typer.Option(None, "--domain", help="Filter by requirement domain"), - required_prestige_lte: Optional[int] = typer.Option(None, "--required-prestige-lte", help="Max required prestige"), reward_min_cents: Optional[int] = typer.Option(None, "--reward-min-cents", help="Min reward in cents"), limit: Optional[int] = typer.Option(None, "--limit", help="Max results (default from experiment config)"), offset: int = typer.Option(0, "--offset", help="Offset for pagination"),