πΊ The Next-Generation AI Agent Platform πΊ
Combining the best of Manus, GenSpark, and AnyGen
TokenDance is not just another AI agent toolβwe are building the ultimate creation space where top-tier agents (Manus's execution power + Coworker's local depth) seamlessly sync with human intent in an atmosphere-rich environment.
Keywords: Human-AI Symbiosis | OS-Level Platform | Vibe Space | Intent Synchronization
Through Vibe-Agentic Workflow, we encapsulate Coworker's ultimate control over local files and Manus's fully automated task processing into an intuitive "think-and-it's-done" experience, making "Claude Code" level capabilities truly accessible for the rest of the world.
Core Transformation:
- Technical complexity β Intuitive operations
- CLI coldness β Vibe experience
- Multi-step interactions β One-click execution
- Developer-exclusive β Universal accessibility
We combine three forces like brain, hands, and breath:
| Dimension | Component | Role | Core Value |
|---|---|---|---|
| The Brain | Manus | Universal Task Expert | Handles high-difficulty external decisions, cross-platform orchestration, and fully automated delivery from 0 to 1 |
| The Hands | Coworker | Local File Expert | Inherits Claude Code's DNA, deeply parses local file systems for surgical precision code/document modifications |
| The Breath | Vibe Workflow | Interaction & Emotion Engine | Transforms powerful capabilities into elegant silk, creating immersive experiences through UI/UX |
We pioneered Vibe-Agentic Workflow = Manus (Execution Brain) + Coworker (Execution Hands) + Vibe Workflow (Life Breath)
This paradigm integrates top-tier agent atomic capabilities through emotional value and cognitive flow, creating:
Three Pillars:
- Intuition over Instruction: Best operations require no thinkingβguided by cues and natural logic
- Emotional Resonance & Aesthetic Logic: Beauty itself is productivityβrefined visuals, delicate animations, textured sounds
- Frictionless Flow: Any slight hiccup breaks the vibeβseamless transitions, intelligent predictions, borderless task switching
| Dimension | Traditional Tools (Tool-centric) | Vibe Workflow (Experience-centric) |
|---|---|---|
| Goal | Task Completion | Process Enjoyment |
| Feedback | Binary (Error/Success) | Rhythmic & Motivating |
| User State | Passive/Tired | Proactive/Immersed |
| Learning Curve | Manual Required | Discovery-based |
"We're not just making hammersβwe're building a workshop that sparks inspiration. When the tool's vibe is right, creativity flows naturally."
Beyond Functionality, Into Experience:
- Drag-and-drop interactions instead of complex forms
- Frosted glass effects + smooth animations for spatial depth
- Real-time visual feedback for file system operations
- Progressive disclosure that guides without overwhelming
- Intent cards that capture fuzzy requirements intuitively
Real-time Execution Trace:
- Working Memory visualization (task_plan.md, findings.md, progress.md)
- Expandable reasoning steps with elegant collapse animations
- Tool call transparency with beautiful syntax highlighting
- Progress aesthetics that turns waiting into anticipation
Traditional agents waste 60-80% of context window on repeated content. We pioneered:
- Plan Recitation: TODO list appended at context end, preventing "Lost-in-the-Middle"
- 3-File Working Memory:
task_plan.md,findings.md,progress.mdact as persistent RAM - Append-Only Context: 7x faster than context reconstruction, 90%+ KV-Cache hit rate
- Tool Definition Masking: All tools loaded once, visibility controlled by attention masks
Result: 70% token savings, enabling $0.10/task instead of $0.50/task.
Origin: Manus Agent's proven core architecture principle
Philosophy: Use persistent Markdown files as Agent's "working memory" instead of relying solely on fragile, expensive context windows.
Three Core Files:
- task_plan.md (Roadmap): Task breakdown with Phase 1, Phase 2... plans
- findings.md (Knowledge Base): Research findings and technical decisions
- progress.md (Execution Log): Execution process and test results
Behavioral Rules:
- 2-Action Rule: Record after every 2 searches/browses to prevent context explosion
- 3-Strike Protocol: Same error 3 times β Force re-read plan and pivot approach
- 5-Question Reboot: When stuck, Agent self-diagnoses through structured introspection
Benefits:
- 60-80% token reduction (vs. stuffing everything into context)
- 40%+ success rate improvement on complex multi-step tasks
- Perfect cross-session resumption (file persistence)
- Keep the Failures: Errors preserved in context β Agent learns to avoid repeated mistakes
- 3-Strike Protocol: Same error 3 times β Force re-read plan and pivot approach
- 5-Question Reboot: When stuck, Agent self-diagnoses via structured introspection
Result: 40%+ success rate improvement on complex multi-step tasks.
- Context only appends, never modifies existing content
- Each round adds: reasoning + tool calls + results
- Guarantees KV-Cache validity, avoids recomputation
- Performance: 7x faster than per-round context reconstruction
- Cache hit rate: 90%+
Industry-first architecture for team collaboration:
Organization (Unified Billing)
ββ Team (Shared Skill Cache + Knowledge Base)
ββ Workspace (Individual Agent Sessions)
- KV-Cache Snapshots: Expert agents can be "published" to team, saving setup costs
- Logits Masking: Atomic permission control without context duplication
- Token Budget Governance: Automatic quota tracking and alerts
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Working Memory (LLM Context) File System (Disk) β
β ββ Compressed summaries ββ Full tool outputsβ
β ββ Recent dialogue ββ Research artifactsβ
β ββ Active TODO list ββ Session history β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Like human cognition: Short-term vs. long-term memory separation.
Industry-first 8-optimization system for AI research:
| Optimization | Technique | Impact |
|---|---|---|
| Query-Relevant Extraction | Jina Reader + TF-IDF filtering | 81% token savings |
| Progressive Summarization | Batch summaries every N sources | 70% context reduction |
| Search Cache | Jaccard similarity matching | 35% API savings |
| Multi-Source Fallback | DDG β Brave β Serper | 99.9% availability |
| Adaptive Depth | Query type analysis | 50% savings on simple queries |
| Streaming Results | asyncio.as_completed() | 5x faster first result |
| Credibility Scoring | 4-dimension (0-100) scoring | 80% high-quality sources |
| Failure Learning | Domain blacklist + query rewrite | 60% fewer invalid requests |
Result: 80%+ token reduction, 5-10x research efficiency, production-ready quality.
| Dimension | Cursor/Claude | Manus | Coworker | TokenDance |
|---|---|---|---|---|
| Execution Power | Single dialogue | Full auto chains | Local file depth | Manus + Coworker |
| Local Support | Medium | Weak | Extreme | Extreme + Sandbox |
| User Barrier | Medium | High (tech users) | Medium-High (CLI) | Extremely Low (Vibe) |
| Emotional Value | None | None | None | Core Competency |
| Target Users | Developers | Developers | Developer-focused | Rest of the World |
| Interaction Paradigm | Conversational | Task-based | Command-based | Vibe + Intuitive |
Core Principles (click to expand)
- Append-Only Context Growth: Never edit existing messages β KV-Cache always valid
- KV Caching Stability: System prompt + tool definitions frozen β 90%+ cache hit
- Structured Tags:
<REASONING>,<TOOL_CALL>,<TOOL_RESULT>for semantic clarity - Controlled Randomness: Break attention loops when repetitive behavior detected
- Action Space Pruning: 8 core tools > 100 vertical APIs (Agent builds helpers in sandbox)
See docs/architecture/HLD.md for details.
- Docker & Docker Compose
- Python 3.11+ (for local backend development)
- Node.js 18+ (for local frontend development)
# Start all services (PostgreSQL, Redis, Backend, Frontend)
docker-compose up -d
# View logs
docker-compose logs -f
# Stop all services
docker-compose downAccess the application:
- Frontend: http://localhost:5173
- Backend API: http://localhost:8000
- API Docs: http://localhost:8000/api/v1/docs
- Health Check: http://localhost:8000/health
cd backend
# Install uv (if not installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install dependencies
uv sync --all-extras
# Copy environment variables
cp .env.example .env
# Edit .env and fill in required values
# Run database migrations
uv run alembic upgrade head
# Start development server
uv run uvicorn app.main:app --reloadcd frontend
# Install dependencies
npm install
# Start development server
npm run devTokenDance Deep Research represents a new generation of AI research systems with 8 core optimizations:
π Token Efficiency (80%+ Savings):
- Jina Reader API Integration: Web pages converted to clean Markdown, removing ads/noise
- Query-Relevant Extraction: Only content related to user query enters context (81% token savings)
- Progressive Summarization: Batch summaries every N sources, originals persisted to filesystem
- Search Cache + Deduplication: Jaccard similarity matching for similar queries (35% API savings)
β‘ Performance Optimization (5x Faster):
- Streaming Results:
asyncio.as_completed()delivers results as they arrive (10s β 2s first result) - Multi-Source Search Fallback: DuckDuckGo β Brave β Serper with auto degradation (99.9% availability)
- Adaptive Depth Control: Query type analysis (factual/analytical/comparative) β dynamic depth/breadth
- Max 10 Concurrent Tools: Parallel execution with semaphore control
π― Quality Enhancement (80% High-Quality Sources):
- Credibility Scoring: 4-dimension scoring (domain authority, freshness, content quality, source type)
- Failure Learning: Domain blacklisting after 3 failures, auto query rewriting
- Citation tracking for every conclusion (e.g.,
[1][2]references)
π Additional Features:
- Document upload analysis (PDF, Excel, Word, CSV, JSON, etc.)
- Export to Markdown/PDF
See Deep Research Module for technical details.
- 14+ file formats supported: PDF, DOCX, PPTX, XLSX, CSV, JSON, XML, HTML, TXT, MD, ZIP, and images
- Automatic Markdown conversion for seamless LLM analysis
- Smart context management: 50K character limit to prevent context explosion
- Financial data extraction: Auto-detect key metrics (revenue, profit, margin, etc.)
- Vision capability: Image description via OpenRouter/Claude integration
- Lazy initialization: MarkItDown loads on first use for optimized startup
Use Cases:
- Upload quarterly earnings Excel β Get structured financial analysis
- Upload industry report PDF β Extract trends + Web search for latest updates
- Upload multiple docs β Unified format for competitive analysis
- Generate professional presentations from topic/outline
- Multiple template styles (Business, Minimal, Creative)
- Real-time preview and per-slide regeneration
- Export to PPTX/PDF
- Isolated Docker containers with resource limits
- Python 3.11+ with popular libraries pre-installed
- File system access within workspace
- Network restrictions (whitelist-based)
- Working Memory: Active context for current session
- Episodic Memory: Session history with fast retrieval
- Semantic Memory: Long-term knowledge base (vector search)
| Layer | Technology | Why? |
|---|---|---|
| Frontend | Vue 3 + TypeScript + Vite | Reactive, fast HMR |
| UI | Shadcn/UI (Vue) + Tailwind | Modern, customizable |
| Backend | FastAPI + Uvicorn | Async, high performance |
| Database | PostgreSQL + pgvector | ACID + vector search |
| Cache | Redis | KV-Cache persistence, MQ |
| Storage | MinIO (S3-compatible) | Artifacts, files |
| Sandbox | Docker | Secure code execution |
| LLM | Claude API (primary), Gemini (fallback) | State-of-the-art reasoning |
| Search | Tavily API | Web research |
TokenDance/
βββ backend/ # FastAPI Backend
β βββ app/
β β βββ api/ # REST endpoints
β β βββ core/ # Agent engine, context, memory
β β βββ models/ # SQLAlchemy models
β β βββ services/ # Business logic
β β βββ skills/ # Pluggable agent skills
β βββ tests/ # Pytest suite
β βββ alembic/ # DB migrations
β
βββ frontend/ # Vue 3 Frontend
β βββ src/
β β βββ components/ # Reusable UI components
β β βββ views/ # Page views
β β βββ stores/ # Pinia state management
β β βββ api/ # API client
β βββ vite.config.ts # Vite config
β
βββ docs/ # Comprehensive design docs
β βββ product/ # PRD
β βββ architecture/ # HLD, LLD, multi-tenancy
β βββ modules/ # Context, Memory, Skills, etc.
β
βββ scripts/ # Dev setup scripts
βββ docker-compose.yml # Local dev environment
# Backend tests
cd backend
uv run pytest
# Frontend tests
cd frontend
npm run test# Backend linting & formatting
cd backend
uv run black app/
uv run isort app/
uv run ruff check app/
uv run mypy app/
# Frontend linting & formatting
cd frontend
npm run lint
npm run format
npm run type-checkcd backend
# Create a new migration
uv run alembic revision --autogenerate -m "description"
# Apply migrations
uv run alembic upgrade head
# Rollback one migration
uv run alembic downgrade -1- Metrics: http://localhost:8000/metrics (Prometheus format)
- Logs: Structured JSON logs in production, pretty console in development
- Health Checks:
/healthand/readinessendpoints
- JWT-based authentication
- Row-Level Security (RLS) for multi-tenancy
- Logits Masking for atomic permission control
- Secrets management via environment variables
See backend/.env.example for all available configuration options.
Key variables:
SECRET_KEY: JWT secret (min 32 characters)POSTGRES_*: Database connectionREDIS_*: Redis connectionANTHROPIC_API_KEY: LLM API key
See frontend/.env.example for configuration.
Key variables:
VITE_API_BASE_URL: Backend API URL
- Phase 0: Core architecture design + Project scaffolding
- Phase 1: Personal workspace + Basic agent loop + Sandbox execution
- Phase 2: Deep Research skill + Citation system + WebSocket streaming
- Phase 3: PPT Generation + Artifact system + Template engine
- Phase 4: Multi-tenancy + Team collaboration + KV-Cache sharing
- Phase 5: Advanced memory system + Skill marketplace + Plugin SDK
See docs/plans/ for detailed milestones.
- Product Requirements (PRD)
- High-Level Design (HLD)
- Low-Level Design (LLD)
- Multi-Tenancy Architecture
- Context Management
- Memory System
- Skill Design
- Tool System
- FileSystem
- MarkItDown Integration - Document conversion for LLM
- Deep Research - 8-optimization AI research system β
We welcome contributions of all kinds! Here's how you can help:
Open an issue with:
- Clear description of the bug
- Steps to reproduce
- Expected vs. actual behavior
- System info (OS, Python/Node version)
Open a discussion with:
- Use case description
- Proposed solution (if any)
- Alternatives considered
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/TokenDance.git - Create branch:
git checkout -b feature/amazing-feature - Make changes following our coding standards
- Test your changes:
pytest(backend) /npm test(frontend) - Commit:
git commit -m 'feat: add amazing feature'(use Conventional Commits) - Push:
git push origin feature/amazing-feature - Open PR with clear description
Improving docs is highly valued! Even fixing typos helps.
Be respectful, inclusive, and constructive. See CODE_OF_CONDUCT.md.
- Discussions: GitHub Discussions
- Issues: GitHub Issues
- Twitter: @TokenDance_AI (coming soon)
TokenDance builds upon ideas from:
- Manus: Plan Recitation, 3-File Working Memory, Keep the Failures
- GenSpark: Citation tracking, Read-then-Summarize
- AnyGen: Progressive Disclosure, Human-in-the-Loop UX
- Anthropic: Extended context windows, tool use patterns
We're grateful to the open-source community for frameworks like FastAPI, Vue, PostgreSQL, and countless others.
Apache License 2.0
Copyright (c) 2026 TokenDance Team
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
See LICENSE for the full text.
If you find TokenDance useful, please consider giving it a star! It helps us reach more people.
Built with β€οΈ by developers who believe AI agents should be open, efficient, and accessible to all.
Made with FastAPI Β· Vue 3 Β· PostgreSQL Β· Redis Β· Claude AI
Give us a β if you like what we're building!