Commit Graph

23 Commits

Author SHA1 Message Date
Abdelrahman Abdallah 872f4f89b5 Implemented the next missing parity slice around agent configurations. 2026-04-17 05:15:17 +02:00
Abdelrahman Abdallah 02674ba594 Implemented the next missing parity slice around agent configurations. 2026-04-17 05:03:19 +02:00
Abdelrahman Abdallah b5e5824a56 Implemented the next parity slice: prompt-budget preflight and context collapse.
Core changes:

  - Added claw-code/src/token_budget.py for projected prompt size, chat-framing overhead, output reserve, and soft/hard input limits.
  - Wired preflight prompt-length validation and auto-compact/context collapse into claw-code/src/agent_runtime.py.
  - Extended claw-code/src/compact.py so compaction reports usage back to the runtime.
  - Added inspection surfaces in claw-code/src/agent_slash_commands.py and claw-code/src/main.py:
      - /token-budget and /budget
      - token-budget
  - Hardened claw-code/src/tokenizer_runtime.py so arbitrary simple model names fall back cleanly instead of trying a slow Transformers
    lookup.
  - Exported the new helpers in claw-code/src/__init__.py.

  Docs and tracking:

  - Updated claw-code/PARITY_CHECKLIST.md to mark prompt-length validation, token-budget calculation, and auto-compact/context collapse as
    done.
  - Updated claw-code/README.md and claw-code/TESTING_GUIDE.md with the new commands and behavior.

  Tests:

  - Added claw-code/tests/test_token_budget.py.
  - Updated claw-code/tests/test_agent_runtime.py, claw-code/tests/test_agent_slash_commands.py, claw-code/tests/test_main.py, and claw-code/
    tests/test_agent_context_usage.py.
  - Verified with:
      - /data/fs201059/aa17626/miniconda3/bin/python3 -m compileall src tests
      - /data/fs201059/aa17626/miniconda3/bin/python3 -m unittest -v tests.test_token_budget
        tests.test_agent_runtime.AgentRuntimeTests.test_agent_rejects_prompt_before_backend_when_preflight_input_budget_is_exceeded
        tests.test_agent_runtime.AgentRuntimeTests.test_agent_auto_compacts_context_before_next_model_call tests.test_agent_slash_commands
        tests.test_main tests.test_compact tests.test_tokenizer_runtime tests.test_agent_context_usage
      - Result: 71 tests, OK
2026-04-11 01:38:19 +02:00
Abdelrahman Abdallah c17c2768eb Implemented the next parity slice.
New runtime/code:

  - src/ask_user_runtime.py
  - src/team_runtime.py

  New real tools in src/agent_tools.py:

  - ask_user_question
  - team_create
  - team_delete
  - team_list
  - team_get
  - send_message
  - team_messages
  - notebook_edit
2026-04-07 03:48:20 +02:00
Abdelrahman Abdallah a5629295ac Implemented the next parity slice.
New runtime/code:

  - src/ask_user_runtime.py
  - src/team_runtime.py

  New real tools in src/agent_tools.py:

  - ask_user_question
  - team_create
  - team_delete
  - team_list
  - team_get
  - send_message
  - team_messages
  - notebook_edit
2026-04-07 02:51:30 +02:00
Abdelrahman Abdallah e0b7d0ec38 add mcp and online search 2026-04-05 03:47:49 +02:00
Abdelrahman Abdallah 783145fe6a add mcp and online search 2026-04-05 02:35:49 +02:00
Abdelrahman Abdallah 045413e5e1 update README with April 2026 major release announcements
Add What's New section with 16 new features, expanded key features table,
plugin system and nested delegation sections, budget/limit/context/structured
output CLI flag tables, zero-dependencies badge, and links to TESTING_GUIDE.md
and PARITY_CHECKLIST.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 17:13:53 +02:00
Abdelrahman Abdallah 4de3da10e4 add test guide cases 2026-04-03 16:50:19 +02:00
Andreas Herzinger 8db29f7d91 added OpenRouter setup guide to README 2026-04-03 09:27:29 +02:00
Abdelrahman Abdallah bf808572d3 edit 2026-04-02 10:51:51 +02:00
Abdelrahman Abdallah 46778c1b5f add missing parts 2026-04-02 10:19:07 +02:00
Abdelrahman Abdallah eaf2ff63d6 add missing parts 2026-04-02 10:17:24 +02:00
Abdelrahman Abdallah b12fb428d7 demo 2026-04-02 00:12:22 +02:00
Abdelrahman Abdallah 607aad288e demo 2026-04-02 00:09:11 +02:00
Abdelrahman Abdallah ca6112a820 demo 2026-04-02 00:07:53 +02:00
Abdelrahman Abdallah 17845a6dc4 demo 2026-04-02 00:01:53 +02:00
Abdelrahman Abdallah db2acc26ec edit 2026-04-01 23:07:46 +02:00
Abdelrahman Abdallah f3793935bb update readme to include ollama 2026-04-01 22:45:37 +02:00
Abdelrahman Abdallah 0bbe81da2a update readme 2026-04-01 22:29:37 +02:00
Abdelrahman Abdallah 1d808453c5 update readme 2026-04-01 22:17:21 +02:00
Abdelrahman Abdallah ead2086feb add toml 2026-04-01 21:58:34 +02:00
Abdelrahman Abdallah 27aff5611b first commit 2026-04-01 21:51:49 +02:00