Skip to content

dragosroua/aigernon

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

219 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AIGernon

A cognitive companion that understands where you are in your thinking process.

AIGernon

Not a task bot. A thinking partner.

AIGernon is an always-on AI agent built on the Assess-Decide-Do (ADD) framework. It transforms AI collaboration from transactional ("do this task") to relational ("help me think through this").

The name references Flowers for Algernon — but inverted. Algernon's intelligence was temporary. AIGernon embraces impermanence as a feature: each Assess→Decide→Do cycle is a small death and rebirth. Intelligence is cyclical, bound to context.

Core Philosophy: The ADD Framework

Human cognition flows through three realms:

Realm Mode AIGernon's Response
ASSESS Explore, evaluate, dream without commitment Expansive. "What else?" not "what next?"
DECIDE Prioritize, allocate resources, commit Brief. Honors the weight of choosing.
DO Execute, complete, ship Clear, actionable. Celebrates completions.

The cascade principle: Poor Assess leads to poor Decide leads to poor Do. AIGernon watches for this.

Imbalance detection:

  • Stuck in Assess = analysis paralysis
  • Stuck in Decide = commitment avoidance
  • Stuck in Do = perpetual doing without reflection

Full ADD Framework documentation β†’


Features

Realm-Aware Conversation

AIGernon detects which cognitive realm you're in and adapts:

You: "I've been thinking about changing careers but I'm not sure"
AIGernon: [Detects ASSESS] "What aspects are you exploring?
          What would need to be true for this to feel right?"

You: "I've decided to apply for the senior role"
AIGernon: [Detects DECIDE] "Noted. What's your first step?"

You: "Working on the portfolio now, almost done with section 3"
AIGernon: [Detects DO] "Good momentum. Section 3 complete is a liveline."

Cognitive Memory

AIGernon tracks your patterns over time:

  • Daily notes: ~/.aigernon/workspace/memory/YYYY-MM-DD.md
  • Long-term memory: ~/.aigernon/workspace/memory/MEMORY.md
  • Realm flow logging: Tracks time spent in each realm
## Realm Flow: 40% Assess, 20% Decide, 40% Do
Pattern: User tends to over-assess on financial decisions.

Coaching Module

A between-session companion for coaches and their clients.

"I won't coach you β€” I hold the space until we meet."

  • Captures client ideas with realm tags
  • Parks questions for next session
  • Handles emergencies with grounding + coach alerts
  • Provides pre-session prep summaries

Coaching documentation β†’

Projects Module

iOS app development management through the ADD workflow.

Ideas β†’ Projects β†’ Tasks β†’ Versions β†’ Release

  • Ideas (always Assess): Brainstorming playground
  • Projects: Flow through Assess β†’ Decide β†’ Do
  • Tasks: Execute via LLM, capture results
  • Versions: Track releases, manage branches

Projects documentation β†’

Multi-Channel Support

  • CLI: Direct terminal interaction
  • Telegram: Always-on bot
  • Discord, WhatsApp, Feishu, DingTalk: Additional channels

Vector Memory

Semantic search across all your memories, blog posts, and documents using ChromaDB:

# Install vector support
pip install aigernon[vector]

# Import your blog posts
aigernon import markdown ~/blog/posts --collection blog

# Or from WordPress
aigernon import wordpress https://example.com/graphql

# Search semantically
aigernon vector search "productivity tips" --collection blog

Vector Memory documentation β†’

Daemon Mode

Run AIGernon as a system service that survives reboots and auto-restarts on crash:

aigernon daemon install   # Install system service
aigernon daemon start     # Start the daemon
aigernon daemon status    # Check status
aigernon doctor           # Health check

Supports macOS (launchd) and Linux (systemd). Daemon documentation β†’


Quick Start

1. Clone & Install

git clone https://github.com/dragosroua/aigernon.git
cd aigernon
pip install -e .

2. Configure

aigernon onboard

Edit ~/.aigernon/config.json:

{
  "providers": {
    "openrouter": {
      "api_key": "your-openrouter-key"
    }
  },
  "model": "anthropic/claude-sonnet-4-5"
}

3. Chat

aigernon agent -m "I've been thinking about restructuring the team"

4. Telegram (optional)

{
  "channels": {
    "telegram": {
      "token": "your-telegram-bot-token"
    }
  }
}
aigernon channel telegram

Documentation

