Each project card should show the current month's API costs with a small trend indicator (up/down arrow).
Purpose: Bootstrap new Claude Code sessions with complete Quetrex project context and enable efficient issue-driven development.
When to Use:
# Query pending issues
gh issue list --label "ai-feature" --state open
# Query recent completed work
gh pr list --state merged --limit 10
# Create issue for AI agent
gh issue create --template ai-feature.md --label ai-feature
# Trigger workflow manually
gh workflow run "Quetrex AI Agent Worker" -f issue_number=123
| File | Purpose |
|---|---|
CLAUDE.md |
Project context (loaded every session) |
.quetrex/status.yml |
Current roadmap position |
docs/PROJECT-CHECKLIST.md |
Comprehensive task checklist |
.github/workflows/ai-agent.yml |
Agent automation workflow |
.claude/scripts/ai-agent-worker.py |
Agent execution script |
Quetrex is a voice-first AI agent control center - a mission control dashboard for managing multiple AI-powered projects.
1. Create GitHub Issue
āā> Use "AI Feature Request" template
āā> Add "ai-feature" label
2. GitHub Actions Triggers
āā> .github/workflows/ai-agent.yml activates
āā> Runs in secure Docker container
3. Agent Worker Executes
āā> Fetches issue details
āā> Loads project context from .quetrex/memory/
āā> Builds comprehensive prompt
āā> Executes via Claude Code CLI
4. Implementation Phase
āā> Agent uses specialized sub-agents:
- orchestrator (complex features)
- test-writer (TDD first)
- implementation (code)
- code-reviewer (quality)
5. Quality Gates
āā> PreToolUse: Blocks dangerous commands
āā> PostToolUse: Validates changes
āā> Stop: Unbypassable final gate
āā> Tests, coverage, linting, build
6. Pull Request Created
āā> Feature branch pushed
āā> PR with detailed description
āā> Ready for human review
.github/ISSUE_TEMPLATE/ai-feature.md
DO:
DON'T:
ai-feature label## Summary
Add cost tracking display to project cards in dashboard
## Description
Each project card should show the current month's API costs
with a small trend indicator (up/down arrow).
## Acceptance Criteria
- [ ] Cost displayed in USD format ($X.XX)
- [ ] Trend arrow shows increase/decrease from last week
- [ ] Tooltip shows breakdown by provider (OpenAI/Anthropic)
- [ ] Updates every 5 minutes via React Query
## Technical Context
**Relevant Files:**
- `src/components/ProjectCard.tsx` - Add cost display
- `src/services/cost-tracker.ts` - Use existing service
- `src/hooks/useDashboard.ts` - Add cost query
**Patterns to Follow:**
- Use existing stats display pattern from dashboard header
- Follow cost formatting from SettingsPanel
## Testing Requirements
- [x] Unit tests required (cost formatting)
- [x] Integration tests required (API integration)
- [ ] E2E tests required
- [ ] Visual regression tests required
## Priority
- [x] P1 - High (needed soon)
# Open issues ready for AI agent
gh issue list --label "ai-feature" --state open --json number,title,labels
# Recently completed work
gh pr list --state merged --limit 5 --json number,title,mergedAt
# Current branch status
git status
git log --oneline -5
.quetrex/status.yml - Maintained snapshot of:
docs/PROJECT-CHECKLIST.md - Comprehensive tracking:
| ADR | Decision | Status |
|---|---|---|
| ADR-001 | Browser native echo cancellation | Accepted |
| ADR-002 | Drizzle ORM for Edge Runtime | Accepted |
| ADR-006 | Claude Code CLI over Anthropic SDK | Active |
Phase 1 (Complete): Docker containerization
Phase 2 (In Production): Credential proxy
Phase 3 (Q1 2026): gVisor migration
We use Claude Code CLI, NOT direct Anthropic SDK.
Reasons:
See: .claude/docs/ARCHITECTURE-AGENT-WORKER.md
any, no @ts-ignoreOverall: 75%+ (enforced)
src/services/: 90%+ (enforced)
src/utils/: 90%+ (enforced)
Components: 60%+ (enforced)
src/
āāā app/ # Next.js App Router pages
āāā components/ # React components
āāā services/ # Business logic (90%+ coverage)
āāā hooks/ # Custom React hooks
āāā lib/ # Third-party integrations
āāā db/ # Database schema (Drizzle)
āāā schemas/ # Zod validation schemas
PascalCase.tsxkebab-case.tsuseCamelCase.tstypes.ts or inline@/components/)@/hooks/)@/services/)# 1. Check what's pending
gh issue list --label "ai-feature" --state open
# 2. If nothing suitable, create new issue
gh issue create --template ai-feature.md
# 3. Add label to trigger automation
gh issue edit <number> --add-label "ai-feature"
# 4. Or work on it directly from here
# (for complex features or when you want more control)
# Check recent PRs
gh pr list --author "github-actions[bot]" --state open
# Review specific PR
gh pr view <number>
gh pr diff <number>
# Merge if approved
gh pr merge <number> --squash
# List recent workflow runs
gh run list --workflow="ai-agent.yml" --limit 5
# View specific run
gh run view <run-id>
# Download logs
gh run download <run-id> -n agent-logs-<issue-number>
.quetrex/memory/| File | Purpose |
|---|---|
patterns.md |
Architectural patterns to follow |
project-overview.md |
High-level project context |
PHASE_3_EVOLVER.md |
Phase 3 documentation |
ARCHITECTURE-INTELLIGENCE-SYSTEM.md |
Architecture intelligence |
.quetrex/status.ymlUpdated after each session with:
docs/architecture/docs/features/docs/roadmap/docs/decisions/| Document | Purpose |
|---|---|
CLAUDE.md |
Primary project context |
docs/PROJECT-CHECKLIST.md |
Comprehensive task list |
docs/AI-AGENT-AUTOMATION-STATUS.md |
Agent system status |
docs/CONTRIBUTING.md |
Development standards |
When starting a new session:
/new-context to load this skill and query stategh issue list --label ai-feature).quetrex/status.yml before ending sessionLast Updated: 2025-11-26 Created by Glen Barnhardt with help from Claude Code