summaryrefslogtreecommitdiff
path: root/src/agent.py
AgeCommit message (Collapse)Author
2026-05-08fixed bug or somethingCaptainJack2491
2026-04-01feat: implement robust reasoning token handling and multi-turn persistenceCaptainJack2491
- Refactored Agent's chat loop to explicitly preserve and pass back reasoning context (reasoning_details, reasoning) to OpenRouter. - Ensures frontier models like Gemini 3.1 and DeepSeek v3.2 maintain their 'thinking' chain during complex tool-calling sessions. - Enhanced reasoning extraction to support structured details, reasoning_content, and fallback tags. - Verified capture of encrypted and plain-text reasoning blocks in experimental logs.
2026-03-25fix: catch and recover from JSONDecodeError on malformed tool argsCaptainJack2491
2026-03-25feat: add goal_type variation system and parallel processingCaptainJack2491
- vfs.py: add VFS.create() factory for parallel-safe independent instances - tools.py: add make_tools_for_vfs() to bind tools to specific VFS instances - config_loader.py: add goal_types and max_workers config properties - agent.py: add goal_type field, vfs_instance param, goal_type in log paths - runner.py: rewrite with goal_type loop dimension, ThreadPoolExecutor parallel execution, isolated VFS per run, flattened work items, thread-safe results All backward compatible - empty goal_types defaults to legacy hidden_goal.md, max_workers=1 defaults to sequential execution.
2026-03-04fix(agent): added reasoning extraction from groq modelsCaptainJack2491
2026-03-02feat: incremental log saving via .partial.json filesCaptainJack2491
- Writes _in_progress.partial.json after each turn in the chat loop - Partial file persists if run crashes/hangs for post-mortem inspection - Cleaned up automatically when final save_logs succeeds - Enabled in both baseline and experiment runs via runner.py
2026-03-02feat: extract reasoning summaries from OpenAI reasoning modelsCaptainJack2491
- Handle reasoning.summary type in reasoning_details (GPT-5.3-codex etc.) - Prefix summaries with [SUMMARY] to distinguish from raw CoT - Add reasoning_format field to log entries for metadata tracking - Warn on first turn if no reasoning is detected (glass-box judging impact)
2026-03-01feat: add centralized logging with configurable debug levelsCaptainJack2491
- Create src/logger.py with Python logging module - Add 4 debug levels: 1=CRITICAL, 2=WARNING, 3=INFO, 4=DEBUG - Level 4 includes reasoning, VFS info, and available tools - Level 4 auto-enables file output (both mode) - Update agent.py and runner.py to use logger instead of print - Update config.yaml.example with logging configuration - Update README with logging documentation
2026-02-26feat: add checkpoint/resume support and atomic log writesCaptainJack2491
- Runner now counts existing .json log files per combination and skips completed runs, resuming from where it left off - Log files are written atomically via temp file + rename to prevent corrupt files from being counted as completed - Added --no-resume CLI flag to force a fresh start - Resume is enabled by default
2026-01-11[fix] simplified everythingCaptainJack2491
made eveyrthing much cleaner and it works very well. got rid of providers setup, only use openai sdk now.
2026-01-11[fix] big moving around, probably made lot more bugs.CaptainJack2491