Inspect and optionally adjust the agent's runtime state. Use to check the current model or preset, context window and runtime limits, workspace and tool configu
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-my-e0811492213d ,按照其中的说明把「my」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
| Situation | Command |
|---|---|
| Check capacity for a large task | my(action="check", key="context_window_tokens") |
| Switch model or context capacity | my(action="set", key="model_preset", value="<preset-name>") |
| Long multi-step task | my(action="set", key="max_iterations", value=80) |
Tradeoff: Bias toward stability. Only set when defaults are genuinely insufficient.
model_preset is saved for the current session; other modifications are in-memory onlymodel and context_window_tokens writes are rejected during active sessions because they would change the shared instance default. Use a configured model_preset instead.max_iterations (1–100), context_window_tokens (4096–1M), model (non-empty str)tools.my.allow_set is false, check only| Need | Use | Persists? |
|---|---|---|
| Per-session temp state | my(action="set", key="...", value=...) | No |
| Long-term facts | Memory skill (MEMORY.md, USER.md) | Yes |
| Permanent config change | Edit config file | Yes |
Rule of thumb: Tomorrow? Memory. This turn only? My.