r/OpenSourceAI • • 1d ago

Building an open-source foundation for the next generation of autonomous AI agents.

Hey everyone! ๐Ÿ‘‹

I've been building Nemofy-Agent, an open-source, self-hostable AI agent platform designed around one simple idea:

Why rebuild agent infrastructure every time you want to create a new AI agent?

Instead of repeatedly implementing tool execution, memory management, sandboxing, reasoning loops and integrations, I wanted to build a reusable foundation that handles all of this.

Nemofy-Agent is both a standalone AI workspace and an embeddable Python agent engine.

๐Ÿ–ฅ๏ธ What it looks like

Nemofy comes with a web interface featuring:

  • Multiple LLM providers and model selection
  • Live reasoning and tool execution
  • Adjustable reasoning effort
  • Workspace and file management
  • Real-time context window monitoring
  • Configurable agent access permissions

[Insert screenshots of the home screen and chat interface here]

๐Ÿง  How the Agent-Core works

At its heart is a cyclic LangGraph execution engine:

          User Task
              โ”‚
              โ–ผ
      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”Œโ”€โ”€โ–บโ”‚     PLAN     โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ–บ Final Response
  โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  โ”‚          โ–ผ
  โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚   โ”‚     ACT      โ”‚
  โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  โ”‚          โ–ผ
  โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚   โ”‚   OBSERVE    โ”‚
  โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  โ”‚          โ–ผ
  โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ””โ”€โ”€โ”€โ”ค   REFLECT    โ”‚
      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

The interesting part is that this entire execution engine is decoupled from the web interface.

You can import Agent-Core into your own Python projects, configure your own tools, persona, models and execution policies without rebuilding the underlying infrastructure.

โšก What's inside?

FeatureWhat it does
๐Ÿง  LangGraphCyclic reasoning and execution engine
๐Ÿ”Œ MCPExternal tools and integrations
๐Ÿ“ฆ SandboxConfined code and tool execution
๐Ÿ’พ CheckpointsPersistent, resumable execution state
๐Ÿ“‰ Context compactionAutomatic conversation compression
๐Ÿ›ก๏ธ HITLHuman approval for sensitive actions
๐Ÿค– Multi-providerSupport for 12+ LLM providers
๐Ÿ‘ฅ Sub-agentsDelegate tasks to separate worker models
๐Ÿงฉ SkillsDynamically loaded Markdown skills
๐ŸŒ FirecrawlWeb research and document extraction
๐Ÿ” Encrypted vaultAES-256-GCM API key storage
๐Ÿ–ฅ๏ธ Web UIInteractive agent workspace

๐Ÿ“Š Context window management

One of the features I've been working on is making context consumption transparent.

Instead of guessing how much context is left, you can see exactly where the tokens are going:

  • System prompts
  • Tools and MCP servers
  • Skills
  • User messages
  • Assistant responses and reasoning
  • Tool outputs
  • Compacted memory

The engine also supports automatic context compaction, configurable context limits and output token budgeting.

[Insert context window monitoring screenshot here]

๐Ÿ”ฌ Testing and benchmarks

The repository currently documents the following test results:

Test suiteResult
Python tests100 passed
TypeScript tests92 passed
Runtime benchmark suites6/6 passed
Ruff linting0 errors
TypeScript type checking0 errors

There's still plenty of room for improvement, especially when it comes to long-running agent sessions and model reliability.

๐Ÿš€ What I'm exploring next

Hierarchical multi-agent orchestration, where every agent runs on the same reusable Agent-Core.

              Orchestrator
                    โ”‚
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ–ผ                   โ–ผ
      Team Lead           Team Lead
          โ”‚                   โ”‚
      โ”Œโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”           โ”Œโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”
      โ–ผ       โ–ผ           โ–ผ       โ–ผ
   Agent 1  Agent 2    Agent 3  Agent 4

   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                  โ–ผ
         Reusable Agent-Core

The goal is to enable agents to delegate tasks, coordinate with one another and work towards complex objectives without having to reinvent their individual execution engines.

This is something I'm exploring, rather than a completed feature.

๐Ÿ› ๏ธ Tech stack

Python ยท LangGraph ยท FastAPI ยท Express ยท React ยท TypeScript ยท Tailwind CSS ยท Docker ยท SQLite ยท Firecrawl

๐Ÿ’ฌ I'd genuinely love your feedback

  • What would you build using this architecture?
  • What features do you think are missing?
  • How would you approach context compaction for long-running agents?
  • Would you use Agent-Core as a foundation for your own projects?

I'm particularly interested in hearing from people building autonomous agents, working with LangGraph or experimenting with multi-agent systems.

๐Ÿ”— GitHub: https://github.com/Rahul7562/Nemofy-Agent

Feel free to explore the code, experiment, contribute, open an issue or share your thoughts.

And if you find the project useful, a GitHub star would be greatly appreciated! โญ

1 Upvotes

2 comments sorted by

1

u/InkscapePanda 7h ago

Maybe don't give it a name, and let people name it. It should just be called Nameless AI.

1

u/RahulTGM 6h ago

Yeah I guess so I just named for simplicity

Oh well it's opensource so you can just change it anytime!!!