Commit Graph

37 Commits

Author SHA1 Message Date
OpenCode Test
3132948246 Implement component registry for PA session awareness
Components:
- state/component-registry.json: Registry with all skills, commands, agents, workflows
- automation/generate-registry.py: Auto-generate from directory scan
- automation/validate-registry.py: Check for drift and TODO placeholders
- system-instructions.json: Added component-lifecycle process

Registry includes:
- 6 skills with routing triggers
- 10 commands with aliases
- 12 agents with model info
- 10 workflows with triggers
- 2 delegation helpers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 00:08:11 -08:00
OpenCode Test
2772a6e512 Add component registry design
Design for session-aware component registry:
- PA reads registry at session start for routing awareness
- Auto-generation script scans directories for components
- Validation script checks for drift
- Manual triggers/hints for intelligent routing
- Component lifecycle process in system-instructions.json

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 23:58:30 -08:00
OpenCode Test
0e1e47d577 Mark fc-005 (usage tracking) as resolved
- Updated design document status to Implemented
- Marked all checklist items complete
- Updated fc-005 in future-considerations.json

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 23:21:38 -08:00
OpenCode Test
4ca3365d55 Implement /usage command for session tracking (fc-005)
Components:
- commands/usage.md: Slash command with aliases (stats)
- skills/usage/SKILL.md: Query logic and report generation
- state/usage/config.json: Log level and preferences

Features:
- Parse history/index.json for session metadata
- Estimate duration from consecutive session starts
- Group by date, show summary stats
- Configurable log levels (minimal/standard/detailed)
- Extensible for future session content parsing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 23:21:00 -08:00
OpenCode Test
89b1a30b18 Add usage tracking design (fc-005)
Design for /usage command to track model usage:
- Parse existing history files (no new logging infrastructure)
- Configurable log levels: minimal, standard, detailed
- Commands: /usage [today|week|month|all] --by [agent|skill|model]
- Token estimation and delegation tracking

Also added future considerations:
- fc-036: API token billing support
- fc-037: Automatic usage summary
- fc-038: Usage dashboard file

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 23:18:55 -08:00
OpenCode Test
f85058fb1e Add Gmail improvements to future considerations
New items (fc-024 to fc-035):
- Date range search (medium)
- Label and folder filtering (medium)
- Thread view (medium)
- Attachment detection (low)
- Full email body view (medium)
- Sender statistics (low)
- Natural language search (medium)
- Configurable urgency keywords (low)
- Mark as read (low, deferred)
- Archive emails (low, deferred)
- Reply and compose (low, deferred)
- Unsubscribe detection (low)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:26:26 -08:00
OpenCode Test
9825acbe47 Add gcal improvements to future considerations
New items (fc-018 to fc-023):
- Custom date range query (medium)
- Natural language date parsing (medium)
- Configurable timezone (low)
- Month subcommand (low)
- Free/busy check (medium)
- Write operations (low, deferred)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:24:34 -08:00
OpenCode Test
0f48149a22 Display calendar events in local timezone (PST)
- Query using local "today/tomorrow/week" boundaries converted to UTC
- Display event times converted to America/Los_Angeles timezone
- Headers show local dates (Dec 31, 2025 instead of Jan 1, 2026)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:20:52 -08:00
OpenCode Test
f09d74dd96 Mark gcal implementation checklist complete
OAuth setup and subcommand testing verified.
Natural language fallback remains to test.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:15:45 -08:00
OpenCode Test
2e128d54ef Fix gcal_delegate.py timestamp format
Remove redundant 'Z' suffix from isoformat() - timezone-aware
datetimes already include +00:00 offset, so appending 'Z' created
invalid RFC3339 timestamps that Google Calendar API rejected.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:15:31 -08:00
OpenCode Test
c00aab5577 Update gcal design with implementation progress
Mark skill, command, and helper as complete.
OAuth setup and testing remain.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:12:41 -08:00
OpenCode Test
5e03b4a9c1 Implement /gcal Google Calendar integration
Components:
- commands/gcal.md: Slash command with aliases (calendar, cal)
- skills/gcal/SKILL.md: Usage patterns, routing logic, output formats
- mcp/delegation/gcal_delegate.py: Python API wrapper with tiered delegation

Features:
- Subcommands: today, tomorrow, week, next, summary
- Smart default (today before 6pm, tomorrow after)
- Hybrid interface (subcommands + natural language)
- Haiku tier for fetch/format, Sonnet tier for analysis

