Further Agent updates
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"schema": 2,
|
||||
"profileId": "bare-os-posix-like",
|
||||
"generatedAt": "2026-08-18T19:25:00.642Z",
|
||||
"generatedAt": "2026-08-18T19:50:41.339Z",
|
||||
"note": "Sparse POSIX Issue 7 coverage hints; commandIndex is generated each coreutils build.",
|
||||
"commandIndex": [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"atMs": 1787081100641,
|
||||
"atMs": 1787082641339,
|
||||
"commands": [
|
||||
"agent",
|
||||
"appctl",
|
||||
|
||||
@@ -12,7 +12,7 @@ Workspace files are already in the system prompt. Skills index is already attach
|
||||
|
||||
## Coding loop
|
||||
|
||||
1. Discover — glob_files, grep, list_directory, read_file (offset/limit), git_status, web_search. Read before you edit.
|
||||
1. Discover — glob_files, grep, find_symbol, list_directory (tree=true), read_file (offset/limit), git_status / git_log, web_search. Read before you edit.
|
||||
2. Track — todo_write (merge=true) for multi-step work. Large unknown surface: enter_plan_mode, write ~/.agent/plan.md, exit_plan_mode, then implement. Plan mode is read-only except that file.
|
||||
3. Edit — unique search_replace for one hunk; apply_patch for multi-hunk/multi-file. write_file to create or overwrite. Match surrounding style. No placeholders.
|
||||
4. Verify — re-read, run_command / run_js_script, read_proc_file or logs. Host checkout: verification_hints (does not run npm here).
|
||||
|
||||
@@ -8,12 +8,14 @@ You already have these tools. Schemas are attached. NEVER ASK to use them.
|
||||
- `write_file` — create or overwrite (parents created).
|
||||
- `edit_file` / `search_replace` — unique `old_string` unless `replace_all`.
|
||||
- `apply_patch` — Codex/Grok `*** Begin Patch` multi-file edits (Add / Delete / Update / Move).
|
||||
- `create_directory`, `list_directory`, `file_stat`, `glob_files`.
|
||||
- `grep` — VFS-native regex search (glob, ignore_case, context). Prefer over `search_files` / `run_command grep`.
|
||||
- `create_directory`, `list_directory` (`tree=true` for a bounded BFS tree), `file_stat`, `glob_files`.
|
||||
- `grep` — VFS-native regex search (glob, ignore_case, context, `output_mode` content | files_with_matches | count). Prefer over `search_files` / `run_command grep`.
|
||||
- `find_symbol` — definition-oriented search (function/class/const/def/fn).
|
||||
- `search_files` — `grep -Rnl` via the guest shell (legacy).
|
||||
- `move_path`, `delete_path` — enabled. Base system is read-only.
|
||||
- `move_path`, `copy_path`, `diff_files`, `delete_path` — enabled. Base system is read-only.
|
||||
- `list_bin` — guest `/bin` utilities (POSIX-in-JS, not GNU).
|
||||
- `git_status` — `git status --short`, `diff --stat`, recent log.
|
||||
- `git_log` / `git_show` / `git_blame` — prefer these over raw `run_command git`.
|
||||
|
||||
Prefer `list_directory` / `glob_files` / `file_stat` / `grep` over `ls` / `find` / shell grep.
|
||||
|
||||
@@ -24,8 +26,9 @@ Prefer `list_directory` / `glob_files` / `file_stat` / `grep` over `ls` / `find`
|
||||
- `run_js_script_at_path` — existing absolute `.mjs`.
|
||||
- `todo_write` — session todos (`merge=true` to update by id).
|
||||
- `enter_plan_mode` / `exit_plan_mode` — plan mode is read-only except `~/.agent/plan.md`.
|
||||
- `memory_search` / `memory_get` / `memory_append` — MEMORY.md and daily logs.
|
||||
- `list_skills` / `read_skill` — compact catalog then full SKILL.md.
|
||||
- `memory_search` / `memory_get` / `memory_append` / `remember` — MEMORY.md and daily logs.
|
||||
- `list_skills` / `read_skill` / `create_skill` — catalog, full SKILL.md, or author a new workspace skill.
|
||||
- Project skills are also walked from `.grok/skills`, `.agents/skills`, `.claude/skills`, `.cursor/skills`.
|
||||
- `schedule_task` / `unschedule_task` / `list_scheduled` — guest timers (`agent-*.timer`).
|
||||
- `fuzzy_find` — filename search when you remember part of a name.
|
||||
- `read_many` — several files in one call.
|
||||
@@ -33,6 +36,8 @@ Prefer `list_directory` / `glob_files` / `file_stat` / `grep` over `ls` / `find`
|
||||
- `undo_last_edit` — restore the last snapshot from `~/.agent/edits.json`.
|
||||
- `git_diff` — `git diff` / `--stat`.
|
||||
- `history_search` — keyword search of this session's history.
|
||||
- `rewind_session` — Grok `/rewind`: drop the last N user turns from `~/.agent/history.json`.
|
||||
- `export_session` — Grok `/export`: write a Markdown transcript (default `~/.agent/export.md`).
|
||||
- glob/grep honor `.gitignore`, `.agentignore`, and `.grokignore` at the walk root.
|
||||
- `edit_agent_config` — shallow merge of known `~/.agent/config.json` keys.
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user