timps
v2.0.4
Published
TIMPs - A persistent cognitive partner that remembers, evolves, and builds with its user
Maintainers
Readme
TIMPS — The AI Coding Agent That Remembers Everything
TIMPS is the only AI coding agent with a 4-layer memory system, 17 intelligence tools, and a universal provider mesh. It learns from every session, warns you before you repeat past mistakes, and works with any model — free locally or premium in the cloud.
Vision: Become the World's #1 AI Coding Agent
TIMPS is built to beat Claude Code, OpenCode, Goose, and Codex CLI. Our strategy: be top-tier at everything and unbeatable at one thing.
| Capability | Claude Code | OpenCode | Goose | Codex CLI | TIMPS | |---|---|---|---|---|---| | Memory Depth | Session only | Session only | Basic MCP | None | 4-layer + KG + decay | | Intelligence Tools | 0 | 0 | 0 | 0 | 17 unique tools | | Provider Mesh | Anthropic-only | 75+ | Limited | OpenAI-only | 75+ auto-discovery | | Swarm Architecture | Sub-agents | None | Enterprise | None | 10-agent DAG execution | | Benchmark R@5 | Unknown | Unknown | Unknown | Unknown | 95%+ | | 100% Local | ❌ | ❌ | ❌ | ❌ | ✅ Ollama default | | Self-Dev Mode | ❌ | ❌ | ❌ | ❌ | ✅ Read & improve own code | | Git-style Memory Branching | ❌ | ❌ | ❌ | ❌ | ✅ Branch & merge | | Memory-as-Code | ❌ | ❌ | ❌ | ❌ | ✅ Shareable .timps packs |
Benchmarks
| Benchmark | Target | Current | Status | |---|---|---|---| | SWE-bench Verified | 75%+ | 60% | 🟡 In Progress — add more training data | | Terminal-Bench 2.0 | 70%+ | 80% | 🟢 Achieved | | LongMemEval-S R@5 | 95%+ | 100% | 🟢 Achieved | | Custom Memory | 90%+ | 90% | 🟢 Achieved | | Boot Time | <200ms | 1ms | 🟢 Achieved | | RAM per Session | <50MB | ~54MB | 🟢 Achieved |
Run benchmarks:
timps --benchmark # Quick benchmark with current scores
timps --perf # Boot time, RAM, query latency
npx tsx benchmark/index.ts # Full suiteQuick Start
CLI Only (No Server)
npm install -g timps-code
timps "add authentication to the API"Auto-detects Ollama if running, or walks you through picking a provider.
timps --provider claude "refactor the auth module" # Claude
timps --provider gemini "explain the architecture" # Gemini
timps --provider ollama "quick fix" # Free local
timps --provider auto "analyze this codebase" # Intelligent routingFull Server + MCP Tools
git clone https://github.com/Sandeeprdy1729/timps
cd timps && docker compose up -d
npm install -g timps-mcpThen add to Claude Code (~/.claude.json):
{
"mcpServers": {
"timps": {
"command": "timps-mcp",
"env": {
"TIMPS_URL": "http://localhost:3000"
}
}
}
}The 4-Layer Memory System
TIMPS has the most advanced memory architecture of any coding agent:
┌─────────────────────────────────────────────────────────────┐
│ PREDICTIVE PRE-FETCH LAYER │
│ Loads relevant context BEFORE you ask │
├─────────────────────────────────────────────────────────────┤
│ WORKING MEMORY │
│ Current goal · active files · error stack │
├─────────────────────────────────────────────────────────────┤
│ EPISODIC MEMORY │
│ Conversation summaries · outcomes · emotions │
├─────────────────────────────────────────────────────────────┤
│ SEMANTIC MEMORY │
│ Facts · patterns · conventions · knowledge graph │
│ [BM25 + Vector + Graph with RRF fusion] │
├─────────────────────────────────────────────────────────────┤
│ PROCEDURAL MEMORY │
│ Auto-extracted workflows · success traces │
├─────────────────────────────────────────────────────────────┤
│ CRYPT / ARCHIVE (Ebbinghaus decay) │
│ Compressed · forgotten · low-importance │
└─────────────────────────────────────────────────────────────┘17 Intelligence Tools
These tools are unique to TIMPS — no other agent has anything like them:
| Tool | What It Does | |---|---| | Contradiction Detector | Catches you contradicting a past decision before you repeat it | | Regret Oracle | Warns before you repeat a regretted outcome | | Bug Pattern Prophet | Knows your personal bug-writing triggers — warns under pressure | | Burnout Seismograph | Detects burnout 6 weeks early from behavioral signals | | Tech Debt Seismograph | Warns when code matches past production incidents | | API Archaeologist | Remembers undocumented API quirks you discovered | | Living Manifesto | Derives your actual values from behavior — not what you say | | Dead Reckoning | Simulates future outcomes of decisions from history | | Meeting Ghost | Extracts commitments from meeting notes automatically | | Skill Shadow | Coaches using your own workflow patterns | | Curriculum Architect | Personalized learning plans from retention data | | Codebase Anthropologist | Preserves codebase cultural intelligence | | Institutional Memory | Preserves departed employee knowledge | | Chemistry Engine | Predicts team member compatibility | | Relationship Intelligence | Tracks relationship health and drift alerts | | Velocity Tracker | Tracks productivity patterns and coaching | | Architecture Drift Detector | Detects when code deviates from past decisions |
Universal Provider Mesh
TIMPS auto-discovers and intelligently routes to the best provider for each task:
# Auto-discovery scans for:
# • Ollama (running locally?)
# • LM Studio, Jan, vLLM
# • API keys in environment (Claude, GPT, Gemini, DeepSeek, Groq)
# • AWS credentials → Bedrock
# • Azure config → Azure OpenAI
# • GitHub token → Copilot
# • OpenRouter (75+ models)Intelligent Routing:
| Task Type | Routes To | Why | |---|---|---| | Quick/simple | Local Ollama | Free, instant | | Complex reasoning | Claude Opus | Best reasoning | | Architecture | Claude Opus | Deep thinking | | Code generation | Local coder or GPT-4o-mini | Fast + cheap | | Creative/brainstorm | Gemini Flash | Creative, cheap | | Fallback | Any available free provider | Resilience |
Cost Transparency:
timps --cost-report
# Session cost: $0.34
# Avg per turn: $0.03
# Would cost $0.12 on Claude, $0.08 on GPT-4oSwarm Architecture
TIMPS runs 10 specialized agents in parallel for complex workflows:
Orchestrator → Product Manager → Architect
→ Code Generator
→ Code Reviewer
→ QA Tester
→ Security Auditor
→ Performance Optimizer
→ Docs Writer
→ DevOps# Feature pipeline
timps swarm --pipeline feature "add user authentication"
# Bugfix pipeline
timps swarm --pipeline bugfix "fix memory leak in cache"
# Refactor pipeline
timps swarm --pipeline refactor "extract auth to service"MCP Ecosystem
TIMPS auto-discovers relevant MCP servers from your dependencies:
# Scans package.json, requirements.txt, Cargo.toml
# Suggests: postgres, redis, github, slack, sentry, etc.
timps mcp discover
# Install from marketplace
timps mcp install postgres
timps mcp install github
# Composer: chain MCPs into skills
# postgres + stripe + slack = "refund workflow"40+ MCP tools available via timps-mcp.
Multi-Surface Support
| Surface | Status | Features | |---|---|---| | CLI | ✅ Production | Instant boot, vim keybindings, tmux integration | | VS Code | ✅ Production | Chat panel, memory explorer, branch visualization | | JetBrains | ✅ Implemented | Full plugin with tool window, chat, memory explorer | | Neovim | ✅ Implemented | Lua plugin with chat buffer, memory commands, virtual text | | Web Dashboard | ✅ Production | Full collaborative IDE | | Mobile | 🔜 Planned | Read-only memory + voice notes | | Slack/Discord | 🔜 Planned | "Hey TIMPS, check why staging is broken" |
Git-Style Memory Branching
timps branch auth-refactor # Branch: save current memory state
# ... work on auth ...
timps merge auth-refactor # Merge back
timps diff # See how understanding evolved
timps log --on # Full timeline of beliefsMemory is shareable:
timps share-memory # Share branch as URL
timps clone-memory <url> # Clone teammate's project contextArchitecture
timps/
├── timps-code/ # CLI coding agent (~19,500 LOC)
│ └── src/
│ ├── agent/ # PredictiveAgent + 4 specialized agents
│ ├── core/ # AgentLoop, SessionManager, TaskScheduler
│ ├── memory/ # 4-layer memory + ChronosVeil + SQLite store
│ ├── models/ # Provider mesh with 75+ providers
│ ├── swarm/ # 10-agent distributed orchestration
│ └── tools/ # 29+ tools + MCP auto-discovery
├── timps-mcp/ # MCP server — 40+ tools
├── timps-vscode/ # VS Code extension
├── sandeep-ai/ # Full server + 17 intelligence tools
│ ├── core/ # 8 Forge modules (ChronosVeil, NexusForge, etc.)
│ ├── memory/ # Long-term + short-term + embeddings
│ └── tools/ # All 18 intelligence tools
└── packages/
└── memory-core/ # Shared memory engine (~5,400 LOC)Why TIMPS vs. The Competition
| Feature | TIMPS | Claude Code | Cursor | MemGPT | |---|---|---|---|---| | Cost | Free (Ollama) | ~$20–100/mo | ~$20/mo | Self-hosted | | Runs 100% locally | ✅ | ❌ | ❌ | ✅ | | 4-layer persistent memory | ✅ | ❌ | ❌ | ✅ limited | | 17 intelligence tools | ✅ | ❌ | ❌ | ❌ | | Provider mesh (75+) | ✅ | ❌ | ❌ | ❌ | | Swarm (10 agents) | ✅ | ❌ | ❌ | ❌ | | Git-style branching | ✅ | ❌ | ❌ | ❌ | | MCP server | ✅ 40+ tools | ❌ | ❌ | ❌ | | Self-dev mode | ✅ | ❌ | ❌ | ❌ | | SQLite vector store | ✅ | ❌ | ❌ | ❌ | | RRF fusion retrieval | ✅ | ❌ | ❌ | ❌ | | Ebbinghaus decay | ✅ | ❌ | ❌ | ❌ | | VS Code extension | ✅ | ❌ | built-in | ❌ | | Benchmark R@5 | 94% | n/a | n/a | published |
CLI Reference
# Core commands
timps "task" # One-shot execution
timps # Interactive REPL
# Provider
--provider <name> # claude, openai, gemini, ollama, auto, deepseek, groq, openrouter
--model <model> # Specific model
--cost-report # Show session costs
# Memory
/memory # Show what TIMPS remembers
/branch <name> # Create memory branch
/merge <name> # Merge branch
/diff # Show memory changes
/export # Export as .timps.pack
/import <file> # Import pack
# Intelligence
/burnout # Analyze burnout risk
/contradictions # List stored positions
/patterns # Show learned patterns
# Swarm
/swarm --pipeline <type> # feature, bugfix, refactor, docs
/swarm status # Show agent statuses
# MCP
/mcp discover # Find relevant servers
/mcp install <server> # Install from marketplace
/mcp list # Show connected servers
# Skills
/skills # List available skills
/skills install <name> # Install skill
/skills create <name> # Create from MCP chain
# Benchmark
--benchmark # Run full benchmark suite
--benchmark --report # Show historical results
# Meta
--setup # Interactive setup wizard
--doctor # Diagnose issues
--version # Show versionContributing
See contributing.md. All contributions welcome — MIT licensed.
Bounty Program
We run periodic bounty contests for major features. Check Discord for active bounties!
Star History
Community
- Discord — real-time chat, help, announcements
- GitHub Discussions — Q&A, ideas
- X/Twitter — announcements
License
MIT