Requires OAuth setup: enable Calendar API and authorize.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:12:28 -08:00
OpenCode Test
aacaf57540 Add Google Calendar integration design
Design for /gcal command following the Gmail pattern:
- Subcommands: today, tomorrow, week, next, summary
- Hybrid interface (subcommands + natural language)
- Tiered delegation (Haiku for fetch, Sonnet for analysis)
- Reuses existing OAuth credentials with added Calendar scope

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:07:51 -08:00
OpenCode Test
d9332ae118 Add tiered model delegation for gmail operations
Implements cost-efficient gmail operations by delegating to appropriate
model tiers via Claude CLI subprocess. Simple fetches use no LLM,
summarization and triage delegate to Sonnet, complex reasoning stays
with Opus (PA). Uses subscription instead of API key.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 21:35:32 -08:00
OpenCode Test
690c57caeb Add pyright-lsp plugin to enabled plugins
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 11:44:37 -08:00
OpenCode Test
a63587e3f8 Add Gmail skill with direct Python API integration
- Create gmail skill with check-unread, check-urgent, and search patterns
- Update PA agent to reference gmail skill
- Use direct Gmail API calls via Python (faster/more reliable than MCP)
- Includes query patterns for common email operations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 11:44:24 -08:00
OpenCode Test
51726d96a0 Add Gmail integration design for PA agent
Design for read-only Gmail access via MCP server, including:
- Architecture using theposch/gmail-mcp
- Gmail skill with search, check-unread, check-urgent patterns
- Content-based urgency detection
- Implementation phases with user/agent ownership

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 13:43:42 -08:00
OpenCode Test
610d62f794 Add repos/ to gitignore
Prevent embedded git repositories from being tracked.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 13:23:58 -08:00
OpenCode Test
431e10b449 Implement programmer agent system and consolidate agent infrastructure
Programmer Agent System:
- Add programmer-orchestrator (Opus) for workflow coordination
- Add code-planner (Sonnet) for design and planning
- Add code-implementer (Sonnet) for writing code
- Add code-reviewer (Sonnet) for quality review
- Add /programmer command and project registration skill
- Add state files for preferences and project context

Agent Infrastructure:
- Add master-orchestrator and linux-sysadmin agents
- Restructure skills to use SKILL.md subdirectory format
- Convert workflows from markdown to YAML format
- Add commands for k8s and sysadmin domains
- Add shared state files (model-policy, autonomy-levels, system-instructions)
- Add PA memory system (decisions, preferences, projects, facts)

Cleanup:
- Remove deprecated markdown skills and workflows
- Remove crontab example (moved to workflows)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 13:23:42 -08:00
OpenCode Test
119d2a464e Add programmer agent implementation handoff
Actionable handoff document with specific tasks for implementing
the programmer agent system.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 12:49:13 -08:00
OpenCode Test
8adc437cfc Add programmer agent design document
Design for a new programmer-orchestrator agent with sub-agents for
planning, implementation, and code review. Includes workflow enforcement,
project memory via state files, and autonomy controls.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 12:48:02 -08:00
OpenCode Test
89bffd00e6 Use PA-specific tmux config for power mode theme
Both pa-mode and pa-launch now use ~/.tmux-pa.conf which applies
a Dracula purple theme to visually distinguish privileged sessions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 12:29:20 -08:00
OpenCode Test
409370e759 Add design doc for PA tmux session visual theme
Defines Dracula-purple "power mode" theme to visually distinguish
the privileged PA session from normal Rose Pine Moon sessions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 12:28:10 -08:00
OpenCode Test
c0c17850bf fix: use full path to claude for keybind compatibility
The keybind environment doesn't have linuxbrew in PATH.
Using full path /home/linuxbrew/.linuxbrew/bin/claude fixes it.

- pa-launch: new simplified script for keybind use
- pa-mode: updated to use full path too

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 11:45:28 -08:00
OpenCode Test
ae6f056698 feat: add status line with agent display + fix pa-mode keybind
Status line shows: [agent-name] Model | X% context
- Added statusline.sh script that reads CLAUDE_AGENT env var
- Configured settings.json to use the status line script

