Skip to main content

Overview

Maximize your token usage for better performance and cost-effectiveness. Understanding tokens and optimizing your project structure can significantly improve your Astrio experience.

Understanding Tokens

1

What Are Tokens

Tokens are units of text processing used by AI models
2

Impact on Performance

Shorter content = fewer tokens = faster processing
3

Quality Over Quantity

Focus on essential information rather than verbose descriptions

Using .astrio/ignore

Create a .astrio/ignore file to exclude unnecessary files from processing:
node_modules/
.git/
*.log
temp/
build/
dist/
.env
.DS_Store

Reduces Token Consumption

Skip irrelevant content during processing

Improves Performance

Faster analysis and generation times

Project Splitting

Break large projects into smaller, focused sections for better token efficiency:
1

Separate by Feature

Create dedicated files for specific functionality
2

Use Clear Naming

Follow consistent file naming conventions
3

Group Related Content

Organize files by topic or purpose

Example Structure

project/
├── components/
│   ├── header.mdx
│   ├── footer.mdx
│   └── navigation.mdx
├── features/
│   ├── authentication.mdx
│   ├── dashboard.mdx
│   └── settings.mdx
└── guides/
    ├── getting-started.mdx
    └── advanced-usage.mdx

Best Practices

Remove Redundancy

Eliminate duplicate or unnecessary content

Use Concise Language

Write clearly and directly without fluff

Focus on Essentials

Prioritize important information

Regular Cleanup

Periodically review and remove outdated files

Token Optimization Checklist

1

Review File Structure

Organize content logically and eliminate duplicates
2

Update .astrio/ignore

Exclude unnecessary files and directories
3

Split Large Files

Break down lengthy documents into focused sections
4

Optimize Content

Remove redundant information and use concise language
Token efficiency isn’t just about saving costs—it’s about getting faster, more focused results. Start with these practices and refine your approach based on your specific project needs.