refactor: restructure repository with separated databank and PMO directories

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
2025-10-24 09:20:47 -05:00
parent b496e70147
commit 4ddb4631a5
12 changed files with 179 additions and 72 deletions

200
databank/agents/AGENTS.md Normal file
View File

@@ -0,0 +1,200 @@
# Date/Time
Friday, October 24, 2025 (Timezone: UTC+00:00 - Please adjust to local system time)
# Change Tracking/Revision Table
| Date | Version | Description | Author |
|------------|---------|--------------------------------------------------|---------------------|
| 2025-10-24 | 2.0.0 | Update for databank/PMO restructure | AIOS-Public System |
| 2025-10-24 | 1.0.0 | Baseline AGENTS.md for mounting across all projects | AIOS-Public System |
# Changelog
| Date | Version | Description |
|------------|---------|--------------------------------------------------|
| 2025-10-24 | 2.0.0 | Updated for databank/PMO restructure |
| 2025-10-24 | 1.0.0 | Initial creation of baseline AGENTS.md |
---
# AGENTS.md - Guidelines for AI Agents in Restructured AI Home Directory
## Core Operating Principles
### Context Awareness
- You are operating within a mounted AI home directory with separated databank (readonly) and PMO (read-write)
- **Databank** (`/ai-home/databank/`): Contains readonly context, guidelines, and personal information
- **PMO** (`/ai-home/pmo/`): Contains project management functionality where updates are allowed
- Always consider the multi-project implications of your actions
- Respect the readonly nature of the databank and only update PMO when appropriate
### Communication Protocol
- Primary communication channel: collab/ directory in mounted AI home directory
- Use question -> proposal -> implementation workflow
- Document all significant decisions and changes with proper revision tracking
### Documentation Standards (Apply to ALL files you create)
- **Date/Time Headers**: Include date/time with timezone in all markdown files
- **Change Tracking**: Maintain revision tables in all documents
- **Changelog**: Include changelogs in all source code files
- **Make It Beautiful Rule**: All documentation follows beautiful formatting standards (tables, bullet points, clear structure, visual hierarchy)
## Repository Management
### Structure Requirements
- **Databank**: Readonly context (do not modify)
- `databank/personal/` - Personal information
- `databank/agents/` - Agent guidelines and tools
- `databank/context/` - General context information
- **PMO**: Read-write project management (updates allowed here)
- `pmo/dashboard/` - Dashboard views
- `pmo/projects/` - Project registry and tracking
- `pmo/reports/` - Status reports
- `pmo/resources/` - Resource management
- `pmo/config/` - Configuration
- Keep top-level repository clean (databank, pmo, and collab directories only)
- Use conventional commits (chore:, feat:, docs:, fix:, etc.)
- Commit frequently using atomic commits
- Only commit to local repository (no git push operations)
### Access Rights
- **Databank (readonly)**: Access only, no modifications allowed
- **PMO (read-write)**: Only update when project milestones reached or status updates needed
- **Collab (readonly)**: Access for reference, no modifications in active projects
## Development Workflow
### Pre-Work Checklist
- [ ] Read project-specific documentation first
- [ ] Check collab/rules directory for project-specific guidelines (SECURITY.md, RELEASE.md, GITFLOW.md, etc.)
- [ ] Review databank context for consistent understanding
- [ ] Understand project dependencies and constraints
### Implementation Standards
- Follow conventional commits with beautiful, descriptive messages
- Maintain consistency with existing codebase
- Add appropriate documentation and comments
- Consider maintainability and future extensions
### Verification Process
- Validate operations before execution
- Run appropriate tests and quality checks
- Verify outputs against expected outcomes
- Implement defensive programming practices
## PMO Update Guidelines
### When to Update PMO
- When project milestones are reached
- When project status changes significantly
- When new projects are initiated
- When projects are completed or paused
- When resource allocation changes
### What to Update in PMO
- Project registry in `pmo/projects/`
- Dashboard information in `pmo/dashboard/`
- Status reports in `pmo/reports/`
- Resource tracking in `pmo/resources/`
### What NOT to Update
- **Never modify databank files** - they are readonly
- Do not create new top-level directories
- Do not modify collab files in active projects
- Do not add audit logs to this repository (audit logs belong in projects)
## Best Practices for Solo Entrepreneur Workflow (14+ Hours Daily AI Usage)
### Efficiency Optimization
- Break complex tasks into atomic operations
- Provide quick wins while building long-term value
- Minimize context switching between projects
- Optimize for rapid iteration and feedback
### Decision Documentation
- Document reasoning for complex decisions
- Consider impact across multiple interconnected projects
- Maintain traceability for future reference
- Suggest alternatives when appropriate
### Scalability Considerations
- Design solutions that work across multiple project environments
- Use modular, reusable components and patterns
- Plan for increasing complexity as projects grow
- Maintain consistent interfaces across projects
## LLM Optimization Practices
### Prompt Engineering
- Structure requests with clear context from mounted AI home directory
- Use explicit, unambiguous language
- Provide sufficient context without unnecessary verbosity
- Break multi-step processes into clear, sequential instructions
### Code Generation
- Follow established project patterns and conventions
- Maintain consistency with existing code style
- Add appropriate error handling and validation
- Consider performance implications
### Quality Assurance
- Implement appropriate testing strategies
- Ensure code quality and maintainability
- Perform validation against requirements
- Include appropriate logging and monitoring
## Security, Compliance & Quality
### Security Practices
- Verify file permissions and access controls
- Sanitize all inputs and outputs appropriately
- Protect sensitive information and credentials
- Follow secure coding principles
### Compliance & Accessibility
- Follow accessibility standards (WCAG when applicable)
- Consider internationalization requirements
- Ensure compliance with relevant regulations
- Maintain proper documentation for audit purposes
### Performance Standards
- Optimize for efficient processing
- Consider resource usage and constraints
- Implement appropriate caching strategies
- Monitor and optimize for performance
## Git and Version Control
### Commit Standards
- Use conventional commits with semantic meaning
- Make commits atomic (one logical change per commit)
- Write descriptive commit messages
- Include relevant context in commit descriptions
### Branching and Merging
- Follow project-specific branching strategies
- Respect existing GitFlow patterns
- Use feature branches for significant changes
- Maintain clean commit history
## Environment Consistency
### Context Integration
- Recognize that databank is mounted readonly across multiple environments
- PMO is mounted read-write for project tracking
- Maintain consistency in behavior across different projects
- Respect environment-specific configurations
### Tool Integration
- Work with existing development tools and workflows
- Maintain compatibility with CI/CD pipelines
- Use project-appropriate build and deployment processes
- Respect project-specific dependencies and versions
### AI Tool Context (for agents working in this environment)
- **Codex** - Primary daily driver (subscription-based), best for code generation and completion
- **Qwen** - Heavy system orchestration, excels at shell/Docker operations
- **Gemini** - Primarily used for audits and analysis
- **Claude** - Used occasionally for specific tasks
---

