Co-Pilot
Updated 24 days ago

ato

CCleanExpo
0.0k
cleanexpo/ato
80
Agent Score

πŸ’‘ Summary

The Australian Tax Optimizer is an AI platform that analyzes Xero data to recover missed tax benefits.

🎯 Target Audience

Small business owners in AustraliaTax professionals and accountantsStartups seeking R&D tax incentivesFinancial analysts focusing on complianceEntrepreneurs looking to optimize deductions

πŸ€– AI Roast: β€œPowerful, but the setup might scare off the impatient.”

Security AnalysisMedium Risk

Risk: Medium. Review: shell/CLI command execution; outbound network access (SSRF, data egress); API keys/tokens handling and storage; dependency pinning and supply-chain risk. Run with least privilege and audit before enabling in production.

πŸ‡¦πŸ‡Ί Australian Tax Optimizer

AI-Powered Tax Recovery & Compliance Platform

Next.js TypeScript Supabase Xero Gemini AI

License Tests Coverage

Recover $200K-$500K in missed tax benefits per client through forensic Xero analysis

Getting Started β€’ Documentation β€’ API Reference β€’ Architecture


🎯 What is ATO?

The Australian Tax Optimizer is an AI-powered platform that connects to your Xero accounting data (read-only) and performs forensic analysis to identify:

| Recovery Area | Potential Savings | Legislation | |--------------|-------------------|-------------| | πŸ”¬ R&D Tax Incentive | Up to 43.5% offset | Division 355 ITAA 1997 | | πŸ“Š Unclaimed Deductions | Variable | Section 8-1 ITAA 1997 | | πŸ’° Carry-Forward Losses | Tax offset on profits | Subdivision 36-A | | 🏦 Division 7A Compliance | Avoid deemed dividends | Division 7A ITAA 1936 | | 🎁 FBT Optimisation | Reduce FBT liability | FBTAA 1986 |


πŸ— Architecture

flowchart TB subgraph Client["πŸ–₯️ Client Layer"] UI[Next.js Dashboard] Reports[PDF/Excel Reports] end subgraph API["⚑ API Layer"] Auth[OAuth 2.0 Auth] Audit[Audit Endpoints] Xero[Xero Proxy] end subgraph Core["🧠 Core Engine"] AI[Gemini AI Analyzer] RND[R&D Engine] DED[Deduction Engine] LOSS[Loss Engine] DIV7A[Division 7A Engine] end subgraph Agents["πŸ€– Agent Fleet"] A1[Tax Law Analyst] A2[Xero Auditor] A3[R&D Specialist] A4[Deduction Optimizer] end subgraph Data["πŸ’Ύ Data Layer"] SB[(Supabase)] XeroAPI[Xero API] Cache[Transaction Cache] end subgraph Validation["βœ… Validation"] V1[Tax Calc Validator] V2[R&D Eligibility] V3[FY Validator] end UI --> Auth UI --> Audit Auth --> XeroAPI Audit --> AI AI --> RND & DED & LOSS & DIV7A RND & DED & LOSS & DIV7A --> Agents Agents --> SB XeroAPI --> Cache --> SB AI --> V1 & V2 & V3 Reports --> SB style AI fill:#4285F4,color:#fff style SB fill:#3FCF8E,color:#fff style XeroAPI fill:#13B5EA,color:#fff

✨ Features

πŸ” Forensic Analysis

  • AI-powered transaction scanning
  • Pattern recognition for R&D activities
  • Misclassification detection
  • Multi-year analysis (FY2020-25)

πŸ›‘οΈ Enterprise Security

  • Read-only Xero access
  • AES-256-GCM token encryption
  • Multi-tenant isolation
  • Row-level security (RLS)

πŸ€– 16 Specialised Agents

  • Tax Law Analyst
  • R&D Tax Specialist
  • Deduction Optimizer
  • Loss Recovery Agent
  • Division 7A Compliance
  • And 11 more...

πŸ“Š Validation System

  • 10 specialised validators
  • 90-95% confidence scores
  • Automatic fix instructions
  • Compliance verification

πŸ€– Multi-Agent Development Framework

This project employs a sophisticated multi-agent development framework that coordinates 4 specialist agents plus an orchestrator for structured, quality-gated development.

Agent Fleet

Framework Agents (Development Process):

  • 🎯 Orchestrator - Task decomposition, work distribution, results synthesis, quality control
  • πŸ—οΈ Specialist A: Architect - System design, API schemas, database ERDs, architecture decision records (ADRs)
  • πŸ’» Specialist B: Developer - Production code implementation, feature development, refactoring
  • πŸ§ͺ Specialist C: Tester - Unit/integration/E2E testing, QA, coverage reports (β‰₯80% target)
  • πŸ“š Specialist D: Reviewer - Code review, technical documentation, API docs, user guides

Tax Domain Agents (Business Logic):

  • 18 specialized agents for Australian tax analysis (R&D, deductions, losses, Division 7A, etc.)
  • See .agent/AGENTS.md for complete agent registry

Development Workflow

