{"id":32807150,"url":"https://github.com/gradrix/dendrite","last_synced_at":"2026-04-16T00:31:26.838Z","repository":{"id":320790417,"uuid":"1082184154","full_name":"gradrix/dendrite","owner":"gradrix","description":"🧠 Self-organizing AI agent with dendrite spawning - decomposes complex goals into neurons, spawns parallel sub-tasks, and aggregates results. Features smart parameter extraction, context isolation, and automatic data compaction. Built for Strava analytics with extensible tool system.","archived":false,"fork":false,"pushed_at":"2025-12-21T20:35:40.000Z","size":1472,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T08:51:24.812Z","etag":null,"topics":["agentic-ai","ai-agent","autonomous-agent","llm","mistral","neural-architecture","ollama","python","strava","strava-api","task-decomposition"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gradrix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-23T21:25:12.000Z","updated_at":"2025-12-21T20:35:43.000Z","dependencies_parsed_at":"2025-10-25T23:21:40.083Z","dependency_job_id":"5fa4d50a-9da0-45c4-a8c9-52189d0b666f","html_url":"https://github.com/gradrix/dendrite","commit_stats":null,"previous_names":["gradrix/dendrite"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gradrix/dendrite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradrix%2Fdendrite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradrix%2Fdendrite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradrix%2Fdendrite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradrix%2Fdendrite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gradrix","download_url":"https://codeload.github.com/gradrix/dendrite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradrix%2Fdendrite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31866228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agentic-ai","ai-agent","autonomous-agent","llm","mistral","neural-architecture","ollama","python","strava","strava-api","task-decomposition"],"created_at":"2025-11-06T15:01:38.019Z","updated_at":"2026-04-16T00:31:26.534Z","avatar_url":"https://github.com/gradrix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dendrite\n\nA self-contained AI neural engine with tool execution, scheduled goals, and 100% local LLM inference via llama.cpp.\n\n## Features\n\n- **Local LLM**: Built-in llama.cpp server (Mistral 7B) - no external APIs\n- **Tool System**: Semantic tool discovery and execution (Strava, memory, calculator, etc.)\n- **Scheduler**: Run goals on cron schedules or intervals\n- **PostgreSQL Storage**: Persistent tool data and credentials\n- **GPU Acceleration**: Auto-detects NVIDIA GPU for faster inference\n\n## Quick Start\n\n```bash\n# Clone\ngit clone https://github.com/gradrix/dendrite.git\ncd dendrite\n\n# Start (auto-detects GPU)\n./start.sh\n\n# Run a single goal\n./start.sh goal \"What is 2+2?\"\n\n# Run scheduler daemon\n./start.sh scheduler\n```\n\n## Commands\n\n```bash\n./start.sh              # Start services (auto-detect GPU)\n./start.sh goal \"...\"   # Run single goal and exit\n./start.sh scheduler    # Run scheduler daemon (uses goals.yaml)\n./start.sh api          # Start HTTP API server\n./start.sh stop         # Stop all services\n./start.sh status       # Show service status\n./start.sh logs         # Follow logs\n./start.sh test         # Run tests\n./start.sh help         # Show help\n```\n\n## Configuration\n\n### Environment (.env)\n\n```bash\n# RAM profile for model selection (8gb, 16gb, 32gb)\nRAM_PROFILE=32gb\n\n# GPU VRAM (auto-detected if not set)\nVRAM_GB=32\n\n# Strava OAuth (optional)\nSTRAVA_CLIENT_ID=your_id\nSTRAVA_CLIENT_SECRET=your_secret\n```\n\n### Scheduled Goals (goals.yaml)\n\n```yaml\ngoals:\n  - id: collect_kudos\n    goal: \"Use strava_collect_kudos_givers with hours_back=48\"\n    schedule: cron\n    cron: \"0 */4 * * *\"  # Every 4 hours\n    enabled: true\n\n  - id: reciprocate_kudos\n    goal: \"Use strava_reciprocate_kudos with count=30 and max_age_hours=24\"\n    schedule: cron\n    cron: \"0 */6 * * *\"  # Every 6 hours\n    enabled: true\n\nsettings:\n  check_interval: 60\n```\n\n## Architecture\n\n```\n┌─────────────────────────────────────────────────────────┐\n│                      Orchestrator                        │\n│  Routes goals to appropriate neurons based on intent     │\n└─────────────────────────────────────────────────────────┘\n                           │\n         ┌─────────────────┼─────────────────┐\n         ▼                 ▼                 ▼\n   ┌───────────┐    ┌───────────┐    ┌───────────┐\n   │  Intent   │    │   Tool    │    │ Generative│\n   │  Neuron   │    │  Neuron   │    │  Neuron   │\n   └───────────┘    └───────────┘    └───────────┘\n         │                 │                 │\n         ▼                 ▼                 ▼\n   ┌───────────┐    ┌───────────┐    ┌───────────┐\n   │  LLM      │    │  Tool     │    │  LLM      │\n   │  Client   │    │  Registry │    │  Client   │\n   └───────────┘    └───────────┘    └───────────┘\n                           │\n                           ▼\n              ┌─────────────────────────┐\n              │   Tools (Strava, etc)   │\n              │   PostgreSQL Storage    │\n              └─────────────────────────┘\n```\n\n## Tools\n\n### Built-in\n\n- `calculator` - Math expressions\n- `memory_write` / `memory_read` - Persistent key-value storage\n- `current_datetime` - Current date/time\n\n### Strava Integration\n\n- `strava_get_activities` - Get your activities\n- `strava_get_dashboard_feed` - Get friends' activities\n- `strava_give_kudos` - Give kudos to an activity\n- `strava_collect_kudos_givers` - Track who gives you kudos\n- `strava_reciprocate_kudos` - Auto-kudos back to givers\n- `strava_list_kudos_givers` - List known kudos givers\n\n## Services\n\n| Service | Port | Description |\n|---------|------|-------------|\n| llama-gpu | 8080 | llama.cpp server (Mistral 7B) |\n| postgres | 5432 | PostgreSQL with pgvector |\n| redis | 6379 | Message bus / caching |\n\n## Development\n\n```bash\n# Run tests\n./start.sh test\n\n# Run specific tests\n./start.sh test -k \"test_strava\"\n\n# Access container shell\n./scripts/docker/shell.sh\n```\n\n## Project Structure\n\n```\n├── main.py                 # Entry point\n├── start.sh                # Main startup script\n├── goals.yaml              # Scheduled goals config\n├── docker-compose.yml      # Services definition\n├── neural_engine/\n│   └── v2/\n│       ├── core/           # Config, LLM, Orchestrator\n│       ├── neurons/        # Intent, Tool, Generative, Memory\n│       ├── tools/          # Tool implementations\n│       ├── scheduler/      # Goal scheduling\n│       ├── forge/          # Dynamic tool creation\n│       ├── cli.py          # Command-line interface\n│       └── api.py          # HTTP API\n└── scripts/\n    ├── db/                 # Database migrations\n    ├── docker/             # Docker helper scripts\n    └── testing/            # Test runners\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgradrix%2Fdendrite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgradrix%2Fdendrite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgradrix%2Fdendrite/lists"}