Commit Graph

17 Commits

Author SHA1 Message Date
6b64e96abe chore: update documentation, benchmark tests, and database migration with author birth years and book published years 2026-01-29 07:06:31 +00:00
5a2a16f0ff feat: add auto_backgrounded field to python and terminal tool responses and final output prefix for completed processes 2026-01-29 06:52:58 +00:00
d0a17cd3c9 feat: replace logging with custom log_all function and truncate benchmark log on start 2026-01-29 06:42:06 +00:00
608b69e547 feat: replace quicksort with simplified recursive version and fix partition logic 2026-01-29 05:57:52 +00:00
dccd79c05a feat: add markdown module header and async bash execution result structs
Introduce `include/markdown.h` with retoor copyright header and add `r_process_result_t` struct plus `r_bash_execute_ext` / `r_process_result_free` declarations to `include/bash_executor.h` for advanced async process handling.
2026-01-29 05:54:10 +00:00
8215d7012d feat: add agent subagent support, bash timeout, context manager improvements, and benchmark script
- Add agent_set_is_subagent and agent_set_tool_registry to agent API for subagent support
- Add timeout_seconds parameter to r_bash_execute to prevent hanging processes
- Refactor context_manager truncation logic with dynamic ratio-based truncation and total size calculation
- Add messages_to_json_string helper and r_config_get_max_tokens accessor
- Introduce tool_registry_get_specialized for type-filtered tool registries
- Add completion_phrases and passive_phrases detection to agent completion logic
- Suppress spinner in http_client when stderr is not a TTY
- Add comprehensive agent_benchmark.py with TestCase framework and logging
2026-01-29 05:01:05 +00:00
a985c56650 chore: fix relative include path for r_error.h in string.h header 2026-01-29 01:29:33 +00:00
f8fbafa19a chore: remove trailing whitespace from README.md line 42 2026-01-29 01:27:20 +00:00
dc150f2ea2 chore: remove entire agent, auth, browse, chat, db_utils, and http_curl source trees
This commit deletes the complete implementation of the agent loop, authentication module, web browsing utilities, chat prompt builder, database helper, and HTTP client. All corresponding header files and test harnesses are also removed. The diff shows the deletion of 6 source files and 6 header files totaling over 1000 lines of code, including the agent state machine, API key resolution logic, curl-based HTTP functions, SQLite database initialization and CRUD operations, and the JSON chat prompt construction.
2026-01-29 01:21:11 +00:00
65630263c1 feat: add parallel thread execution for tool calls and port scanning with configurable concurrency
Implement pthread-based parallel execution in tool_registry_execute to run tool calls concurrently, replacing the previous sequential loop. Add tool_thread_args_t struct and tool_thread_func wrapper for thread-safe execution. Introduce MAX_PARALLEL_PROBES constant and probe_t struct in network_port_scan_execute to enable concurrent socket probing with non-blocking connect patterns, replacing the single-threaded sequential port scan loop.
2026-01-28 23:51:24 +00:00
20d92682b2 feat: add bash_repair, context_manager, json_repair, python_repair, and r_diff modules with Makefile integration 2026-01-28 23:38:21 +00:00
216627e777 feat: add context overflow detection and automatic history shrinking in agent loop
Implement context manager integration that detects API errors indicating context length exceeded, then automatically shrinks message history and retries the request. Add new messages API functions (remove_range, get_object, replace_at) and a new R_ERROR_CONTEXT_TOO_LONG error code to support this functionality.
2026-01-28 19:15:02 +00:00
09e3f62a34 feat: stream agent response incrementally and remove duplicate rendering in main loop 2026-01-28 19:06:18 +00:00
c9a29efc5d chore: update system prompt instructions for tool calls and communication rules 2026-01-28 18:55:47 +00:00
c096e43c96 chore: add ANSI dim/bold escape codes to stderr output in bash executor and tool registry 2026-01-28 18:50:07 +00:00
88458a81c9 chore: reformat indentation from 4-space to 2-space style in src/main.c 2026-01-28 18:47:14 +00:00
7f799e8fa5 chore: remove AppRun, compose.yml, collect_so_files.sh and database.db; add include headers and refactor Makefile with src directory structure 2026-01-28 18:34:39 +00:00