Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ai_agents — Agent Framework Research & Tooling Guides

This directory consolidates all agent-related content: source-level analysis of external AI coding agents, architecture research, and practical tooling guides.

Structure

ai_agents/
├── README.md                  ← this file
├── research/                  ← external cloned repos (nested git)
│   ├── ai_coding_agents/      ← 9 agent source repos for study
│   ├── ai_infrastructure/     ← mempalace, open-webui
│   └── ai_skills_plugins/     ← agent plugins and extensions
├── architecture/              ← source-level analysis of agent internals
│   ├── context_management/    ← context window strategies
│   ├── session_history_management/ ← memory and crash recovery
│   ├── skills/                ← skill/prompt systems
│   └── tooling/               ← tool architectures
└── guides/                    ← practical setup and usage guides
    ├── vim_and_aider/         ← Vim + Ollama + Aider hybrid setup
    ├── aider/                 ← Aider commands handout, API key setup
    ├── kilocode/              ← Kilo Code CLI installation
    └── comparing_cli_agents/  ← draft comparison (WIP)

Source Code (research/ai_coding_agents/)

Each subdirectory is an independent git repository, excluded from the parent repo’s .gitignore and from script checks (check_broken_links, check_link_format, etc.) via tools/scripts/paths.py.

Registered agents (clone/update via manage_external_repos.py):

AgentExternal SourceTypeRelation
aideraider.chatPython CLI-
claude-code-main(leaked source)TypeScript CLI-
kilocodeKilo-Org/kiloTypeScript CLI (Bun)Fork of opencode
openclawopenclaw/openclawTypeScript CLI-
openclaudeGitLawB/OpenClaudeTypeScript CLI (Node.js)-
opencodeanomalyco/opencodeTypeScript CLI (Bun)Upstream for kilocode
qwen-codeQwenLM/qwen-codeTypeScript CLI (Node.js)Fork of gemini-cli
superpowersobra/superpowersPlugin for coding agents-

Run uv run tools/scripts/manage_external_repos.py list for the current registry with branch/remote/status.

Analysis Notebooks

Findings from studying these agents are saved as MyST notebooks (.md + .ipynb pairs) in topic directories:

TopicLocationWhat’s Studied
Context managementcontext_management/Source-level analysis: full history pattern, compaction strategies, token budgets across 6 agents
Session historysession_history_management/How agents manage context, memory, crash recovery
Skillsskills/Skill discovery, indexing, triggering patterns
Toolingtooling/Tool architectures, shell execution, sandboxing

Workflow

Managing Source Code Repositories

External repositories are managed via a unified manifest (.vadocs/inventory/manage_external_repos.json), which serves as the Single Source of Truth (SSoT) for both the registered directories and the specific repositories they should contain.

Use tools/scripts/manage_external_repos.py to reconcile the local state with this manifest. Run with --help for current usage patterns:

uv run tools/scripts/manage_external_repos.py --help

Common operations:

Research Process

To prevent data loss during context switches and maximize context window efficiency, follow the Analyze →\rightarrow Save →\rightarrow Move loop:

  1. Analyze: Study the code in-place using git log, grep_search, and source navigation.

  2. Save: Write detailed findings to a dedicated analysis file or MyST notebook immediately after finishing a repository’s analysis, before moving to the next.

  3. Move: Summarize the session to clear context, then proceed to the next target.

  4. Sync: Ensure notebooks are synchronized using uv run jupytext --sync.

Technical Analysis Standard

To ensure technical accuracy and avoid speculative descriptions, all architectural analyses must follow a strict Claim →\rightarrow Evidence (Code/Path) →\rightarrow Explanation format. Descriptive “guide” styles are prohibited.

Key Learnings Across Agents

Session History / Context Management

Tool Systems

Skill / Prompt Systems

Multi-Agent Orchestration