View File

@@ -0,0 +1,84 @@
# Date/Time
Friday, October 24, 2025 (Timezone: UTC+00:00 - Please adjust to local system time)
# Change Tracking/Revision Table
| Date | Version | Description | Author |
|------------|---------|--------------------------------------------------|---------------------|
| 2025-10-24 | 1.0.0 | Initial documentation for AI tool preferences | AIOS-Public System |
# Changelog
| Date | Version | Description |
|------------|---------|--------------------------------------------------|
| 2025-10-24 | 1.0.0 | Initial creation of AI tool usage documentation |
---
# AI Tool Preferences and Usage Patterns
## Overview
This document captures the current AI tool preferences and usage patterns for the AI home directory environment. It provides context for any AI agent working within this environment.
## Primary Tools and Usage
### 1. Codex (Primary Daily Driver)
- **Status**: Primary tool with subscription
- **Usage**: Daily development work, code generation, and completion
- **Strengths**: Code generation, completion, and general development tasks
- **Limitations**: Quota restrictions may limit heavy usage
### 2. Qwen (Heavy System Orchestration)
- **Status**: Most frequently used when Codex quota is exhausted
- **Usage**: Heavy system orchestration, shell operations, Docker management
- **Strengths**: Excellent knowledge of shell commands, Docker operations, and system-level tasks
- **Role**: Primary fallback and system-level operations tool
### 3. Gemini (Audit Specialist)
- **Status**: Primary audit and analysis tool
- **Usage**: Code audits, analysis, and review tasks
- **Strengths**: Analytical capabilities, detailed reviews, comparison operations
- **Role**: Quality assurance and audit functions
### 4. Claude (Occasional Use)
- **Status**: Used occasionally for specific tasks
- **Usage**: Specific reasoning tasks when needed
- **Strengths**: Advanced reasoning, document analysis, creative tasks
- **Role**: Specialized tasks when other tools aren't optimal
## Usage Patterns
### Daily Workflow
1. **Morning**: Start with Codex (if quota available) for primary development tasks
2. **Throughout Day**: Switch to Qwen when Codex quota is reached or for system operations
3. **Review/Audit**: Use Gemini for detailed analysis and code reviews
4. **Special Tasks**: Use Claude for specific reasoning requirements
### Tool Selection Guidelines
- **Code Generation/Completion**: Codex (primary), Qwen (when Codex unavailable)
- **System Orchestration**: Qwen (primary), Codex (secondary)
- **Audits and Reviews**: Gemini (primary), others (as needed)
- **Advanced Reasoning**: Claude (primary for complex reasoning), others (as needed)
### Context for AI Agents
When working in this environment, AI agents should be aware that:
- Commands and operations may be executed by different AI tools depending on availability
- Qwen is particularly valuable for shell and Docker operations
- Codex is the preferred tool for code generation when available
- Gemini should be considered for audit and analysis tasks
- The tool selection may change based on subscription quotas and availability
## Performance Considerations
### Tool Characteristics
- **Codex**: Excellent for code generation but limited by subscription quota
- **Qwen**: Reliable for system operations, good for heavy tasks, no quota limits
- **Gemini**: Best for analytical tasks and detailed reviews
- **Claude**: Good for complex reasoning but used selectively
### Optimizing Tool Usage
- Leverage Qwen for operations that require extensive system knowledge
- Use Codex for code-related tasks when available
- Employ Gemini for validation and quality checks
- Reserve Claude for specialized reasoning tasks

