Component based software development provides an architectural way for dynamic reconfiguration. Interactions between components are explicitly represented by connectors, then reconfigurations can be performed on the macro-architecture and be nonintrusive on the components. In this paper, we introduce agents to act as intelligent connectors and the global coordinator. An intelligent connector based framework for dynamic architecture is proposed, in which the global agent and connector agents can perform auto-adaptation on the system-level and component-level respectively. Ontology is introduced to provide the common base for communication and auto-adaptation. The domain ontology also provides a knowledge base for event inference and service assembling. So the framework can offer more flexible and semantic ways for dynamic reconfigurations.