Abdelrahman Abdallah
a54c90b18f
update the codebase and clean up it
2026-04-06 03:42:44 +02:00
copilot-swe-agent[bot]
696f272b88
Add comprehensive security tests for agent_tools.py
...
- Add 26 tests covering _resolve_path, _ensure_shell_allowed, and
_is_sensitive_env_var across path traversal, destructive command
blocking, and secret-name detection.
- Fix bug in _ensure_shell_allowed: regex patterns for chmod -R and
chown -R used uppercase -R but the command is lowered before matching,
so these patterns never matched. Changed to lowercase -r.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com >
2026-04-05 16:14:22 +00:00
copilot-swe-agent[bot]
42abcde18c
Add comprehensive tests for openai_compat helper functions
...
Tests cover _join_url, _normalize_content, _parse_tool_arguments,
_parse_usage, _build_response_format, and _optional_int with 31 test
cases including edge cases and error paths.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com >
2026-04-05 16:11:11 +00:00
copilot-swe-agent[bot]
d0cd08947a
Add comprehensive tests for agent_plugin_cache module
...
Tests cover all 15 specified scenarios:
- discover_plugin_cache with no cache, list format, dict with plugins/entries keys, key-as-name format
- _coerce_entry for strings, dicts with name/plugin/id, disabled plugins, invalid entries
- load_plugin_cache_summary rendering with correct counts
- Preview truncation (MAX_PLUGIN_PREVIEW_CHARS) and line truncation (MAX_PLUGIN_LINES)
- Malformed JSON graceful skipping
- additional_working_directories search
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com >
2026-04-05 16:09:20 +00:00
copilot-swe-agent[bot]
d2ac4ca9ab
Add comprehensive tests for execution_registry module
...
Cover build_execution_registry, case-insensitive lookups, unknown name
handling, MirroredCommand/MirroredTool attributes, empty registry behavior,
and PORTED_COMMANDS/PORTED_TOOLS count matching.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com >
2026-04-05 16:06:36 +00:00
copilot-swe-agent[bot]
af25cf60e8
Add comprehensive tests for session_store module
...
Cover all 12 areas: StoredSession/StoredAgentSession round-trips,
model/runtime config serialization, usage_from_payload, _optional_int,
_optional_float, _deserialize_output_schema, default handling, and
non-dict message filtering. 50 test cases total.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com >
2026-04-05 16:04:31 +00:00
copilot-swe-agent[bot]
e9721f474c
Add comprehensive tests for AgentManager, ManagedAgentRecord, and ManagedAgentGroup
...
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com >
2026-04-05 16:02:04 +00:00
copilot-swe-agent[bot]
840e5fc5af
Add comprehensive tests for CommandGraph and build_command_graph
...
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com >
2026-04-05 16:00:05 +00:00
copilot-swe-agent[bot]
b4269ecd88
Add comprehensive tests for ToolPool and assemble_tool_pool
...
Tests cover:
- assemble_tool_pool returns ToolPool with correct types
- Default mode produces non-empty tools
- simple_mode and include_mcp flags stored correctly
- simple_mode reduces tool set to BashTool/FileReadTool/FileEditTool
- include_mcp=False excludes MCP tools
- Permission context filters blocked tools
- as_markdown includes header, flags, and tool count
- as_markdown shows at most 15 tools
- Empty tools tuple renders correctly
- Tool lines contain name and source_hint
- Frozen dataclass prevents mutation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com >
2026-04-05 15:56:57 +00:00
copilot-swe-agent[bot]
be6dc4cc19
Add comprehensive tests for ToolPermissionContext
...
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com >
2026-04-05 15:54:32 +00:00
copilot-swe-agent[bot]
e646410abb
Add comprehensive tests for CostTracker class
...
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com >
2026-04-05 15:53:05 +00:00
copilot-swe-agent[bot]
93de5ca4f8
fix: address security vulnerabilities and code quality weaknesses
...
- Fix path traversal in _glob_search by validating resolved paths stay within workspace root
- Fix ReDoS vulnerability in _grep_search by adding regex compilation error handling
- Replace 6 assert statements with explicit validation (assertions are disabled with -O flag)
- Replace bare except Exception with specific exception types (OSError, KeyError, ValueError)
- Block file:// scheme in web_fetch to prevent SSRF attacks
- Filter sensitive environment variables from subprocess execution
- Update test to verify file:// scheme rejection
Agent-Logs-Url: https://github.com/HarnessLab/claw-code-agent/sessions/94dfb41f-57dd-48ea-ab0d-d2f2249ef950
Co-authored-by: abdoelsayed2016 <27821589+abdoelsayed2016@users.noreply.github.com >
2026-04-05 11:03:09 +00:00
Abdelrahman Abdallah
783145fe6a
add mcp and online search
2026-04-05 02:35:49 +02:00
Abdelrahman Abdallah
3f31cee395
add claw-code-agent/src/plan_runtime.py and claw-code-agent/src/background_runtime.py. The agent now has a real
...
persistent plan runtime with update_plan, plan_get, and plan_clear, plus plan-to-task sync wired through claw-code-agent/src/
agent_tools.py, claw-code-agent/src/agent_runtime.py, claw-code-agent/src/agent_context.py, claw-code-agent/src/agent_prompting.py, and claw-code-agent/src/
agent_slash_commands.py. New local plan slash commands are /plan and /planner.
2026-04-03 18:31:25 +02:00
Abdelrahman Abdallah
4de3da10e4
add test guide cases
2026-04-03 16:50:19 +02:00
Abdelrahman Abdallah
5ad10c660c
add File-history snapshot ids and replay summaries for file edits
2026-04-02 22:19:32 +02:00
Abdelrahman Abdallah
9d90d6a10a
add ىثص ؤخقث شلثىف قعىفهةث
2026-04-02 22:08:24 +02:00
Abdelrahman Abdallah
2c6763eb08
add new agent components
2026-04-02 21:12:48 +02:00
Abdelrahman Abdallah
27aff5611b
first commit
2026-04-01 21:51:49 +02:00