Fixed pa-mode keybind issue (terminal closing immediately):
- Changed from detached session + attach to exec tmux -A
- Using exec replaces shell process, keeping terminal open
- Added CLAUDE_AGENT env var export for status line

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 10:55:16 -08:00
OpenCode Test
9d89c966ad feat: add PA Agent Mode memory instructions 2025-12-29 10:26:50 -08:00
OpenCode Test
2ed7161079 feat: add pa-summarize hook script 2025-12-29 02:17:56 -08:00
OpenCode Test
6a2264e3a7 feat: add pa-mode launch script
Adds the main launch script for PA Agent Mode that manages a persistent
tmux session named "pa". Supports attach/create, new, kill, and status
commands. Records session starts in the history index.json file.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 02:10:37 -08:00
OpenCode Test
008ceaf3b4 Add PA Agent Mode implementation plan
9-task plan covering:
- Directory structure and JSON state files
- pa-mode launch script with tmux management
- pa-summarize hook script
- Hyprland keybind update
- PA agent memory loading instructions
- End-to-end testing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 02:04:47 -08:00
OpenCode Test
b1bf13caa8 Add PA Agent Mode design document
Design for persistent Claude Code environment with:
- tmux session management (pa-mode script)
- Hyprland keybind (Super+Shift+C)
- Custom history storage with JSONL
- Structured memory system (decisions, preferences, projects, facts)
- Manual + hook-based summarization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 02:01:13 -08:00
OpenCode Test
f006046d14 Add PA knowledge base design and handoff docs
- Design doc: two-KB architecture (shared + PA-private)
- Lazy-load with session caching
- Minified JSON format for all state files
- Hybrid learning (explicit + implicit with confirmation)
- Handoff doc for next session implementation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 22:21:15 -08:00
OpenCode Test
fa049a1374 feat: Add /pa personal assistant command and state infrastructure
Implement canonical /pa entrypoint for user requests with:
- Context-aware request routing via master-orchestrator
- Session and persistent context level overrides
- Memory system with UUID-based general-instructions.json
- State files for session context and preferences

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 19:59:58 -08:00
OpenCode Test
73512e92a6 Update dashboard manifests and add automation
- Updated deployment with correct Pi 3 tolerations
- Updated ingress for cloudflare-tunnel
- Added crontab example for systemd alternative
- Updated go.sum

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 11:39:40 -08:00
OpenCode Test
c14bae9a12 feat: Implement Phase 3 automation for K8s agent system
Automation components for scheduled and event-driven workflows:

Scheduler:
- scheduler.sh for cron-based workflow execution
- Logs workflow runs to ~/.claude/logs/workflows/
- Notifies dashboard on completion

Alertmanager Integration:
- webhook-receiver.sh for processing alerts
- Dashboard endpoint /api/webhooks/alertmanager
- Example alertmanager-config.yaml with routing rules
- Maps alerts to workflows (crashloop, node issues, resources)

New Incident Workflows:
- node-issue-response.yaml: Handle NotReady/unreachable nodes
- resource-pressure-response.yaml: Respond to memory/CPU overcommit
- argocd-sync-failure.yaml: Investigate and fix sync failures

Dashboard Updates:
- POST /api/webhooks/alertmanager endpoint
- POST /api/workflows/{name}/complete endpoint
- Alerts create pending actions for visibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 11:49:05 -08:00
OpenCode Test
5646508adb feat: Implement Phase 2 dashboard for K8s agent system
Lightweight Go-based dashboard for Raspberry Pi cluster:

Backend:
- chi router with REST API
- Embedded static file serving
- JSON file-based state storage
- Health checks and CORS support

Frontend:
- Responsive dark theme UI
- Status view with nodes, alerts, ArgoCD apps
- Pending actions with approve/reject
- Action history and audit trail
- Workflow listing and manual triggers

Deployment:
- Multi-stage Dockerfile (small Alpine image)
- Kubernetes manifests with Pi 3 tolerations
- Resource limits: 32-64Mi memory, 10-100m CPU
- ArgoCD application manifest
- Kustomize configuration

API endpoints:
- GET /api/status - Cluster status
- GET/POST /api/pending - Action management
- GET /api/history - Action audit trail
- GET/POST /api/workflows - Workflow management

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 11:34:36 -08:00
OpenCode Test
a80f714fc2 feat: Implement Phase 1 K8s agent orchestrator system
Core agent system for Raspberry Pi k0s cluster management:

Agents:
- k8s-orchestrator: Central task delegation and decision making
- k8s-diagnostician: Cluster health, logs, troubleshooting
- argocd-operator: GitOps deployments and rollbacks
- prometheus-analyst: Metrics queries and alert analysis
- git-operator: Manifest management and PR workflows

Workflows:
- cluster-health-check.yaml: Scheduled health assessment
- deploy-app.md: Application deployment guide
- pod-crashloop.yaml: Automated incident response

Skills:
- /cluster-status: Quick health overview
- /deploy: Deploy or update applications
- /diagnose: Investigate cluster issues

Configuration:
- Agent definitions with model assignments (Opus/Sonnet)
- Autonomy rules (safe/confirm/forbidden actions)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 11:25:11 -08:00
OpenCode Test
216a95cec4 Initial commit: Claude Code config and K8s agent orchestrator design
- Add .gitignore for logs, caches, credentials, and history
- Add K8s agent orchestrator design document
- Include existing Claude Code settings and plugin configs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 11:16:07 -08:00