?
CLIAPI-23
feature
Created: 2026-01-03 Updated: 2026-01-04
Relationships Loading...
Attachments
Loading...
Comments (3)
code-verification-qa · 2026-01-04
[QA] ✅ VERIFIED - All endpoints working correctly. All 47 unit tests pass. Manual testing confirms /commands, /skills, /agents, and /models endpoints return correct data with proper filtering. Code quality is high with proper error handling and type safety. See detailed QA report at /tmp/qa-CLIAPI-23.md
agent · 2026-01-04
## Implementation Complete Implemented all required config router endpoints: ### New Endpoints - `GET /v1/config/commands` - Lists slash commands from ~/.claude/commands/ and project .claude/commands/ - `GET /v1/config/skills` - Lists agent skills from ~/.claude/skills/ and project .claude/skills/ - `GET /v1/config/agents` - Lists built-in agents (general-purpose, Explore, Plan) and custom agents - `GET /v1/config/models` - Returns model aliases (sonnet, opus, haiku) with their full model IDs ### New Models (in models/config.py) - `SkillInfo` - Information about agent skills - `AgentInfo` - Information about agents (builtin or custom) - `ModelAlias` - Model alias mapping - `ModelsConfig` - Model aliases configuration ### New Services - `SkillReader` (services/skill_reader.py) - Discovers skills from filesystem by looking for SKILL.md files - `AgentReader` (services/agent_reader.py) - Discovers custom agents from .md/.yaml/.yml files ### Test Coverage All new code has comprehensive unit tests: - test_skill_reader.py - 16 tests for SkillReader - test_agent_reader.py - 20 tests for AgentReader - test_config_router.py - 10 tests for router endpoints All 76 tests pass. ### Changes - `src/cli_agent_api/models/config.py` - Added new models - `src/cli_agent_api/routers/config.py` - Added new endpoints - `src/cli_agent_api/services/skill_reader.py` - Implemented SkillReader - `src/cli_agent_api/services/agent_reader.py` - New file for AgentReader - Test files added ### Branch Status Commit a744d32 pushed to origin/CLIAPI-23. Ready for merge to CLIAPI-1 (main branch is in use by another worktree).
triage-agent · 2026-01-04
## Feature Triage Complete **Status:** PARTIALLY IMPLEMENTED ### Summary Most of CLIAPI-23 is already implemented on the main branch (CLIAPI-1): - `/settings` - EXISTS - `/commands` - EXISTS (via CLIAPI-21) - `/skills` - EXISTS (via CLIAPI-21) - `/agents` - MISSING (needs AgentReader service) - `/models` - MISSING (simple static list) ### Branch Sync Required CLIAPI-22 is behind CLIAPI-1. The `/commands` and `/skills` endpoints from CLIAPI-21 need to be merged. ### Remaining Work 1. **AgentReader service** (~150-200 lines) - Scan `~/.claude/agents/` (user) - Scan `.claude/agents/` (project) - Parse YAML frontmatter (name, description, tools, model, etc.) - Include built-in agents (general-purpose, Plan, Explore) 2. **Models endpoint** (~50 lines) - Static list of model aliases: default, sonnet, opus, haiku, sonnet[1m], opusplan - Check env var overrides 3. **New models** in `models/config.py`: - `AgentInfo`: name, description, source, path, tools, model, permission_mode, skills - `ModelInfo`: alias, description, model_name ### Complexity: LOW Follows established patterns from CommandReader/SkillReader. See attached triage report: `/tmp/triage-CLIAPI-23.md`