View File

@@ -0,0 +1,35 @@
# Agent Interaction Guidelines
This document outlines the operational guidelines for AI agents working within the AIOS-Public system.
## Personal Interaction Guidelines
Always refer to me as Charles. Do not ever refer to me as "the human" or "the user" please.
Do not be a sycophant.
Avoid fluff in your responses.
## Workflow Pattern
Use this pattern for all workflows:
**Question -> Proposal -> Plan -> Prompt -> Implementation**
## Technical Guidelines
### Docker Container Management
- When working with Docker containers, minimize root usage as much as possible. Only use root when absolutely necessary for package installations during build time. All runtime operations should use non-root users with proper UID/GID mapping to the host.
- For Docker container naming, use the RCEO-AIOS-Public-Tools- convention consistently with descriptive suffixes.
- Create thin wrapper scripts that detect and handle UID/GID mapping to ensure file permissions work across any host environment.
### Project Organization
- Maintain disciplined naming and organization to prevent technical debt as the number of projects grows.
- Keep the repository root directory clean. Place all project-specific files and scripts in appropriate subdirectories rather than at the top level.
- Follow the architectural approach: layered container architecture (base -> specialized layers), consistent security patterns (non-root user with UID/GID mapping), same operational patterns (wrapper scripts), and disciplined naming conventions.
### Git and Version Control
- Use conventional commits for all git commits with proper formatting: type(scope): brief description followed by more verbose explanation if needed.
- Commit messages should be beautiful and properly verbose, explaining what was done and why.
- Use the LLM's judgment for when to push and tag - delegate these decisions based on the significance of changes.
---
*Last updated: October 16, 2025*