• v1.1.0 08b6a20ff1

    Add coding agent system prompt, tool set, and /v1/agent endpoint
    Some checks failed
    Release / Build and Release APK (push) Failing after 9m20s

    alex released this 2026-02-28 21:03:32 +00:00

    AgentConfig.kt defines the full agent configuration optimised for Gemini
    Nano on the Tensor G5 chip:

    System prompt (~700 tokens):

    • Five explicit workflow stages: EXPLORE → PLAN → CHANGE → VERIFY → DONE
    • Hard rules: one tool per turn, 1-3 sentence replies, 120-line read limit,
      max 3 files per task, patch_file preferred over write_file

    Seven tools (OpenAI function-calling format):
    read_file(path, start_line?, end_line?) — sectioned reads, max 120 lines
    write_file(path, content) — new files / full rewrites < 80 ln
    patch_file(path, old_str, new_str) — targeted in-place edits (preferred)
    list_dir(path, depth?) — directory structure
    search_code(pattern, path?, include?) — regex search across files
    run_command(command, cwd?) — build, test, lint
    task_done(summary, files_changed?) — explicit completion signal

    AIApiServer changes:

    • Auto-injects the agent system prompt when the conversation has no system
      message, and auto-injects DEFAULT_TOOLS when the request provides none.
      Makes the server zero-config for any OpenAI-compatible agent client.
    • New GET /v1/agent endpoint returns system_prompt + tools + notes as JSON
      so clients like OpenClaw can fetch the config and apply it automatically.

    Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

    Downloads