graph TD A[πŸ‘¨β€πŸ’Ό Developer] -->|Requirement| B[πŸ“Š Senior PM] B -->|Create Linear Issue| C[🎯 Orchestrator] C -->|Decompose & Assign| D[πŸ—οΈ Specialist A: Design] C -->|Decompose & Assign| E[πŸ’» Specialist B: Implement] C -->|Decompose & Assign| F[πŸ§ͺ Specialist C: Test] C -->|Decompose & Assign| G[πŸ“š Specialist D: Document] D -->|Handoff Context| E E -->|Handoff Context| F F -->|Handoff Context| G G -->|Integrate Results| C C -->|Review & Report| B B -->|Approve & Deploy| A style A fill:#FFB74D,color:#000 style B fill:#4FC3F7,color:#000 style C fill:#BA68C8,color:#fff style D fill:#81C784,color:#000 style E fill:#64B5F6,color:#000 style F fill:#FFD54F,color:#000 style G fill:#A1887F,color:#fff

Quality Gates

Every phase transition requires passing automated quality gates:

| Gate | Criteria | Blocks Phase | |------|----------|--------------| | βœ… Design Complete | ADR created, diagrams complete, risks documented | Implementation | | βœ… Implementation Complete | Code compiles, linting passes, basic functionality works | Testing | | βœ… Testing Complete | β‰₯80% coverage, all tests pass, no critical bugs | Documentation | | βœ… Documentation Complete | API docs, changelog updated, examples provided | Integration | | βœ… Integration Complete | All outputs merged, system functional, no conflicts | Final Approval | | βœ… Final Approval | PM + Developer sign-off, ready for deployment | Deployment |

See lib/agents/quality-gates.ts for automated enforcement.

Linear Integration

All development work is tracked in Linear with automated updates:

  • πŸ“ Task Creation - Parent issues created from Developer requests
  • πŸ”„ Sub-Task Assignment - Specialists automatically assigned via Linear sub-issues
  • πŸ“Š Real-Time Updates - Status transitions (pending β†’ in-progress β†’ review β†’ done)
  • 🚫 Blocker Escalation - Automatic escalation with @mentions in comments
  • πŸ“ˆ Progress Tracking - Daily reports showing specialist workload and velocity

Quick Commands:

npm run agent:orchestrator -- --task "Add feature" --priority High npm run agent:daily-report # View daily status npm run agent:quality-gate -- --gate <name> # Check quality gate npm run linear:sync # Sync with Linear npm run linear:report # Generate comprehensive report

See MULTI_AGENT_ARCHITECTURE.md for complete framework specification.


πŸš€ Quick Start

  • Node.js 20.x or higher
  • npm 10.x or higher
  • Xero Developer Account
  • Supabase Project
  • Google AI API Key (for Gemini)
# Clone the repository git clone https://github.com/CleanExpo/ATO.git cd ATO # Install dependencies npm install # Copy environment template cp .env.example .env.local # Configure your environment variables (see below)
# Supabase (Required) NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key SUPABASE_SERVICE_ROLE_KEY=your-service-role-key # Xero OAuth (Required) XERO_CLIENT_ID=your-xero-client-id XERO_CLIENT_SECRET=your-xero-client-secret XERO_REDIRECT_URI=https://your-domain.com/api/auth/xero/callback # Google AI (Required for analysis) GOOGLE_AI_API_KEY=your-gemini-api-key # Security (Required for production) TOKEN_ENCRYPTION_KEY=your-32-byte-hex-key # Generate: openssl rand -hex 32
# Run migrations via Supabase Dashboard SQL Editor # Or use the migration script: npm run db:migrate

Migration files are located in supabase/migrations/.

# Development npm run dev # Production build npm run build npm start # Run tests npm test

πŸ“š Documentation

| Document | Description | |----------|-------------| | CLAUDE.md | AI development guidelines (RTCC pattern) | | MULTI_AGENT_ARCHITECTURE.md | Multi-agent framework specification | | spec.md | Technical specification | | API_DOCUMENTATION.md | Complete API reference | | FORENSIC_AUDIT_GUIDE.md | User guide for audits | | AGENTS_README.md | Agent system documentation | | DATABASE_MIGRATIONS.md | Migration instructions |


πŸ§ͺ Testing

# Run all tests npm test # Run with coverage npm run test:coverage # Run specific test file
5-Dim Analysis
Clarity8/10
Novelty8/10
Utility9/10
Completeness8/10
Maintainability7/10
Pros & Cons

Pros

  • AI-driven analysis for accurate tax recovery
  • Comprehensive coverage of various tax incentives
  • User-friendly interface for business owners
  • Strong security measures for sensitive data

Cons

  • Requires integration with Xero, limiting user base
  • Dependence on external APIs for functionality
  • Complex setup process for new users
  • Potentially high costs for small businesses

Related Skills

pytorch

S
toolCode Lib
92/ 100

β€œIt's the Swiss Army knife of deep learning, but good luck figuring out which of the 47 installation methods is the one that won't break your system.”

agno

S
toolCode Lib
90/ 100

β€œIt promises to be the Kubernetes for agents, but let's see if developers have the patience to learn yet another orchestration layer.”

nuxt-skills

S
toolCo-Pilot
90/ 100

β€œIt's essentially a well-organized cheat sheet that turns your AI assistant into a Nuxt framework parrot.”

Disclaimer: This content is sourced from GitHub open source projects for display and rating purposes only.

Copyright belongs to the original author CleanExpo.