ai-devkit
ai-devkit copied to clipboard
Make AI coding agents follow a repeatable engineering workflow with planning, memory, verification, skills, and review. One config. All agents. Same workflow.
## Problem The process ↔ session matching tolerance, `TOLERANCE_MS = 3 * 60 * 1000`, is private to `packages/agent-manager/src/utils/matching.ts`. The Gemini (#263) and Pi (#262) discovery changes use the same...
## Problem `executableBasename` (`packages/agent-manager/src/utils/process.ts`) takes the executable by splitting the `ps` command line on whitespace: ```ts const executable = command.trim().split(/\s+/)[0] || ""; ``` If an agent binary is installed under...
perf(agent-manager): enrich only candidate PIDs ("node" in processNames enriches every Node process)
## Problem `AgentManager.listAgents` builds one shared process snapshot from the union of all adapters' `processNames`. The Gemini, Kiro and Pi adapters declare `"node"`, so **every Node.js process on the machine**...
## Problem #259 excludes Codex helper and management subcommands from agent detection, but it deliberately **keeps `codex review`** detected, on the assumption that it writes a rollout session file like...
## Problem #261 makes `IncrementalJsonlSummary` do a **bounded head/tail scan** by default when it rebuilds large files (over head + tail = 5 MiB). It reads the first 1 MiB,...
## Problem Even with the incremental summary cache (#256), the **first** refresh after startup, and any rebuild after truncation or rotation, still parses each live transcript from byte 0. Large...
fix(agent-manager): Gemini sessions written as session-*.jsonl (Gemini CLI 0.46+) are never detected
## Problem Current Gemini CLI versions (observed with 0.46) write chat sessions as **`session--.jsonl`**. `GeminiSessionLocator.isSessionFile` (`packages/agent-manager/src/providers/gemini/GeminiSessionLocator.ts`) only accepts files ending in **`.json`**: ```ts return fileName.startsWith(SESSION_FILE_PREFIX) && fileName.endsWith(".json"); ``` So sessions...
## Problem `GeminiSessionLocator.discoverSessions` (`packages/agent-manager/src/providers/gemini/GeminiSessionLocator.ts`) runs for Gemini processes not already cached in the registry. - It walks **every** `~/.gemini/tmp//chats/` directory and `readFileSync`s **every chat file in full** (`readCandidateSession`). - It...
## Problem `CodexSessionLocator.discoverSessionFilesInDateDirs` (`packages/agent-manager/src/providers/codex/CodexSessionLocator.ts`) runs for Codex processes that can't be matched by resume ID, the session mapping, or the registry cache. - It reads **every session file** in a...
## Problem The console preview (`packages/cli/src/tui/console/hooks/useAgentConversation.ts`) calls `adapter.getConversation(path)` **synchronously**. It does so on the main thread, every 3 s, whenever the file's mtime changes. Every file-based `getConversation` implementation reads and...