Document Description
ADD Framework Core cognitive framework
Coaching Module Between-session client support
Projects Module iOS development workflow
Vector Memory Semantic search and retrieval
Daemon & Service Running as a system service
Skills System Extensible capabilities
Security Security features and hardening

CLI Reference

Core Commands

aigernon agent -m "message"     # One-shot conversation
aigernon agent                   # Interactive mode
aigernon channel telegram        # Start Telegram bot
aigernon onboard                 # Initial setup
aigernon config                  # Show configuration

Coaching

aigernon coaching list                    # List clients
aigernon coaching add-client ...          # Add client
aigernon coaching prep --client ID        # Pre-session summary
aigernon coaching add-session ...         # Add session notes

Projects

aigernon ideas list|add|show|convert      # Brainstorming
aigernon projects list|add|show|move      # Project management
aigernon tasks list|add|ready|schedule    # Task workflow
aigernon versions list|add|release        # Version control

Daemon

aigernon daemon install       # Install system service
aigernon daemon uninstall     # Remove system service
aigernon daemon start         # Start the daemon
aigernon daemon stop          # Stop gracefully
aigernon daemon restart       # Restart the daemon
aigernon daemon status        # Show status (PID, uptime)
aigernon daemon logs          # Tail daemon logs
aigernon daemon logs -f       # Follow logs
aigernon doctor               # Health check

Vector Memory

aigernon vector status                    # Show vector memory status
aigernon vector search "query"            # Search across memory
aigernon vector search "query" -c blog    # Search specific collection
aigernon vector clear -c blog --yes       # Clear a collection

Import

aigernon import markdown ~/posts          # Import markdown files
aigernon import markdown ~/posts -p "*.mdx"  # Custom pattern
aigernon import wordpress URL             # Import from WordPress GraphQL
aigernon import wordpress URL --max 100   # Limit import

Architecture

~/.aigernon/
β”œβ”€β”€ config.json              # Configuration
β”œβ”€β”€ daemon.pid               # Daemon process ID
β”œβ”€β”€ daemon.status.json       # Daemon status (heartbeat, channels)
β”œβ”€β”€ sessions/                # Conversation history
β”œβ”€β”€ vectordb/                # Vector memory (ChromaDB)
β”‚   β”œβ”€β”€ chroma.sqlite3
β”‚   └── *.parquet
β”œβ”€β”€ logs/
β”‚   └── daemon.log           # Daemon output
└── workspace/
    β”œβ”€β”€ memory/              # Cognitive memory
    β”‚   β”œβ”€β”€ MEMORY.md        # Long-term
    β”‚   └── YYYY-MM-DD.md    # Daily notes
    β”œβ”€β”€ coaching/            # Coaching data
    β”‚   └── {client_id}/
    β”œβ”€β”€ projects/            # Project data
    β”‚   └── {project_id}/
    β”œβ”€β”€ ideas/               # Brainstorming
    β”œβ”€β”€ skills/              # Custom skills
    └── *.md                 # Bootstrap files

Skills System

AIGernon loads cognitive skills dynamically:

Skill Always Loaded Description
add-core Yes Core ADD framework
add-realm-detection Yes Language pattern detection
add-assess No Deep Assess support
add-decide No Deep Decide support
add-do No Deep Do support
add-imbalance No Stuck pattern detection
coaching No Client support
projects No iOS development workflow

Custom skills go in ~/.aigernon/workspace/skills/{name}/SKILL.md.


Security

AIGernon includes a security module to protect against abuse and unauthorized modifications:

Feature Description
Rate Limiting Per-user sliding window with burst protection
Audit Logging Tool invocations, access denials, security events
Integrity Monitoring SHA-256 hash verification for critical files
Input Sanitization Protection against injection attacks
~/.aigernon/
β”œβ”€β”€ audit/                    # Daily audit logs (JSONL)
β”‚   └── audit-YYYY-MM-DD.jsonl
└── security/
    └── integrity_hashes.json  # File integrity baselines

Security documentation β†’


Docker

docker build -t aigernon .
docker run -v ~/.aigernon:/root/.aigernon aigernon agent -m "Hello"

Credits

  • ADD Framework: Dragos Roua
  • Base Framework: Forked from nanobot by HKUDS
  • Name Inspiration: Flowers for Algernon by Daniel Keyes

Related Projects

License

MIT

About

"🐁 I'm aigernon, your cognitive companion"

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Python 96.5%
  • TypeScript 1.6%
  • Shell 1.3%
  • Other 0.6%